The square iden­ti­ties have big­ger rel­a­tives. One squares a sum of three terms; the oth­ers deal with cubes. Each can be read back­wards to fac­torise an expres­sion, just as you did with the square iden­ti­ties. This les­son cov­ers the square of three terms and the four cube iden­ti­ties, and shows how to recog­nise each shape.

The square of three terms

Expand­ing (a+b+c)2(a + b + c)^{2} gives

(a+b+c)2=a2+b2+c2+2ab+2bc+2ca(a + b + c)^{2} = a^{2} + b^{2} + c^{2} + 2ab + 2bc + 2ca

So an expres­sion with three square terms and three "twice the prod­uct" terms may be a per­fect square of three terms. The signs of the prod­uct terms tell you the signs inside the bracket. For instance, if aa is replaced by −a-a, the terms 2ab2ab and 2ca2ca change sign but 2bc2bc does not:

a2+b2+c2−2ab+2bc−2ca=(−a+b+c)2a^{2} + b^{2} + c^{2} - 2ab + 2bc - 2ca = (-a + b + c)^{2}

Exam­ple 1

Fac­torise x2+4y2+9z2+4xy+12yz+6zxx^{2} + 4y^{2} + 9z^{2} + 4xy + 12yz + 6zx.

The square terms are x2x^{2}, (2y)2(2y)^{2} and (3z)2(3z)^{2}. Check the prod­ucts: 2(x)(2y)=4xy2(x)(2y) = 4xy, 2(2y)(3z)=12yz2(2y)(3z) = 12yz, 2(3z)(x)=6zx2(3z)(x) = 6zx. All three match and all are pos­i­tive.

x2+4y2+9z2+4xy+12yz+6zx=(x+2y+3z)2x^{2} + 4y^{2} + 9z^{2} + 4xy + 12yz + 6zx = (x + 2y + 3z)^{2}

Exam­ple 2: surds and minus signs

Fac­torise 2x2+y2+8z2−22xy+42yz−8zx2x^{2} + y^{2} + 8z^{2} - 2\sqrt{2}xy + 4\sqrt{2}yz - 8zx.

First write each square term as a square. 2x2=(2x)22x^{2} = (\sqrt{2}x)^{2}, y2=(y)2y^{2} = (y)^{2}, and 8z2=(22z)28z^{2} = (2\sqrt{2}z)^{2}, since 8=4×2=22\sqrt{8} = \sqrt{4 \times 2} = 2\sqrt{2}. Now write the other terms as twice a prod­uct:

(2x)2+(y)2+(22z)2−2(2x)(y)+2(y)(22z)−2(22z)(2x)(\sqrt{2}x)^{2} + (y)^{2} + (2\sqrt{2}z)^{2} - 2(\sqrt{2}x)(y) + 2(y)(2\sqrt{2}z) - 2(2\sqrt{2}z)(\sqrt{2}x)

With a=2xa = \sqrt{2}x, b=yb = y and c=22zc = 2\sqrt{2}z, this is a2+b2+c2−2ab+2bc−2caa^{2} + b^{2} + c^{2} - 2ab + 2bc - 2ca. The two terms with a minus sign both con­tain aa, so aa is the one that is neg­a­tive:

=(−2x+y+22z)2= (-\sqrt{2}x + y + 2\sqrt{2}z)^{2}

A tempt­ing wrong answer is (2x+y+8z)2(2x + y + 8z)^{2}. It uses the square terms as they stand instead of their square roots. Always take square roots first.

The four cube iden­ti­ties

(a+b)3=a3+b3+3ab(a+b)=a3+b3+3a2b+3ab2(a−b)3=a3−b3−3ab(a−b)=a3−b3−3a2b+3ab2a3+b3=(a+b)(a2−ab+b2)a3−b3=(a−b)(a2+ab+b2)\begin{aligned} (a + b)^{3} &= a^{3} + b^{3} + 3ab(a + b) = a^{3} + b^{3} + 3a^{2}b + 3ab^{2} \\ (a - b)^{3} &= a^{3} - b^{3} - 3ab(a - b) = a^{3} - b^{3} - 3a^{2}b + 3ab^{2} \\ a^{3} + b^{3} &= (a + b)(a^{2} - ab + b^{2}) \\ a^{3} - b^{3} &= (a - b)(a^{2} + ab + b^{2}) \end{aligned}

The first two show what a per­fect cube looks like when expanded: four terms. The last two fac­torise a sum and a dif­fer­ence of two cubes. Notice the signs in the last two: the bracket (a+b)(a + b) goes with −ab-ab, and (a−b)(a - b) goes with +ab+ab. The sec­ond bracket never fac­torises fur­ther.

Exam­ple 3: a per­fect cube

Fac­torise x3−12x(x−4)−64x^{3} - 12x(x - 4) - 64.

Open the bracket first: x3−12x2+48x−64x^{3} - 12x^{2} + 48x - 64. Four terms, with x3x^{3} and 64=4364 = 4^{3} at the ends, sug­gest a cube. Check the mid­dle terms against (a−b)3(a - b)^{3} with a=xa = x, b=4b = 4:

x3−12x2+48x−64=(x)3−(4)3−3(x)2(4)+3(x)(4)2=(x−4)3\begin{aligned} x^{3} - 12x^{2} + 48x - 64 &= (x)^{3} - (4)^{3} - 3(x)^{2}(4) + 3(x)(4)^{2} \\ &= (x - 4)^{3} \end{aligned}

Both mid­dle terms match: 3x2×4=12x23x^{2} \times 4 = 12x^{2} and 3x×16=48x3x \times 16 = 48x.

Exam­ple 4: a sum of cubes

Fac­torise 8x3+278x^{3} + 27.

8x3+27=(2x)3+33=(2x+3)[(2x)2−(2x)(3)+32]=(2x+3)(4x2−6x+9)\begin{aligned} 8x^{3} + 27 &= (2x)^{3} + 3^{3} \\ &= (2x + 3)\left[(2x)^{2} - (2x)(3) + 3^{2}\right] \\ &= (2x + 3)(4x^{2} - 6x + 9) \end{aligned}

Exam­ple 5: a dif­fer­ence of cubes

Fac­torise 27a3−64b327a^{3} - 64b^{3}.

27a3−64b3=(3a)3−(4b)3=(3a−4b)(9a2+12ab+16b2)\begin{aligned} 27a^{3} - 64b^{3} &= (3a)^{3} - (4b)^{3} \\ &= (3a - 4b)(9a^{2} + 12ab + 16b^{2}) \end{aligned}

Exam­ple 6: an incom­plete cube

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

The first three terms look like the start of (x+1)3=x3+3x2+3x+1(x + 1)^{3} = x^{3} + 3x^{2} + 3x + 1. Write −7-7 as 1−81 - 8 to com­plete the cube:

x3+3x2+3x−7=(x)3+3(x)2(1)+3(x)(1)2+13−8=(x+1)3−23\begin{aligned} x^{3} + 3x^{2} + 3x - 7 &= (x)^{3} + 3(x)^{2}(1) + 3(x)(1)^{2} + 1^{3} - 8 \\ &= (x + 1)^{3} - 2^{3} \end{aligned}

Now it is a dif­fer­ence of cubes with a=x+1a = x + 1 and b=2b = 2:

=(x+1−2)[(x+1)2+(x+1)2+22]=(x−1)[x2+2x+1+2x+2+4]=(x−1)(x2+4x+7)\begin{aligned} &= (x + 1 - 2)\left[(x + 1)^{2} + (x + 1)2 + 2^{2}\right] \\ &= (x - 1)\left[x^{2} + 2x + 1 + 2x + 2 + 4\right] \\ &= (x - 1)(x^{2} + 4x + 7) \end{aligned}

Exam­ple 7: sixth pow­ers

Fac­torise x6+y6x^{6} + y^{6}.

A sixth power is a cube of a square: x6=(x2)3x^{6} = (x^{2})^{3}. So this is a sum of two cubes with a=x2a = x^{2} and b=y2b = y^{2}.

x6+y6=(x2)3+(y2)3=(x2+y2)[(x2)2−x2⋅y2+(y2)2]=(x2+y2)(x4−x2y2+y4)\begin{aligned} x^{6} + y^{6} &= (x^{2})^{3} + (y^{2})^{3} \\ &= (x^{2} + y^{2})\left[(x^{2})^{2} - x^{2} \cdot y^{2} + (y^{2})^{2}\right] \\ &= (x^{2} + y^{2})(x^{4} - x^{2}y^{2} + y^{4}) \end{aligned}

Prac­tice

Fac­torise.

  1. 4x2+y2+z2+4xy+2yz+4zx4x^{2} + y^{2} + z^{2} + 4xy + 2yz + 4zx
  2. 9a2+b2+4c2−6ab−4bc+12ca9a^{2} + b^{2} + 4c^{2} - 6ab - 4bc + 12ca
  3. 8x3+36x2y+54xy2+27y38x^{3} + 36x^{2}y + 54xy^{2} + 27y^{3}
  4. 27−27a+9a2−a327 - 27a + 9a^{2} - a^{3}
  5. x3+125x^{3} + 125
  6. 64m3−27n364m^{3} - 27n^{3}
  7. 2x3+542x^{3} + 54
  8. x3−3x2+3x+7x^{3} - 3x^{2} + 3x + 7
  9. x6−y6x^{6} - y^{6}

Answers

Show answers
  1. (2x)2+y2+z2+2(2x)(y)+2(y)(z)+2(z)(2x)=(2x+y+z)2(2x)^{2} + y^{2} + z^{2} + 2(2x)(y) + 2(y)(z) + 2(z)(2x) = (2x + y + z)^{2}
  2. The terms with minus signs both con­tain bb, so bb is neg­a­tive: (3a−b+2c)2(3a - b + 2c)^{2}
  3. (2x)3+3(2x)2(3y)+3(2x)(3y)2+(3y)3=(2x+3y)3(2x)^{3} + 3(2x)^{2}(3y) + 3(2x)(3y)^{2} + (3y)^{3} = (2x + 3y)^{3}
  4. 33−3(3)2a+3(3)a2−a3=(3−a)33^{3} - 3(3)^{2}a + 3(3)a^{2} - a^{3} = (3 - a)^{3}
  5. (x+5)(x2−5x+25)(x + 5)(x^{2} - 5x + 25)
  6. (4m−3n)(16m2+12mn+9n2)(4m - 3n)(16m^{2} + 12mn + 9n^{2})
  7. 2(x3+27)=2(x+3)(x2−3x+9)2(x^{3} + 27) = 2(x + 3)(x^{2} - 3x + 9)
  8. (x−1)3+8=(x−1)3+23=(x−1+2)[(x−1)2−2(x−1)+4]=(x+1)(x2−4x+7)(x - 1)^{3} + 8 = (x - 1)^{3} + 2^{3} = (x - 1 + 2)\left[(x - 1)^{2} - 2(x - 1) + 4\right] = (x + 1)(x^{2} - 4x + 7)
  9. (x3+y3)(x3−y3)=(x+y)(x2−xy+y2)(x−y)(x2+xy+y2)(x^{3} + y^{3})(x^{3} - y^{3}) = (x + y)(x^{2} - xy + y^{2})(x - y)(x^{2} + xy + y^{2})