Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Factor a Difference of Squares

Two perfect squares with a minus sign between them always factor: a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b). Find aa and bb by taking square roots of the two terms.

Recognize the task

Exactly two terms, both perfect squares, subtracted: 49x2−2549x^2 - 25, x4−16x^4 - 16, 2x3−50x2x^3 - 50x (after a GCF). Test: is each term a square, and is the sign between them a minus?
The identity is the difference of squares; the lesson section is Difference of Squares.

Steps

StepOn 49x2−2549x^2 - 25
1Take out a GCF if there is one. It may be what turns the terms into squares (GCF).none
2Write each term as a square. Coefficient and variable separately: 49x2=(7x)249x^2 = (7x)^2.(7x)2−52(7x)^2 - 5^2
3Apply the identity. a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b).Square of a binomial, sum times difference ↗(7x−5)(7x+5)(7x - 5)(7x + 5)
4Check each factor for another difference of squares. Higher even powers often factor more than once.both factors are linear; done

Worked examples

Example 1 · factor twice

fourth powers
x4−16=(x2−4)(x2+4)x^4 - 16 = (x^2 - 4)(x^2 + 4)
a=x2a = x^2, b=4b = 4
=(x−2)(x+2)(x2+4)= (x - 2)(x + 2)(x^2 + 4)
x2−4x^2 - 4 is again a difference of squares

Example 2 · GCF first

hidden squares
2x3−50x=2x(x2−25)2x^3 - 50x = 2x(x^2 - 25)
2x(x−5)(x+5)2x(x - 5)(x + 5)

Example 3 · a sum of squares

does not factor
x2+9x^2 + 9
a plus sign between the squares
prime over the real numbers
no real roots

See it happen

Cut a bb-by-bb square out of the corner of an aa-by-aa square. The L-shaped rest can be cut and rearranged into a rectangle with sides a−ba - b and a+ba + b, which is the factorization drawn.

Common mistakes

Factoring a sum of squares

✗ x2+9=(x+3)(x+3)x^2 + 9 = (x + 3)(x + 3)
✓ (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9; a sum of squares does not factor over the reals

Stopping too early

✗ x4−16=(x2−4)(x2+4)x^4 - 16 = (x^2 - 4)(x^2 + 4)
✓ x2−4x^2 - 4 factors again

Square root of the coefficient forgotten

✗ 49x2−25=(49x−5)(49x+5)49x^2 - 25 = (49x - 5)(49x + 5)
✓ 49x2=7x\sqrt{49x^2} = 7x