Expresswala Academy Mathematics Tuition

Exploring Algebraic Identities (Class 9)

Visualising Algebraic Identities with Squares, Class 9

Why three consecutive squares always give 2: learn the identities for the square of a sum, a difference and three terms, see them as area pictures, and use them to square numbers and factorise.

By 10 min read

Pick any three square num­bers that sit next to each other, such as 16, 25 and 36. Add the first and the last, then take away twice the mid­dle one: 16+36−2×25=216 + 36 - 2 \times 25 = 2. Try 49, 64 and 81: 49+81−128=249 + 81 - 128 = 2 again. A result that never changes is a sign that some alge­bra is hid­ing under­neath. In this les­son we find that alge­bra. We meet alge­braic iden­ti­ties, see them as pic­tures made of squares and rec­tan­gles, and use them to square num­bers quickly and to fac­torise expres­sions.

Start­ing with a pat­tern

Three con­sec­u­tive squares

What­ever three con­sec­u­tive squares you choose, "small­est plus largest minus twice the mid­dle" gives 2. With 100, 121 and 144 we get 244−242=2244 - 242 = 2. Check­ing many cases makes us con­fi­dent, but check­ing cases can never cover every whole num­ber. Later in this les­son we will prove the pat­tern once and for all.

Think and Reflect: four con­sec­u­tive squares

Take four con­sec­u­tive squares and com­bine them as first minus sec­ond minus third plus fourth. For 1, 4, 9, 16 this gives 1−4−9+16=41 - 4 - 9 + 16 = 4. For 25, 36, 49, 64 it gives 25−36−49+64=425 - 36 - 49 + 64 = 4. The answer is always 4. Once you know the iden­ti­ties below you can check why: if the num­bers are n,n+1,n+2,n+3n, n+1, n+2, n+3, then

n2−(n+1)2−(n+2)2+(n+3)2=n2−(n2+2n+1)−(n2+4n+4)+(n2+6n+9)=4.n^2 - (n+1)^2 - (n+2)^2 + (n+3)^2 = n^2 - (n^2 + 2n + 1) - (n^2 + 4n + 4) + (n^2 + 6n + 9) = 4.

See­ing an iden­tity as a pic­ture

The square of a sum

Put a seg­ment of length aa next to a seg­ment of length bb. Together they make a seg­ment of length a+ba + b. Build a square on this longer seg­ment and cut it along the join, both across and down. The big square breaks into four pieces:

  • a square of side aa, with area a2a^2;
  • a square of side bb, with area b2b^2;
  • two rec­tan­gles, each aa by bb, with area abab each.

The four pieces fill the big square exactly, so their areas add up to its area:

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

A square of side 8 split into a 5 by 5 square of area 25, two 5 by 3 rectangles of area 15 each and a 3 by 3 square of area 9, totalling 64
With a=5a = 5 and b=3b = 3 the pieces have areas 25, 15, 15 and 9, which add up to 82=648^2 = 64.

What if the num­bers are not lengths?

The pic­ture only works when aa and bb are pos­i­tive lengths. So test other num­bers. With a=−4a = -4 and b=−1b = -1: (a+b)2=(−5)2=25(a + b)^2 = (-5)^2 = 25, and a2+2ab+b2=16+8+1=25a^2 + 2ab + b^2 = 16 + 8 + 1 = 25. With frac­tions, a=12\displaystyle a = \frac{1}{2} and b=−13\displaystyle b = -\frac{1}{3}: (a+b)2=(16)2=136\displaystyle (a+b)^2 = \left(\frac{1}{6}\right)^2 = \frac{1}{36}, and 14−13+19=9−12+436=136\displaystyle \frac{1}{4} - \frac{1}{3} + \frac{1}{9} = \frac{9 - 12 + 4}{36} = \frac{1}{36}. It works again, but exam­ples are still not a proof.

The proof uses only the dis­trib­u­tive prop­erty, which holds for every num­ber:

(a+b)2=(a+b)(a+b)=a(a+b)+b(a+b)=a2+ab+ba+b2=a2+2ab+b2.\begin{aligned} (a+b)^2 &= (a+b)(a+b) = a(a+b) + b(a+b) \\ &= a^2 + ab + ba + b^2 = a^2 + 2ab + b^2. \end{aligned}

Since no step depended on the signs or sizes of aa and bb, the result holds for all num­bers.

Equa­tion or iden­tity?

An iden­tity is an equal­ity that is true for every value of its vari­ables. An ordi­nary equa­tion may be true only for some val­ues. For exam­ple, x2+3=19x^2 + 3 = 19 holds only when x=4x = 4 or x=−4x = -4, so it is just an equa­tion. But (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2 holds what­ever xx and yy are, so it is an iden­tity.

Think and Reflect: which is big­ger?

Stu­dents often write (a+b)2=a2+b2(a+b)^2 = a^2 + b^2. That is wrong, and the iden­tity tells us exactly by how much:

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

So every­thing depends on the sign of abab.

  • (a+b)2<a2+b2(a+b)^2 \lt a^2 + b^2 exactly when ab<0ab \lt 0, that is, when aa and bb have oppo­site signs (for exam­ple a=3a = 3, b=−1b = -1: 4<104 \lt 10).
  • (a+b)2>a2+b2(a+b)^2 \gt a^2 + b^2 exactly when ab>0ab \gt 0, that is, when aa and bb are both pos­i­tive or both neg­a­tive.
  • The two are equal exactly when ab=0ab = 0, that is, when a=0a = 0 or b=0b = 0.

Using the iden­tity

The let­ters aa and bb can stand for whole terms. In (4m+3n)2(4m + 3n)^2 take a=4ma = 4m and b=3nb = 3n. The iden­tity also turns hard squares into easy sums, because squares of round num­bers are sim­ple.

Worked exam­ple 1. Expand (4m+3n)2(4m + 3n)^2 and find 1042104^2.

(4m+3n)2=(4m)2+2(4m)(3n)+(3n)2=16m2+24mn+9n2.(4m + 3n)^2 = (4m)^2 + 2(4m)(3n) + (3n)^2 = 16m^2 + 24mn + 9n^2.

1042=(100+4)2=10000+800+16=10816.104^2 = (100 + 4)^2 = 10000 + 800 + 16 = 10816.

Fac­toris­ing with the iden­tity

Read­ing the iden­tity back­wards

If an expres­sion has the shape a2+2ab+b2a^2 + 2ab + b^2, it equals (a+b)2(a+b)^2, so a+ba + b is a fac­tor. To spot the shape, check three things: the first term is a per­fect square, the last term is a per­fect square, and the mid­dle term is twice the prod­uct of their square roots.

Worked exam­ple 2. Fac­torise x2+10x+25x^2 + 10x + 25 and 16y2+8y+116y^2 + 8y + 1.

Here x2=(x)2x^2 = (x)^2, 25=5225 = 5^2 and 10x=2(x)(5)10x = 2(x)(5), so x2+10x+25=(x+5)2x^2 + 10x + 25 = (x + 5)^2. Sim­i­larly 16y2=(4y)216y^2 = (4y)^2, 1=121 = 1^2 and 8y=2(4y)(1)8y = 2(4y)(1), so 16y2+8y+1=(4y+1)216y^2 + 8y + 1 = (4y + 1)^2.

Tak­ing out a com­mon fac­tor first

Some­times the first term is not a per­fect square, but it becomes one after a com­mon num­ber is taken out.

Worked exam­ple 3. Fac­torise 12x2+60xy+75y212x^2 + 60xy + 75y^2.

Nei­ther 12 nor 75 is a per­fect square, but all three coef­fi­cients are mul­ti­ples of 3:

12x2+60xy+75y2=3(4x2+20xy+25y2)=3[(2x)2+2(2x)(5y)+(5y)2]=3(2x+5y)2.\begin{aligned} 12x^2 + 60xy + 75y^2 &= 3(4x^2 + 20xy + 25y^2) \\ &= 3\left[(2x)^2 + 2(2x)(5y) + (5y)^2\right] = 3(2x + 5y)^2. \end{aligned}

The square of a dif­fer­ence

Replace bb by −b-b in the first iden­tity. Since (−b)2=b2(-b)^2 = b^2 and 2a(−b)=−2ab2a(-b) = -2ab, we get a sec­ond iden­tity:

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

It can also be seen as a pic­ture. Start with a square of side aa and mark a strip of width bb along one side and along the bot­tom. The cor­ner square of side a−ba - b is what remains after remov­ing a strip of area abab (the full height aa, width bb) and a strip of area b(a−b)b(a - b) (the rest of the bot­tom). So

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

A 7 by 7 square with a 2 by 7 strip of area 14 and a 5 by 2 strip of area 10 removed, leaving a 5 by 5 square of area 25
With a=7a = 7 and b=2b = 2: remov­ing strips of area 14 and 10 from 49 leaves (7−2)2=25(7-2)^2 = 25.

Worked exam­ple 4. Find 98298^2 and fac­torise 49a2−42ab+9b249a^2 - 42ab + 9b^2.

982=(100−2)2=10000−400+4=9604.98^2 = (100 - 2)^2 = 10000 - 400 + 4 = 9604.

For the expres­sion, 49a2=(7a)249a^2 = (7a)^2, 9b2=(3b)29b^2 = (3b)^2 and 42ab=2(7a)(3b)42ab = 2(7a)(3b), with a minus sign in front. So 49a2−42ab+9b2=(7a−3b)249a^2 - 42ab + 9b^2 = (7a - 3b)^2.

Prov­ing the pat­tern of con­sec­u­tive squares

Now we can explain the open­ing puz­zle. Three con­sec­u­tive whole num­bers can be writ­ten n−1n - 1, nn, n+1n + 1. Then

(n−1)2+(n+1)2−2n2=(n2−2n+1)+(n2+2n+1)−2n2=2.(n-1)^2 + (n+1)^2 - 2n^2 = (n^2 - 2n + 1) + (n^2 + 2n + 1) - 2n^2 = 2.

The terms −2n-2n and +2n+2n can­cel, and so do the n2n^2 terms, leav­ing 2 for every nn. That is a proof, not just a col­lec­tion of exam­ples.

More iden­ti­ties

The square of three terms

To square a+b+ca + b + c, treat b+cb + c as a sin­gle num­ber dd. Then

(a+d)2=a2+2ad+d2=a2+2a(b+c)+(b+c)2=a2+2ab+2ac+b2+2bc+c2.\begin{aligned} (a + d)^2 &= a^2 + 2ad + d^2 = a^2 + 2a(b + c) + (b + c)^2 \\ &= a^2 + 2ab + 2ac + b^2 + 2bc + c^2. \end{aligned}

Writ­ten neatly:

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

The pic­ture is a square of side a+b+ca + b + c cut into a 3 by 3 grid. This answers the Think and Reflect task of labelling the pieces: the three squares on the diag­o­nal are a2a^2, b2b^2 and c2c^2, and the six other rec­tan­gles come in pairs, two of area abab, two of area bcbc and two of area caca.

A square of side a plus b plus c, drawn with a = 5, b = 3, c = 2, cut into a 3 by 3 grid of pieces labelled a squared, b squared, c squared and two each of ab, bc and ac
The square on a+b+ca + b + c: three squares on the diag­o­nal and three match­ing pairs of rec­tan­gles.

Worked exam­ple 5. Expand (2x−y+3z)2(2x - y + 3z)^2 and find 2132213^2.

Take a=2xa = 2x, b=−yb = -y, c=3zc = 3z. Watch the signs in the prod­ucts:

(2x−y+3z)2=4x2+y2+9z2+2(2x)(−y)+2(−y)(3z)+2(3z)(2x)=4x2+y2+9z2−4xy−6yz+12xz.\begin{aligned} (2x - y + 3z)^2 &= 4x^2 + y^2 + 9z^2 + 2(2x)(-y) + 2(-y)(3z) + 2(3z)(2x) \\ &= 4x^2 + y^2 + 9z^2 - 4xy - 6yz + 12xz. \end{aligned}

For the num­ber, split 213=200+10+3213 = 200 + 10 + 3:

2132=40000+100+9+4000+60+1200=45369.213^2 = 40000 + 100 + 9 + 4000 + 60 + 1200 = 45369.

The dif­fer­ence of two squares, rearranged

From Grade 8 we know a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b). Mov­ing b2b^2 across gives a form that is handy for squar­ing:

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

As a pic­ture: a square of side aa can be cut so that one piece of size bb by (a−b)(a - b) moves to the side, mak­ing an (a+b)(a + b) by (a−b)(a - b) rec­tan­gle, with a small bb by bb square left over. The book notes that Śhrīd­harāchārya pro­posed this iden­tity in 750 CE as a quick way to square num­bers. The trick is to choose bb so that a+ba + b and a−ba - b are easy to mul­ti­ply.

Worked exam­ple 6. Find 45245^2 and 96296^2.

452=(45+5)(45−5)+52=50×40+25=2025.45^2 = (45 + 5)(45 - 5) + 5^2 = 50 \times 40 + 25 = 2025.

962=(96+4)(96−4)+42=100×92+16=9216.96^2 = (96 + 4)(96 - 4) + 4^2 = 100 \times 92 + 16 = 9216.

Think and Reflect: squares end­ing in 5

Using b=5b = 5: 352=40×30+25=122535^2 = 40 \times 30 + 25 = 1225, 652=70×60+25=422565^2 = 70 \times 60 + 25 = 4225, 852=90×80+25=722585^2 = 90 \times 80 + 25 = 7225 and 1052=110×100+25=11025105^2 = 110 \times 100 + 25 = 11025. The pat­tern: every answer ends in 25, and the dig­its before 25 are the tens part times the next num­ber. For 8585, 8×9=728 \times 9 = 72, giv­ing 7225. For 105105, 10×11=11010 \times 11 = 110, giv­ing 11025.

Think and Reflect: two rows of squares

The book's fig­ure shows, in one row, squares of sides a+b+ca + b + c, a+b−ca + b - c, a−b+ca - b + c and a−b−ca - b - c, and in the other row squares of sides 2a2a, 2b2b and 2c2c. The iden­tity they rep­re­sent is

(a+b+c)2+(a+b−c)2+(a−b+c)2+(a−b−c)2=(2a)2+(2b)2+(2c)2.(a+b+c)^2 + (a+b-c)^2 + (a-b+c)^2 + (a-b-c)^2 = (2a)^2 + (2b)^2 + (2c)^2.

You can check it with the three-term iden­tity: each left-hand square con­tains a2+b2+c2a^2 + b^2 + c^2, giv­ing 4(a2+b2+c2)4(a^2 + b^2 + c^2) in total, and every cross term such as 2ab2ab appears twice with a plus sign and twice with a minus sign, so they all can­cel.

Com­mon mis­takes

  • Writ­ing (a+b)2=a2+b2(a + b)^2 = a^2 + b^2. The mid­dle term 2ab2ab is miss­ing.
  • Squar­ing only the let­ter: (3x)2(3x)^2 is 9x29x^2, not 3x23x^2.
  • Los­ing a sign in the three-term iden­tity. With (p−q+r)2(p - q + r)^2 the terms −2pq-2pq and −2qr-2qr are neg­a­tive, but +2pr+2pr is pos­i­tive.
  • Call­ing 4x2+6x+94x^2 + 6x + 9 a per­fect square. Twice 2x×32x \times 3 is 12x12x, not 6x6x, so it is not.
  • For­get­ting the com­mon fac­tor out­side the bracket, such as writ­ing (2x+5y)2(2x + 5y)^2 instead of 3(2x+5y)23(2x + 5y)^2.
  • Believ­ing that a few numer­i­cal checks prove an iden­tity. A proof needs alge­bra that works for all val­ues.

Try these

  1. Expand (6p+12q)2\displaystyle (6p + \tfrac{1}{2}q)^2. Answer: 36p2+6pq+14q2\displaystyle 36p^2 + 6pq + \tfrac{1}{4}q^2.
  2. Find 59259^2 using (a−b)2(a - b)^2. Answer: 3481.
  3. Fac­torise 50m2−40mn+8n250m^2 - 40mn + 8n^2. Answer: 2(5m−2n)22(5m - 2n)^2.
  4. Expand (x+2y−z)2(x + 2y - z)^2. Answer: x2+4y2+z2+4xy−4yz−2xzx^2 + 4y^2 + z^2 + 4xy - 4yz - 2xz.
  5. Use a2=(a+b)(a−b)+b2a^2 = (a+b)(a-b) + b^2 to find 75275^2. Answer: 5625.
  6. Is x2−6x+8=0x^2 - 6x + 8 = 0 an iden­tity? Answer: No. It is true only for x=2x = 2 and x=4x = 4.

Key terms

Alge­braic iden­tity
An equal­ity between two alge­braic expres­sions that is true for every value of the vari­ables.
Equa­tion
An equal­ity that may be true only for par­tic­u­lar val­ues of the vari­able.
Dis­trib­u­tive prop­erty
The rule a(b+c)=ab+aca(b + c) = ab + ac, used to mul­ti­ply out brack­ets and to prove iden­ti­ties.
Per­fect square expres­sion
An expres­sion that equals the square of another expres­sion, such as x2+10x+25=(x+5)2x^2 + 10x + 25 = (x + 5)^2.
Fac­tor
An expres­sion that divides another exactly; x+5x + 5 is a fac­tor of x2+10x+25x^2 + 10x + 25.
Geo­met­ric model
A draw­ing of squares and rec­tan­gles whose areas show that two expres­sions are equal.
Dif­fer­ence of squares
The iden­tity a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b).

Com­mon ques­tions

Why is a pic­ture of squares not enough to prove the iden­tity?

The pic­ture uses lengths, and lengths are pos­i­tive. The iden­tity is meant for all num­bers, includ­ing neg­a­tives and frac­tions, so we prove it with the dis­trib­u­tive prop­erty, which holds for every num­ber.

How do I know whether to use (a+b)2(a+b)^2 or (a−b)2(a-b)^2 to square a num­ber?

Choose the near­est round num­ber. For 103 use (100+3)2(100 + 3)^2; for 197 use (200−3)2(200 - 3)^2. Both iden­ti­ties give the right answer, but the one with the small bb is quick­est.

How can I tell if a three-term expres­sion is a per­fect square?

Check that the first and last terms are per­fect squares, and that the mid­dle term equals twice the prod­uct of their square roots. If the num­bers share a com­mon fac­tor, take it out first.

Can aa and bb be expres­sions rather than sin­gle let­ters?

Yes. In (5x−2y)2(5x - 2y)^2 we take a=5xa = 5x and b=2yb = 2y. Put brack­ets around each term before squar­ing so that the coef­fi­cient is squared too.

Is (a+b+c)2(a+b+c)^2 just a2+b2+c2a^2 + b^2 + c^2?

No. There are six extra pieces, 2ab+2bc+2ca2ab + 2bc + 2ca, which you can see as the six rec­tan­gles in the grid pic­ture.

Ref­er­ences

  1. National Coun­cil of Edu­ca­tional Research and Train­ing. Ganita Man­jari: Text­book of Math­e­mat­ics, Grade 9 (Part I). NCERT, New Delhi.
  2. Gelfand, I. M. and Shen, A. Alge­bra. Birkhäuser.
  3. Sharma, R. D. Math­e­mat­ics for Class 9. Dhan­pat Rai Pub­li­ca­tions.