New iden­ti­ties from old

Once you know a few iden­ti­ties, you can mul­ti­ply them together to get new ones. That is the whole spirit of this les­son. We build (a+b)3(a + b)^3 from (a+b)2(a + b)^2 and pic­ture it as a cube cut into blocks. Then we find the sum and dif­fer­ence of cubes, meet the three-vari­able iden­tity for x3+y3+z3−3xyzx^3 + y^3 + z^3 - 3xyz, and finally use fac­tori­sa­tion to can­cel com­mon fac­tors in alge­braic frac­tions.

(a+b)3(a + b)^3

(a+b)3=(a+b)(a+b)2=(a+b)(a2+2ab+b2)=a3+3a2b+3ab2+b3(a + b)^3 = (a + b)(a + b)^2 = (a + b)(a^2 + 2ab + b^2) = a^3 + 3a^2b + 3ab^2 + b^3

You can see this in a pic­ture. A cube of edge a+ba + b splits into a cube of edge aa, a cube of edge bb, three slabs a×a×ba \times a \times b and three slabs a×b×ba \times b \times b. Add up their vol­umes and you get a3+b3+3a2b+3ab2a^3 + b^3 + 3a^2b + 3ab^2.

A cube of edge a + b shown whole and then taken apart: one cube a cubed, three slabs a by a by b, three slabs a by b by b, and one small cube b cubed.
The cube on a + b splits into a cubed, 3a squared b, 3ab squared and b cubed.

As before, replac­ing bb by −b-b gives the minus ver­sion for free.

(a−b)3=a3−3a2b+3ab2−b3(a - b)^3 = a^3 - 3a^2b + 3ab^2 - b^3

Notice how the signs alter­nate: plus, minus, plus, minus.

Exam­ple 1. (2x+3)3=8x3+3(4x2)(3)+3(2x)(9)+27=8x3+36x2+54x+27(2x + 3)^3 = 8x^3 + 3(4x^2)(3) + 3(2x)(9) + 27 = 8x^3 + 36x^2 + 54x + 27.

Exam­ple 2. (m−4n)3=m3−12m2n+48mn2−64n3(m - 4n)^3 = m^3 - 12m^2n + 48mn^2 - 64n^3.

Exam­ple 3. 1023=(100+2)3=1000000+60000+1200+8=1061208102^3 = (100 + 2)^3 = 1000000 + 60000 + 1200 + 8 = 1061208.

Exam­ple 4. 983=(100−2)3=1000000−60000+1200−8=94119298^3 = (100 - 2)^3 = 1000000 - 60000 + 1200 - 8 = 941192.

Exam­ple 5. A cube has vol­ume 27p3+54p2q+36pq2+8q327p^3 + 54p^2q + 36pq^2 + 8q^3. What is its edge?

The end terms sug­gest match­ing it to a3+3a2b+3ab2+b3a^3 + 3a^2b + 3ab^2 + b^3 with a=3pa = 3p, b=2qb = 2q. Now check the mid­dle terms: 3a2b=3(9p2)(2q)=54p2q3a^2b = 3(9p^2)(2q) = 54p^2q ✓, 3ab2=3(3p)(4q2)=36pq23ab^2 = 3(3p)(4q^2) = 36pq^2 ✓. So the edge is 3p+2q3p + 2q.

Sum and dif­fer­ence of cubes

Try mul­ti­ply­ing out (x−y)(x2+xy+y2)(x - y)(x^2 + xy + y^2) and watch what hap­pens.

x3+x2y+xy2−x2y−xy2−y3=x3−y3x^3 + x^2y + xy^2 - x^2y - xy^2 - y^3 = x^3 - y^3

Every­thing in the mid­dle can­cels, which is rather sat­is­fy­ing. The same thing hap­pens with the signs swapped.

x3−y3=(x−y)(x2+xy+y2),x3+y3=(x+y)(x2−xy+y2)x^3 - y^3 = (x - y)(x^2 + xy + y^2), \qquad x^3 + y^3 = (x + y)(x^2 - xy + y^2)

Here is how to remem­ber the signs. The three-term fac­tor has the oppo­site sign in the mid­dle from the two-term fac­tor. And do not try to fac­tor it fur­ther, because it is never a per­fect square.

Exam­ple 6. 8a3−125=(2a)3−53=(2a−5)(4a2+10a+25)8a^3 - 125 = (2a)^3 - 5^3 = (2a - 5)(4a^2 + 10a + 25).

Exam­ple 7. x3+64y3=(x+4y)(x2−4xy+16y2)x^3 + 64y^3 = (x + 4y)(x^2 - 4xy + 16y^2).

Exam­ple 8. x4−y4=(x2−y2)(x2+y2)=(x−y)(x+y)(x2+y2)x^4 - y^4 = (x^2 - y^2)(x^2 + y^2) = (x - y)(x + y)(x^2 + y^2). Do you see a pat­tern? x−yx - y divides x2−y2x^2 - y^2, x3−y3x^3 - y^3 and x4−y4x^4 - y^4. In fact it divides xn−ynx^n - y^n for every nn.

Rewrit­ing cubes. From (a+b)3=a3+b3+3ab(a+b)(a + b)^3 = a^3 + b^3 + 3ab(a + b) we get a3+b3=(a+b)3−3ab(a+b)a^3 + b^3 = (a + b)^3 - 3ab(a + b). This is handy when you know a+ba + b and abab but not the two num­bers them­selves.

Exam­ple 9. Sup­pose a+b=5a + b = 5 and ab=6ab = 6. Then a3+b3=125−90=35a^3 + b^3 = 125 - 90 = 35. (As a check, a,ba, b are 2,32, 3, and 8+27=358 + 27 = 35 ✓.)

Three vari­ables

(x+y+z)(x2+y2+z2−xy−yz−zx)=x3+y3+z3−3xyz(x + y + z)(x^2 + y^2 + z^2 - xy - yz - zx) = x^3 + y^3 + z^3 - 3xyz

If you mul­ti­ply this out you get 2727 terms, and all but four of them can­cel in pairs. It is worth doing once, slowly. A very use­ful result fol­lows: if x+y+z=0x + y + z = 0, then x3+y3+z3=3xyzx^3 + y^3 + z^3 = 3xyz.

Exam­ple 10. Three num­bers add to 88, their squares add to 3030, and their prod­uct is 1010. Find the sum of their cubes.

We first need the sum of the pair­wise prod­ucts. From (x+y+z)2=x2+y2+z2+2(xy+yz+zx)(x + y + z)^2 = x^2 + y^2 + z^2 + 2(xy + yz + zx) we get 64=30+2(xy+yz+zx)64 = 30 + 2(xy + yz + zx), so xy+yz+zx=17xy + yz + zx = 17. Then

x3+y3+z3−3xyz=8(30−17)=104,x3+y3+z3=104+30=134x^3 + y^3 + z^3 - 3xyz = 8(30 - 17) = 104, \qquad x^3 + y^3 + z^3 = 104 + 30 = 134

Exam­ple 11. Fac­tor a3+8b3+27c3−18abca^3 + 8b^3 + 27c^3 - 18abc. The trick is to see it as a3+(2b)3+(3c)3−3(a)(2b)(3c)=(a+2b+3c)(a2+4b2+9c2−2ab−6bc−3ca)a^3 + (2b)^3 + (3c)^3 - 3(a)(2b)(3c) = (a + 2b + 3c)(a^2 + 4b^2 + 9c^2 - 2ab - 6bc - 3ca).

Exam­ple 12. Eval­u­ate x3+y3+27−9xyx^3 + y^3 + 27 - 9xy when x+y=−3x + y = -3. Write it as x3+y3+33−3(x)(y)(3)x^3 + y^3 + 3^3 - 3(x)(y)(3). Since x+y+3=0x + y + 3 = 0, the value is 00, with no cal­cu­la­tion at all.

Sim­pli­fy­ing alge­braic frac­tions

The method is just what you did with num­ber frac­tions. Fac­tor the top and the bot­tom, and can­cel any com­mon fac­tor. We are allowed to can­cel only because the denom­i­na­tor is assumed nonzero, which means the fac­tor we can­cel is nonzero too.

Exam­ple 13. Take x2−9x+184x2−24x\displaystyle \dfrac{x^2 - 9x + 18}{4x^2 - 24x}. The top is (x−3)(x−6)(x - 3)(x - 6) and the bot­tom is 4x(x−6)4x(x - 6), so the result is x−34x\displaystyle \dfrac{x - 3}{4x}.

Exam­ple 14. Take 25s2−10st+t2t2−3st−10s2\displaystyle \dfrac{25s^2 - 10st + t^2}{t^2 - 3st - 10s^2}. The top is (5s−t)2(5s - t)^2 and the bot­tom is (t−5s)(t+2s)(t - 5s)(t + 2s). Watch the sign here: since t−5s=−(5s−t)t - 5s = -(5s - t), we get (5s−t)2−(5s−t)(t+2s)=−5s−tt+2s=t−5st+2s\displaystyle \dfrac{(5s - t)^2}{-(5s - t)(t + 2s)} = -\dfrac{5s - t}{t + 2s} = \dfrac{t - 5s}{t + 2s}.

Exam­ple 15. a3−8b3a2−4b2=(a−2b)(a2+2ab+4b2)(a−2b)(a+2b)=a2+2ab+4b2a+2b\displaystyle \dfrac{a^3 - 8b^3}{a^2 - 4b^2} = \dfrac{(a - 2b)(a^2 + 2ab + 4b^2)}{(a - 2b)(a + 2b)} = \dfrac{a^2 + 2ab + 4b^2}{a + 2b}.

Prac­tice

  1. Expand: (a) (x+5)3(x + 5)^3; (b) (3a−2b)3(3a - 2b)^3; (c) (p−1p)3\displaystyle \left(p - \dfrac{1}{p}\right)^3.
  2. Eval­u­ate: (a) 1033103^3; (b) 1993199^3; (c) (−98)3(-98)^3.
  3. Fac­tor: (a) 27x3−127x^3 - 1; (b) a3+1000a^3 + 1000; (c) 64m3−144m2+108m−2764m^3 - 144m^2 + 108m - 27; (d) x3+y3+8z3−6xyzx^3 + y^3 + 8z^3 - 6xyz.
  4. If a−b=4a - b = 4 and ab=5ab = 5, find a3−b3a^3 - b^3.
  5. If p+q+r=6p + q + r = 6 and pq+qr+rp=11pq + qr + rp = 11, find p2+q2+r2p^2 + q^2 + r^2 and p3+q3+r3−3pqrp^3 + q^3 + r^3 - 3pqr.
  6. Eval­u­ate x3−27y3−27xy−27x^3 - 27y^3 - 27xy - 27 when x=3y+3x = 3y + 3.
  7. Sim­plify, assum­ing denom­i­na­tors are nonzero: (a) x2+8x+16x2−16\displaystyle \dfrac{x^2 + 8x + 16}{x^2 - 16}; (b) 2y2−18y2+7y+12\displaystyle \dfrac{2y^2 - 18}{y^2 + 7y + 12}; (c) u3+v3u2−uv+v2\displaystyle \dfrac{u^3 + v^3}{u^2 - uv + v^2}.
  8. Show that n3−nn^3 - n is divis­i­ble by 66 for every nat­ural num­ber nn.

Answers

Show answers
  1. (a) x3+15x2+75x+125x^3 + 15x^2 + 75x + 125. (b) 27a3−54a2b+36ab2−8b327a^3 - 54a^2b + 36ab^2 - 8b^3. (c) p3−3p+3p−1p3\displaystyle p^3 - 3p + \dfrac{3}{p} - \dfrac{1}{p^3}.
  2. (a) 10927271092727. (b) 8000000−120000+600−1=78805998000000 - 120000 + 600 - 1 = 7880599. (c) −941192-941192.
  3. (a) (3x−1)(9x2+3x+1)(3x - 1)(9x^2 + 3x + 1). (b) (a+10)(a2−10a+100)(a + 10)(a^2 - 10a + 100). (c) (4m−3)3(4m - 3)^3. (d) (x+y+2z)(x2+y2+4z2−xy−2yz−2zx)(x + y + 2z)(x^2 + y^2 + 4z^2 - xy - 2yz - 2zx).
  4. a3−b3=(a−b)3+3ab(a−b)=64+60=124a^3 - b^3 = (a - b)^3 + 3ab(a - b) = 64 + 60 = 124.
  5. p2+q2+r2=36−22=14p^2 + q^2 + r^2 = 36 - 22 = 14. Then 6(14−11)=186(14 - 11) = 18.
  6. x−3y−3=0x - 3y - 3 = 0, so with a=xa = x, b=−3yb = -3y, c=−3c = -3: a3+b3+c3−3abc=0a^3 + b^3 + c^3 - 3abc = 0. The expres­sion is exactly that: value 00.
  7. (a) (x+4)2(x+4)(x−4)=x+4x−4\displaystyle \dfrac{(x + 4)^2}{(x + 4)(x - 4)} = \dfrac{x + 4}{x - 4}. (b) 2(y−3)(y+3)(y+3)(y+4)=2(y−3)y+4\displaystyle \dfrac{2(y - 3)(y + 3)}{(y + 3)(y + 4)} = \dfrac{2(y - 3)}{y + 4}. (c) u+vu + v.
  8. n3−n=n(n−1)(n+1)n^3 - n = n(n - 1)(n + 1), three con­sec­u­tive inte­gers. One is a mul­ti­ple of 22 and one a mul­ti­ple of 33, so the prod­uct is a mul­ti­ple of 66.