The last group of iden­ti­ties turns things round. Instead of expand­ing a cube, we start with a sum or dif­fer­ence of cubes, such as a3+b3a^3 + b^3, and write it in other forms. These results are used to fac­torise, to find val­ues quickly, and to eval­u­ate sums of cubes with­out cub­ing any­thing. The les­son ends with a remark­able fact: if three num­bers add up to zero, the sum of their cubes is three times their prod­uct.

Iden­tity 13: the sum of two cubes

a3+b3=(a+b)3−3ab(a+b)=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)^3 - 3ab(a + b) = (a + b)(a^2 - ab + b^2)

Proof. The first form comes straight from iden­tity 11, (a+b)3=a3+b3+3ab(a+b)(a + b)^3 = a^3 + b^3 + 3ab(a + b), by tak­ing 3ab(a+b)3ab(a + b) to the other side.

For the sec­ond form, take out the com­mon fac­tor (a+b)(a + b):

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

Iden­tity 14: the dif­fer­ence of two cubes

a3−b3=(a−b)3+3ab(a−b)=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)^3 + 3ab(a - b) = (a - b)(a^2 + ab + b^2)

Proof. From iden­tity 12, (a−b)3=a3−b3−3ab(a−b)(a - b)^3 = a^3 - b^3 - 3ab(a - b), so a3−b3=(a−b)3+3ab(a−b)a^3 - b^3 = (a - b)^3 + 3ab(a - b). Tak­ing out (a−b)(a - b):

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

A way to remem­ber the signs: in a3+b3a^3 + b^3 the bracket (a+b)(a + b) has the same sign, and the abab in the sec­ond bracket has the oppo­site sign. The same holds for a3−b3a^3 - b^3.

Exam­ple 1

Find (x+2)(x2−2x+4)(x + 2)(x^2 - 2x + 4).

This is (a+b)(a2−ab+b2)(a + b)(a^2 - ab + b^2) with a=xa = x and b=2b = 2, since ab=2xab = 2x and b2=4b^2 = 4.

(x+2)(x2−2x+4)=x3+23=x3+8(x + 2)(x^2 - 2x + 4) = x^3 + 2^3 = x^3 + 8

Exam­ple 2

Find (3a−2b)(9a2+6ab+4b2)(3a - 2b)(9a^2 + 6ab + 4b^2).

This is (a−b)(a2+ab+b2)(a - b)(a^2 + ab + b^2) with 3a3a and 2b2b in place of aa and bb: (3a)2=9a2(3a)^2 = 9a^2, (3a)(2b)=6ab(3a)(2b) = 6ab and (2b)2=4b2(2b)^2 = 4b^2.

(3a−2b)(9a2+6ab+4b2)=(3a)3−(2b)3=27a3−8b3(3a - 2b)(9a^2 + 6ab + 4b^2) = (3a)^3 - (2b)^3 = 27a^3 - 8b^3

Exam­ple 3

If a+b=10a + b = 10 and ab=21ab = 21, find a3+b3a^3 + b^3.

First way.

a3+b3=(a+b)3−3ab(a+b)=1000−3×21×10=1000−630=370a^3 + b^3 = (a + b)^3 - 3ab(a + b) = 1000 - 3 \times 21 \times 10 = 1000 - 630 = 370

Sec­ond way. First a2+b2=(a+b)2−2ab=100−42=58a^2 + b^2 = (a + b)^2 - 2ab = 100 - 42 = 58, so a2−ab+b2=58−21=37a^2 - ab + b^2 = 58 - 21 = 37. Then

a3+b3=(a+b)(a2−ab+b2)=10×37=370a^3 + b^3 = (a + b)(a^2 - ab + b^2) = 10 \times 37 = 370

Exam­ple 4

Find the value of 64x3−125z364x^3 - 125z^3 if 4x−5z=164x - 5z = 16 and xz=12xz = 12.

Notice that 64x3=(4x)364x^3 = (4x)^3 and 125z3=(5z)3125z^3 = (5z)^3. Use iden­tity 14 with a=4xa = 4x and b=5zb = 5z, so ab=20xz=240ab = 20xz = 240.

64x3−125z3=(4x−5z)3+3(4x)(5z)(4x−5z)=163+3×240×16=4096+11520=15616\begin{aligned} 64x^3 - 125z^3 &= (4x - 5z)^3 + 3(4x)(5z)(4x - 5z) \\ &= 16^3 + 3 \times 240 \times 16 \\ &= 4096 + 11520 \\ &= 15616 \end{aligned}

Iden­tity 15: three cubes

a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca)a^3 + b^3 + c^3 - 3abc = (a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca)

Proof. Mul­ti­ply out the right-hand side, one term of the first bracket at a time.

a×(…)=a3+ab2+ac2−a2b−abc−a2cb×(…)=a2b+b3+bc2−ab2−b2c−abcc×(…)=a2c+b2c+c3−abc−bc2−ac2\begin{aligned} a \times (\ldots) &= a^3 + ab^2 + ac^2 - a^2b - abc - a^2c \\ b \times (\ldots) &= a^2b + b^3 + bc^2 - ab^2 - b^2c - abc \\ c \times (\ldots) &= a^2c + b^2c + c^3 - abc - bc^2 - ac^2 \end{aligned}

Now add the three lines. Every term like ab2ab^2 appears once with a plus sign and once with a minus sign, so it can­cels. What is left is a3+b3+c3−3abca^3 + b^3 + c^3 - 3abc, which is the left-hand side.

Iden­tity 16: when three num­bers add up to zero

If a+b+c=0a + b + c = 0, then a3+b3+c3=3abca^3 + b^3 + c^3 = 3abc.

Proof. If a+b+c=0a + b + c = 0, the right-hand side of iden­tity 15 is 0×(…)=00 \times (\ldots) = 0. So a3+b3+c3−3abc=0a^3 + b^3 + c^3 - 3abc = 0, which gives a3+b3+c3=3abca^3 + b^3 + c^3 = 3abc.

Exam­ple 5

Find (−12)3+73+53(-12)^3 + 7^3 + 5^3 with­out cub­ing.

The three num­bers add up to −12+7+5=0-12 + 7 + 5 = 0. So

(−12)3+73+53=3×(−12)×7×5=−1260(-12)^3 + 7^3 + 5^3 = 3 \times (-12) \times 7 \times 5 = -1260

Check: −1728+343+125=−1260-1728 + 343 + 125 = -1260.

Exam­ple 6

Sim­plify (x−y)3+(y−z)3+(z−x)3(x - y)^3 + (y - z)^3 + (z - x)^3.

The three brack­ets add up to (x−y)+(y−z)+(z−x)=0(x - y) + (y - z) + (z - x) = 0. So by iden­tity 16,

(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)

Exam­ple 7

If a+b+c=6a + b + c = 6, ab+bc+ca=11ab + bc + ca = 11 and a2+b2+c2=14a^2 + b^2 + c^2 = 14, find a3+b3+c3−3abca^3 + b^3 + c^3 - 3abc.

a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca)=6×(14−11)=18a^3 + b^3 + c^3 - 3abc = (a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca) = 6 \times (14 - 11) = 18

Check with a=1a = 1, b=2b = 2, c=3c = 3: 1+8+27−3×6=36−18=181 + 8 + 27 - 3 \times 6 = 36 - 18 = 18.

All the iden­ti­ties together

Num­ber Iden­tity
1 (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2
2 (a+b)2=a2+b2+2ab(a + b)^2 = a^2 + b^2 + 2ab
3 (a−b)2=a2+b2−2ab(a - b)^2 = a^2 + b^2 - 2ab
4 (a+b)2+(a−b)2=2(a2+b2)(a + b)^2 + (a - b)^2 = 2(a^2 + b^2)
5 (a+b)2−(a−b)2=4ab(a + b)^2 - (a - b)^2 = 4ab
6 (a+b)2=(a−b)2+4ab(a + b)^2 = (a - b)^2 + 4ab
7 (a−b)2=(a+b)2−4ab(a - b)^2 = (a + b)^2 - 4ab
8 a2+b2=(a+b)2−2ab=(a−b)2+2aba^2 + b^2 = (a + b)^2 - 2ab = (a - b)^2 + 2ab
9 (a+b+c)2=a2+b2+c2+2ab+2bc+2ca(a + b + c)^2 = a^2 + b^2 + c^2 + 2ab + 2bc + 2ca
11 (a+b)3=a3+b3+3ab(a+b)(a + b)^3 = a^3 + b^3 + 3ab(a + b)
12 (a−b)3=a3−b3−3ab(a−b)(a - b)^3 = a^3 - b^3 - 3ab(a - b)
13 a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)
14 a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)
15 a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca)a^3 + b^3 + c^3 - 3abc = (a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca)
16 if a+b+c=0a + b + c = 0, then a3+b3+c3=3abca^3 + b^3 + c^3 = 3abc

Iden­tity 10, the tri­no­mial square with neg­a­tive terms, fol­lows from iden­tity 9 by chang­ing signs.

Prac­tice

  1. Find (x+3)(x2−3x+9)(x + 3)(x^2 - 3x + 9).
  2. Find (2a−1)(4a2+2a+1)(2a - 1)(4a^2 + 2a + 1).
  3. Find (p+2q)(p2−2pq+4q2)(p + 2q)(p^2 - 2pq + 4q^2).
  4. If a+b=6a + b = 6 and ab=8ab = 8, find a3+b3a^3 + b^3.
  5. If a−b=3a - b = 3 and ab=10ab = 10, find a3−b3a^3 - b^3.
  6. Find 27x3−8y327x^3 - 8y^3 if 3x−2y=53x - 2y = 5 and xy=2xy = 2.
  7. Find 153−83−7315^3 - 8^3 - 7^3 with­out cub­ing.
  8. If a+b+c=0a + b + c = 0 and abc=4abc = 4, find a3+b3+c3a^3 + b^3 + c^3.
  9. If a+b+c=9a + b + c = 9 and ab+bc+ca=26ab + bc + ca = 26, find a2+b2+c2a^2 + b^2 + c^2 and then a3+b3+c3−3abca^3 + b^3 + c^3 - 3abc.

Answers

Show answers
  1. x3+27x^3 + 27
  2. 8a3−18a^3 - 1
  3. p3+8q3p^3 + 8q^3
  4. 216−3×8×6=216−144=72216 - 3 \times 8 \times 6 = 216 - 144 = 72
  5. 27+3×10×3=27+90=11727 + 3 \times 10 \times 3 = 27 + 90 = 117
  6. (3x−2y)3+3(3x)(2y)(3x−2y)=125+18×2×5=125+180=305(3x - 2y)^3 + 3(3x)(2y)(3x - 2y) = 125 + 18 \times 2 \times 5 = 125 + 180 = 305
  7. 15+(−8)+(−7)=015 + (-8) + (-7) = 0, so the value is 3×15×(−8)×(−7)=25203 \times 15 \times (-8) \times (-7) = 2520.
  8. 3×4=123 \times 4 = 12
  9. a2+b2+c2=81−52=29a^2 + b^2 + c^2 = 81 - 52 = 29. Then 9×(29−26)=279 \times (29 - 26) = 27.