Factoring xⁿ ± yⁿ — Cheat sheet

Choose “Save as PDF” in the print dialog.
On this page

Key method

For integer n≥1n\ge1,

xn−yn=(x−y)∑k=0n−1xn−1−kyk.x^n-y^n=(x-y)\sum_{k=0}^{n-1}x^{n-1-k}y^k.

For odd nn, the corresponding sum factors with alternating signs in the second factor.

Example

For n=5n=5,

x5+y5=(x+y)(x4−x3y+x2y2−xy3+y4).x^5+y^5=(x+y)(x^4-x^3y+x^2y^2-xy^3+y^4).

On multiplication, every mixed term cancels. For x6−y6x^6-y^6, first use the difference of squares (x3−y3)(x3+y3)(x^3-y^3)(x^3+y^3), then apply both cube identities.

Avoid this mistake

The same sum formula does not work for even exponents: substituting x=−yx=-y into x2+y2x^2+y^2 usually does not give zero.