Pic­tures that prove alge­bra

An iden­tity is an equa­tion that stays true what­ever val­ues you give its let­ters. In this les­son we take the three square iden­ti­ties one at a time. Each one can be seen as a pic­ture made of squares and rec­tan­gles. Then we con­firm it with the dis­trib­u­tive law, so that we know it holds for neg­a­tives and frac­tions too. Finally we put the iden­ti­ties to work on men­tal arith­metic, includ­ing a squar­ing trick that Śrīd­harācārya recorded in the eighth cen­tury.

Iden­tity ver­sus equa­tion

Com­pare two state­ments. x2−4=5x^2 - 4 = 5 is true only for x=3x = 3 and x=−3x = -3, so it is an equa­tion. But (x+1)2=x2+2x+1(x + 1)^2 = x^2 + 2x + 1 is true what­ever xx is, so it is an iden­tity. Think of an iden­tity as a rule for rewrit­ing an expres­sion, not as a puz­zle wait­ing for a solu­tion.

A pat­tern to explain

Take three con­sec­u­tive squares, say 16,25,3616, 25, 36. Add the outer two and sub­tract twice the mid­dle one: 16+36−50=216 + 36 - 50 = 2. Now try 49,64,8149, 64, 81: 49+81−128=249 + 81 - 128 = 2. It is always 22. Why should that be? Keep the ques­tion in mind, because by the end of this les­son you will be able to prove it.

(a+b)2(a + b)^2

Draw a square of side a+ba + b. Cut it with one hor­i­zon­tal and one ver­ti­cal line into four pieces: a square of side aa, a square of side bb, and two rec­tan­gles aa by bb. The area of the big square must equal the areas of the pieces added together.

A square of side a + b cut into four pieces: a square of area a squared, a square of area b squared, and two rectangles a by b, each of area ab.
The square on a + b is a squared plus 2ab plus b squared.

(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2

A pic­ture can only use pos­i­tive lengths, of course. To be sure the iden­tity also works for neg­a­tives and frac­tions, we use dis­trib­u­tiv­ity.

(a+b)(a+b)=a(a+b)+b(a+b)=a2+ab+ba+b2=a2+2ab+b2(a + b)(a + b) = a(a + b) + b(a + b) = a^2 + ab + ba + b^2 = a^2 + 2ab + b^2

Let us check with neg­a­tives, tak­ing a=−3a = -3 and b=−1b = -1. The left side is (−4)2=16(-4)^2 = 16, and the right side is 9+6+1=169 + 6 + 1 = 16 ✓.

A warn­ing that every teacher gives: (a+b)2≠a2+b2(a + b)^2 \neq a^2 + b^2 in gen­eral. The two dif­fer by 2ab2ab. The square of the sum is larger when ab>0ab > 0, smaller when ab<0ab < 0, and equal only when one of them is 00.

Exam­ple 1. (4x+3y)2=16x2+24xy+9y2(4x + 3y)^2 = 16x^2 + 24xy + 9y^2.

Exam­ple 2. (2p+12q)2=4p2+2pq+14q2\displaystyle \left(2p + \dfrac{1}{2}q\right)^2 = 4p^2 + 2pq + \dfrac{1}{4}q^2.

Exam­ple 3. 532=(50+3)2=2500+300+9=280953^2 = (50 + 3)^2 = 2500 + 300 + 9 = 2809.

(a−b)2(a - b)^2

You do not need a new idea here. Just replace bb by −b-b in the first iden­tity.

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

This one has a pic­ture too. Start with a square of side aa and mark off bb along two sides that meet. The cor­ner square of side a−ba - b is what is left after you remove two strips, one aa by bb and one bb by a−ba - b. In sym­bols, a2−ab−b(a−b)=a2−2ab+b2a^2 - ab - b(a - b) = a^2 - 2ab + b^2.

A square of side a with b marked off along two adjacent sides: a strip a by b and a strip b by (a - b) are removed, leaving the corner square of side a - b.
Remov­ing two strips from the square on a leaves the square on a - b.

Exam­ple 4. (5m−2n)2=25m2−20mn+4n2(5m - 2n)^2 = 25m^2 - 20mn + 4n^2.

Exam­ple 5. 482=(50−2)2=2500−200+4=230448^2 = (50 - 2)^2 = 2500 - 200 + 4 = 2304.

Exam­ple 6. 1972=(200−3)2=40000−1200+9=38809197^2 = (200 - 3)^2 = 40000 - 1200 + 9 = 38809.

The pat­tern explained. Now we can set­tle the puz­zle from the start. Call three con­sec­u­tive num­bers n−1n - 1, nn, n+1n + 1. The outer squares add up to (n−1)2+(n+1)2=2n2+2(n - 1)^2 + (n + 1)^2 = 2n^2 + 2. Sub­tract 2n22n^2, and you are left with 22, every time.

(a+b+c)2(a + b + c)^2

Here is a neat trick: treat two of the terms as one. Write b+c=db + c = d. Then (a+d)2=a2+2ad+d2=a2+2a(b+c)+(b+c)2(a + d)^2 = a^2 + 2ad + d^2 = a^2 + 2a(b + c) + (b + c)^2, which expands to

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

An easy way to remem­ber it: every square, plus twice every pair. The pic­ture is a square of side a+b+ca + b + c cut into three squares and six rec­tan­gles.

A square of side a + b + c cut into a 3 by 3 grid: three squares a squared, b squared and c squared on the diagonal, and six rectangles, two each of ab, bc and ac.
Every square, plus two of every pair.

Exam­ple 7. For (2x+y−3z)2(2x + y - 3z)^2, take a=2xa = 2x, b=yb = y, c=−3zc = -3z, keep­ing the minus sign with the last term. This gives 4x2+y2+9z2+4xy−6yz−12zx4x^2 + y^2 + 9z^2 + 4xy - 6yz - 12zx.

Exam­ple 8. 1232=(100+20+3)2=10000+400+9+4000+600+120=15129123^2 = (100 + 20 + 3)^2 = 10000 + 400 + 9 + 4000 + 600 + 120 = 15129.

a2−b2a^2 - b^2 and Śrīd­harācārya's trick

You met this one in Grade 8: (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2. Rearrange it and you get a2=(a+b)(a−b)+b2a^2 = (a + b)(a - b) + b^2. Śrīd­harācārya (c. 750 CE) used exactly this to square num­bers, by push­ing them to a con­ve­nient neigh­bour.

672=(67+3)(67−3)+32=70×64+9=4480+9=448967^2 = (67 + 3)(67 - 3) + 3^2 = 70 \times 64 + 9 = 4480 + 9 = 4489

952=(95+5)(95−5)+25=100×90+25=902595^2 = (95 + 5)(95 - 5) + 25 = 100 \times 90 + 25 = 9025

Num­bers end­ing in 55 come out espe­cially neatly: 452=50×40+25=202545^2 = 50 \times 40 + 25 = 2025, and 752=80×70+25=562575^2 = 80 \times 70 + 25 = 5625. So here is a quick rule you can use in your head: mul­ti­ply the tens digit by one more than itself, then write 2525 after it.

The same idea helps with prod­ucts that sit on either side of a round num­ber: 32×28=(30+2)(30−2)=900−4=89632 \times 28 = (30 + 2)(30 - 2) = 900 - 4 = 896.

Prac­tice

  1. Expand: (a) (3a+7b)2(3a + 7b)^2; (b) (x+1x)2\displaystyle \left(x + \dfrac{1}{x}\right)^2; (c) (6p−5q)2(6p - 5q)^2; (d) (a−2b+3c)2(a - 2b + 3c)^2.
  2. Eval­u­ate with an iden­tity: (a) 62262^2; (b) 89289^2; (c) 3042304^2; (d) 9982998^2.
  3. Use a2=(a+b)(a−b)+b2a^2 = (a + b)(a - b) + b^2 for 58258^2 and 85285^2.
  4. Eval­u­ate 47×5347 \times 53 and 106×94106 \times 94 with­out long mul­ti­pli­ca­tion.
  5. If x+y=9x + y = 9 and xy=14xy = 14, find x2+y2x^2 + y^2 and (x−y)2(x - y)^2.
  6. Is (a+b−c)2+(a−b+c)2=2a2+2(b−c)2(a + b - c)^2 + (a - b + c)^2 = 2a^2 + 2(b - c)^2 an iden­tity? Decide by expand­ing.
  7. Take any four con­sec­u­tive squares, such as 9,16,25,369, 16, 25, 36. Com­pute (first ++ last) −- (sec­ond ++ third). Repeat with another four and prove what you find.

Answers

Show answers
  1. (a) 9a2+42ab+49b29a^2 + 42ab + 49b^2. (b) x2+2+1x2\displaystyle x^2 + 2 + \dfrac{1}{x^2}. (c) 36p2−60pq+25q236p^2 - 60pq + 25q^2. (d) a2+4b2+9c2−4ab−12bc+6caa^2 + 4b^2 + 9c^2 - 4ab - 12bc + 6ca.
  2. (a) (60+2)2=3844(60 + 2)^2 = 3844. (b) (90−1)2=7921(90 - 1)^2 = 7921. (c) (300+4)2=92416(300 + 4)^2 = 92416. (d) (1000−2)2=996004(1000 - 2)^2 = 996004.
  3. 60×56+4=336460 \times 56 + 4 = 3364. 90×80+25=722590 \times 80 + 25 = 7225.
  4. (50−3)(50+3)=2491(50 - 3)(50 + 3) = 2491. (100+6)(100−6)=9964(100 + 6)(100 - 6) = 9964.
  5. x2+y2=(x+y)2−2xy=81−28=53x^2 + y^2 = (x + y)^2 - 2xy = 81 - 28 = 53. (x−y)2=53−28=25(x - y)^2 = 53 - 28 = 25.
  6. Left: with d=b−cd = b - c, (a+d)2+(a−d)2=2a2+2d2(a + d)^2 + (a - d)^2 = 2a^2 + 2d^2. Yes, an iden­tity.
  7. 9+36−41=49 + 36 - 41 = 4; 25+64−(36+49)=425 + 64 - (36 + 49) = 4. With (n−1)2,n2,(n+1)2,(n+2)2(n-1)^2, n^2, (n+1)^2, (n+2)^2: outer sum 2n2+2n+52n^2 + 2n + 5, inner sum 2n2+2n+12n^2 + 2n + 1, dif­fer­ence 44.