You now have every main tool: com­mon fac­tors, group­ing, the iden­ti­ties and split­ting the mid­dle term. Harder expres­sions usu­ally need two or three of these tools in a row, plus a small trick to get started. This les­son col­lects the most use­ful tricks: split­ting a term to make group­ing work, adding and sub­tract­ing the same term, the spe­cial case a+b+c=0a + b + c = 0, and fac­toris­ing again and again until noth­ing is left to split.

Split­ting a term so that group­ing works

Exam­ple 1

Fac­torise x3−7x+6x^{3} - 7x + 6.

There are three terms and no com­mon fac­tor. Split −7x-7x as −x−6x-x - 6x. The rea­son for this choice: x3−xx^{3} - x has the fac­tor x−1x - 1, and so does −6x+6-6x + 6.

x3−7x+6=x3−x−6x+6=x(x2−1)−6(x−1)=x(x−1)(x+1)−6(x−1)=(x−1)[x(x+1)−6]=(x−1)(x2+x−6)\begin{aligned} x^{3} - 7x + 6 &= x^{3} - x - 6x + 6 \\ &= x(x^{2} - 1) - 6(x - 1) \\ &= x(x - 1)(x + 1) - 6(x - 1) \\ &= (x - 1)[x(x + 1) - 6] \\ &= (x - 1)(x^{2} + x - 6) \end{aligned}

The qua­dratic still fac­torises. For x2+x−6x^{2} + x - 6 we need prod­uct −6-6 and sum 11: the num­bers 33 and −2-2.

x2+x−6=x2+3x−2x−6=x(x+3)−2(x+3)=(x+3)(x−2)x^{2} + x - 6 = x^{2} + 3x - 2x - 6 = x(x + 3) - 2(x + 3) = (x + 3)(x - 2)

So x3−7x+6=(x−1)(x+3)(x−2)x^{3} - 7x + 6 = (x - 1)(x + 3)(x - 2).

Adding and sub­tract­ing the same term

Some­times an expres­sion is "almost" a per­fect square. Add the term that would com­plete the square, and sub­tract it again so that noth­ing has changed. The result is often a dif­fer­ence of two squares.

Exam­ple 2

Fac­torise x4+x2+1x^{4} + x^{2} + 1.

A per­fect square would be (x2+1)2=x4+2x2+1(x^{2} + 1)^{2} = x^{4} + 2x^{2} + 1, with 2x22x^{2} in the mid­dle. We have only x2x^{2}, so add x2x^{2} and take it away again.

x4+x2+1=(x2)2+2x2+1−x2=(x2+1)2−x2=(x2+1+x)(x2+1−x)=(x2+x+1)(x2−x+1)\begin{aligned} x^{4} + x^{2} + 1 &= (x^{2})^{2} + 2x^{2} + 1 - x^{2} \\ &= (x^{2} + 1)^{2} - x^{2} \\ &= (x^{2} + 1 + x)(x^{2} + 1 - x) \\ &= (x^{2} + x + 1)(x^{2} - x + 1) \end{aligned}

Exam­ple 3

Fac­torise x4+4x^{4} + 4.

There is no mid­dle term at all. To com­plete the square (x2+2)2(x^{2} + 2)^{2} we need 2(x2)(2)=4x22(x^{2})(2) = 4x^{2}. Add it and sub­tract it:

x4+4=(x2)2+(2)2+2(x2)(2)−4x2=(x2+2)2−(2x)2=(x2+2+2x)(x2+2−2x)=(x2+2x+2)(x2−2x+2)\begin{aligned} x^{4} + 4 &= (x^{2})^{2} + (2)^{2} + 2(x^{2})(2) - 4x^{2} \\ &= (x^{2} + 2)^{2} - (2x)^{2} \\ &= (x^{2} + 2 + 2x)(x^{2} + 2 - 2x) \\ &= (x^{2} + 2x + 2)(x^{2} - 2x + 2) \end{aligned}

The trick works here because the term we sub­tracted, 4x24x^{2}, is itself a per­fect square, (2x)2(2x)^{2}.

When three things add up to zero

There is an iden­tity for the sum of three cubes:

if a+b+c=0, then a3+b3+c3=3abc\text{if } a + b + c = 0, \text{ then } a^{3} + b^{3} + c^{3} = 3abc

It saves a great deal of work when­ever three cubed brack­ets add up to zero.

Exam­ple 4

Fac­torise (x−y)3+(y−z)3+(z−x)3(x - y)^{3} + (y - z)^{3} + (z - x)^{3}.

Let a=x−ya = x - y, b=y−zb = y - z and c=z−xc = z - x. Then

(x−y)+(y−z)+(z−x)=0(x - y) + (y - z) + (z - x) = 0

because every let­ter appears once with a plus sign and once with a minus sign. So by the iden­tity,

(x−y)3+(y−z)3+(z−x)3=3(x−y)(y−z)(z−x)(x - y)^{3} + (y - z)^{3} + (z - x)^{3} = 3(x - y)(y - z)(z - x)

Expand­ing all three cubes would take a page; the iden­tity takes one line.

Keep going until noth­ing splits

Exam­ple 5

Fac­torise xy9−yx9xy^{9} - yx^{9}.

Take out the com­mon fac­tor xyxy first. What is left is a dif­fer­ence of two squares, and it keeps pro­duc­ing more of them.

xy9−yx9=xy(y8−x8)=xy((y4)2−(x4)2)=xy(y4+x4)(y4−x4)=xy(y4+x4)(y2+x2)(y2−x2)=xy(y4+x4)(y2+x2)(y+x)(y−x)\begin{aligned} xy^{9} - yx^{9} &= xy(y^{8} - x^{8}) \\ &= xy\left((y^{4})^{2} - (x^{4})^{2}\right) \\ &= xy(y^{4} + x^{4})(y^{4} - x^{4}) \\ &= xy(y^{4} + x^{4})(y^{2} + x^{2})(y^{2} - x^{2}) \\ &= xy(y^{4} + x^{4})(y^{2} + x^{2})(y + x)(y - x) \end{aligned}

Each dif­fer­ence of squares split again; each sum of squares stayed as it was. Stop only when no fac­tor can be bro­ken fur­ther.

Exam­ple 6: spot­ting a com­mon bracket

Fac­torise (x+2)(x2+25)−10x2−20x(x + 2)(x^{2} + 25) - 10x^{2} - 20x.

The last two terms have the com­mon fac­tor 10x10x, and what is left is (x+2)(x + 2), the same bracket as at the start.

(x+2)(x2+25)−10x2−20x=(x+2)(x2+25)−10x(x+2)=(x+2)(x2+25−10x)=(x+2)(x2−10x+25)=(x+2)(x−5)2\begin{aligned} (x + 2)(x^{2} + 25) - 10x^{2} - 20x &= (x + 2)(x^{2} + 25) - 10x(x + 2) \\ &= (x + 2)(x^{2} + 25 - 10x) \\ &= (x + 2)(x^{2} - 10x + 25) \\ &= (x + 2)(x - 5)^{2} \end{aligned}

The last step uses the per­fect square a2−2ab+b2a^{2} - 2ab + b^{2} with a=xa = x and b=5b = 5.

A check­list for any expres­sion

  1. Take out any com­mon fac­tor.
  2. Count the terms. Two terms: try a dif­fer­ence of squares, or a sum or dif­fer­ence of cubes. Three terms: try a per­fect square, then split­ting the mid­dle term. Four or more: try group­ing, or a per­fect cube.
  3. If a bracket repeats, replace it by a sin­gle let­ter.
  4. If noth­ing fits, try split­ting a term, or adding and sub­tract­ing a term.
  5. Look at every fac­tor again and ask whether it splits fur­ther.
  6. Check by expand­ing.

Prac­tice

Fac­torise.

  1. x3−13x+12x^{3} - 13x + 12
  2. x4+x2y2+y4x^{4} + x^{2}y^{2} + y^{4}
  3. 4x4+14x^{4} + 1
  4. (a−2b)3+(2b−3c)3+(3c−a)3(a - 2b)^{3} + (2b - 3c)^{3} + (3c - a)^{3}
  5. x8−1x^{8} - 1
  6. a2x2+(ax2+1)x+aa^{2}x^{2} + (ax^{2} + 1)x + a
  7. a(a+b)3−3a2b(a+b)a(a + b)^{3} - 3a^{2}b(a + b)
  8. x3−6x2+11x−6x^{3} - 6x^{2} + 11x - 6 (hint: write it as x3−x2−5x2+5x+6x−6x^{3} - x^{2} - 5x^{2} + 5x + 6x - 6)

Answers

Show answers
  1. x3−x−12x+12=x(x−1)(x+1)−12(x−1)=(x−1)(x2+x−12)=(x−1)(x+4)(x−3)x^{3} - x - 12x + 12 = x(x - 1)(x + 1) - 12(x - 1) = (x - 1)(x^{2} + x - 12) = (x - 1)(x + 4)(x - 3)
  2. (x2+y2)2−x2y2=(x2+xy+y2)(x2−xy+y2)(x^{2} + y^{2})^{2} - x^{2}y^{2} = (x^{2} + xy + y^{2})(x^{2} - xy + y^{2})
  3. (2x2)2+1+4x2−4x2=(2x2+1)2−(2x)2=(2x2+2x+1)(2x2−2x+1)(2x^{2})^{2} + 1 + 4x^{2} - 4x^{2} = (2x^{2} + 1)^{2} - (2x)^{2} = (2x^{2} + 2x + 1)(2x^{2} - 2x + 1)
  4. The three brack­ets add up to 00, so the answer is 3(a−2b)(2b−3c)(3c−a)3(a - 2b)(2b - 3c)(3c - a).
  5. (x4+1)(x4−1)=(x4+1)(x2+1)(x2−1)=(x4+1)(x2+1)(x+1)(x−1)(x^{4} + 1)(x^{4} - 1) = (x^{4} + 1)(x^{2} + 1)(x^{2} - 1) = (x^{4} + 1)(x^{2} + 1)(x + 1)(x - 1)
  6. Expand the bracket: a2x2+ax3+x+a=ax2(a+x)+1(x+a)=(x+a)(ax2+1)a^{2}x^{2} + ax^{3} + x + a = ax^{2}(a + x) + 1(x + a) = (x + a)(ax^{2} + 1)
  7. Take out a(a+b)a(a + b): a(a+b)[(a+b)2−3ab]=a(a+b)(a2−ab+b2)a(a + b)\left[(a + b)^{2} - 3ab\right] = a(a + b)(a^{2} - ab + b^{2})
  8. x2(x−1)−5x(x−1)+6(x−1)=(x−1)(x2−5x+6)=(x−1)(x−2)(x−3)x^{2}(x - 1) - 5x(x - 1) + 6(x - 1) = (x - 1)(x^{2} - 5x + 6) = (x - 1)(x - 2)(x - 3)