Euler Hall — free maths guides

Factor a difference of squares

Recognise the difference-of-squares pattern and name a and b. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

A square minus a square splits

A difference of squares is a binomial with one square subtracted from another. It always factors:

a2−b2=(a−b)(a+b).a^{2} - b^{2} = (a - b)(a + b).

For example9x2−25=(3x)2−529x^{2} - 25 = (3x)^{2} - 5^{2}, so9x2−25=(3x−5)(3x+5)9x^{2} - 25 = (3x - 5)(3x + 5).

Two conditions, and both matter: there must be a minus between the terms, and both terms must be perfect squares.

Why the middle terms cancel

Multiply the two factors out:

(a−b)(a+b)=a2+ab−ab−b2=a2−b2.(a-b)(a+b) = a^{2} + ab - ab - b^{2} = a^{2} - b^{2}.

The two cross products are equal and opposite, so they cancel. That is exactly why the pattern needs the conjugate pair — one plus, one minus. Two identical brackets would double the cross product instead, giving a perfect-square trinomial.

The pattern is therefore very specific: a plus and a minus, in the two brackets, always.

Worked example, with a coefficient and a power

Factor16x4−8116x^{4} - 81.

Step 1. Is the first term a square?16x4=(4x2)216x^{4} = (4x^{2})^{2}. Yes.

Step 2. Is the last term a square?81=9281 = 9^{2}. Yes.

Step 3. Is the sign a minus? Yes. So the pattern applies witha=4x2a = 4x^{2} andb=9b = 9.

Step 4. Write the factors.(4x2−9)(4x2+9)(4x^{2} - 9)(4x^{2} + 9).

Step 5. Notice the first bracket factors again.4x2−9=(2x−3)(2x+3)4x^{2} - 9 = (2x-3)(2x+3).

So the complete answer is(2x−3)(2x+3)(4x2+9)(2x-3)(2x+3)(4x^{2}+9). The last bracket is a sum of squares and stays as it is.

By the end you can
  • Recognise the difference-of-squares pattern and name a and b
  • Write the two conjugate factors
  • Keep factoring when a factor is again a difference of squares
Check yourself

(a) Factor25x2−125x^{2} - 1.

(b) Factor4y2−494y^{2} - 49.

(c) Factorx4−1x^{4} - 1 completely.

Answers

(a)(5x)2−12=(5x−1)(5x+1)(5x)^{2} - 1^{2} = (5x-1)(5x+1).

(b)(2y)2−72=(2y−7)(2y+7)(2y)^{2} - 7^{2} = (2y-7)(2y+7).

(c)(x2−1)(x2+1)(x^{2}-1)(x^{2}+1), and the first bracket factors again:(x−1)(x+1)(x2+1)(x-1)(x+1)(x^{2}+1).

Work out where to start — free, no accountAnswer six real questions — free, no account