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.
Pick any three square numbers that sit next to each other, such as 16, 25 and 36. Add the first and the last, then take away twice the middle one: 16+36−2×25=2. Try 49, 64 and 81: 49+81−128=2 again. A result that never changes is a sign that some algebra is hiding underneath. In this lesson we find that algebra. We meet algebraic identities, see them as pictures made of squares and rectangles, and use them to square numbers quickly and to factorise expressions.
Starting with a pattern
Three consecutive squares
Whatever three consecutive squares you choose, "smallest plus largest minus twice the middle" gives 2. With 100, 121 and 144 we get 244−242=2. Checking many cases makes us confident, but checking cases can never cover every whole number. Later in this lesson we will prove the pattern once and for all.
Think and Reflect: four consecutive squares
Take four consecutive squares and combine them as first minus second minus third plus fourth. For 1, 4, 9, 16 this gives 1−4−9+16=4. For 25, 36, 49, 64 it gives 25−36−49+64=4. The answer is always 4. Once you know the identities below you can check why: if the numbers are n,n+1,n+2,n+3, then
Put a segment of length a next to a segment of length b. Together they make a segment of length a+b. Build a square on this longer segment and cut it along the join, both across and down. The big square breaks into four pieces:
a square of side a, with area a2;
a square of side b, with area b2;
two rectangles, each a by b, with area ab each.
The four pieces fill the big square exactly, so their areas add up to its area:
(a+b)2=a2+2ab+b2.
With a=5 and b=3 the pieces have areas 25, 15, 15 and 9, which add up to 82=64.
What if the numbers are not lengths?
The picture only works when a and b are positive lengths. So test other numbers. With a=−4 and b=−1: (a+b)2=(−5)2=25, and a2+2ab+b2=16+8+1=25. With fractions, a=21 and b=−31: (a+b)2=(61)2=361, and 41−31+91=369−12+4=361. It works again, but examples are still not a proof.
The proof uses only the distributive property, which holds for every number:
Since no step depended on the signs or sizes of a and b, the result holds for all numbers.
Equation or identity?
An identity is an equality that is true for every value of its variables. An ordinary equation may be true only for some values. For example, x2+3=19 holds only when x=4 or x=−4, so it is just an equation. But (x+y)2=x2+2xy+y2 holds whatever x and y are, so it is an identity.
Think and Reflect: which is bigger?
Students often write (a+b)2=a2+b2. That is wrong, and the identity tells us exactly by how much:
(a+b)2−(a2+b2)=2ab.
So everything depends on the sign of ab.
(a+b)2<a2+b2 exactly when ab<0, that is, when a and b have opposite signs (for example a=3, b=−1: 4<10).
(a+b)2>a2+b2 exactly when ab>0, that is, when a and b are both positive or both negative.
The two are equal exactly when ab=0, that is, when a=0 or b=0.
Using the identity
The letters a and b can stand for whole terms. In (4m+3n)2 take a=4m and b=3n. The identity also turns hard squares into easy sums, because squares of round numbers are simple.
Worked example 1. Expand (4m+3n)2 and find 1042.
(4m+3n)2=(4m)2+2(4m)(3n)+(3n)2=16m2+24mn+9n2.
1042=(100+4)2=10000+800+16=10816.
Factorising with the identity
Reading the identity backwards
If an expression has the shape a2+2ab+b2, it equals (a+b)2, so a+b is a factor. To spot the shape, check three things: the first term is a perfect square, the last term is a perfect square, and the middle term is twice the product of their square roots.
Worked example 2. Factorise x2+10x+25 and 16y2+8y+1.
Here x2=(x)2, 25=52 and 10x=2(x)(5), so x2+10x+25=(x+5)2. Similarly 16y2=(4y)2, 1=12 and 8y=2(4y)(1), so 16y2+8y+1=(4y+1)2.
Taking out a common factor first
Sometimes the first term is not a perfect square, but it becomes one after a common number is taken out.
Worked example 3. Factorise 12x2+60xy+75y2.
Neither 12 nor 75 is a perfect square, but all three coefficients are multiples of 3:
Replace b by −b in the first identity. Since (−b)2=b2 and 2a(−b)=−2ab, we get a second identity:
(a−b)2=a2−2ab+b2.
It can also be seen as a picture. Start with a square of side a and mark a strip of width b along one side and along the bottom. The corner square of side a−b is what remains after removing a strip of area ab (the full height a, width b) and a strip of area b(a−b) (the rest of the bottom). So
(a−b)2=a2−ab−b(a−b)=a2−ab−ab+b2=a2−2ab+b2.
With a=7 and b=2: removing strips of area 14 and 10 from 49 leaves (7−2)2=25.
Worked example 4. Find 982 and factorise 49a2−42ab+9b2.
982=(100−2)2=10000−400+4=9604.
For the expression, 49a2=(7a)2, 9b2=(3b)2 and 42ab=2(7a)(3b), with a minus sign in front. So 49a2−42ab+9b2=(7a−3b)2.
Proving the pattern of consecutive squares
Now we can explain the opening puzzle. Three consecutive whole numbers can be written n−1, n, n+1. Then
(n−1)2+(n+1)2−2n2=(n2−2n+1)+(n2+2n+1)−2n2=2.
The terms −2n and +2n cancel, and so do the n2 terms, leaving 2 for every n. That is a proof, not just a collection of examples.
More identities
The square of three terms
To square a+b+c, treat b+c as a single number d. Then
The picture is a square of side a+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 diagonal are a2, b2 and c2, and the six other rectangles come in pairs, two of area ab, two of area bc and two of area ca.
The square on a+b+c: three squares on the diagonal and three matching pairs of rectangles.
Worked example 5. Expand (2x−y+3z)2 and find 2132.
Take a=2x, b=−y, c=3z. Watch the signs in the products:
From Grade 8 we know a2−b2=(a+b)(a−b). Moving b2 across gives a form that is handy for squaring:
a2=(a+b)(a−b)+b2.
As a picture: a square of side a can be cut so that one piece of size b by (a−b) moves to the side, making an (a+b) by (a−b) rectangle, with a small b by b square left over. The book notes that Śhrīdharāchārya proposed this identity in 750 CE as a quick way to square numbers. The trick is to choose b so that a+b and a−b are easy to multiply.
Worked example 6. Find 452 and 962.
452=(45+5)(45−5)+52=50×40+25=2025.
962=(96+4)(96−4)+42=100×92+16=9216.
Think and Reflect: squares ending in 5
Using b=5: 352=40×30+25=1225, 652=70×60+25=4225, 852=90×80+25=7225 and 1052=110×100+25=11025. The pattern: every answer ends in 25, and the digits before 25 are the tens part times the next number. For 85, 8×9=72, giving 7225. For 105, 10×11=110, giving 11025.
Think and Reflect: two rows of squares
The book's figure shows, in one row, squares of sides a+b+c, a+b−c, a−b+c and a−b−c, and in the other row squares of sides 2a, 2b and 2c. The identity they represent is
You can check it with the three-term identity: each left-hand square contains a2+b2+c2, giving 4(a2+b2+c2) in total, and every cross term such as 2ab appears twice with a plus sign and twice with a minus sign, so they all cancel.
Common mistakes
Writing (a+b)2=a2+b2. The middle term 2ab is missing.
Squaring only the letter: (3x)2 is 9x2, not 3x2.
Losing a sign in the three-term identity. With (p−q+r)2 the terms −2pq and −2qr are negative, but +2pr is positive.
Calling 4x2+6x+9 a perfect square. Twice 2x×3 is 12x, not 6x, so it is not.
Forgetting the common factor outside the bracket, such as writing (2x+5y)2 instead of 3(2x+5y)2.
Believing that a few numerical checks prove an identity. A proof needs algebra that works for all values.
Try these
Expand (6p+21q)2. Answer:36p2+6pq+41q2.
Find 592 using (a−b)2. Answer: 3481.
Factorise 50m2−40mn+8n2. Answer:2(5m−2n)2.
Expand (x+2y−z)2. Answer:x2+4y2+z2+4xy−4yz−2xz.
Use a2=(a+b)(a−b)+b2 to find 752. Answer: 5625.
Is x2−6x+8=0 an identity? Answer: No. It is true only for x=2 and x=4.
Key terms
Algebraic identity
An equality between two algebraic expressions that is true for every value of the variables.
Equation
An equality that may be true only for particular values of the variable.
Distributive property
The rule a(b+c)=ab+ac, used to multiply out brackets and to prove identities.
Perfect square expression
An expression that equals the square of another expression, such as x2+10x+25=(x+5)2.
Factor
An expression that divides another exactly; x+5 is a factor of x2+10x+25.
Geometric model
A drawing of squares and rectangles whose areas show that two expressions are equal.
Difference of squares
The identity a2−b2=(a+b)(a−b).
Common questions
Why is a picture of squares not enough to prove the identity?
The picture uses lengths, and lengths are positive. The identity is meant for all numbers, including negatives and fractions, so we prove it with the distributive property, which holds for every number.
How do I know whether to use (a+b)2 or (a−b)2 to square a number?
Choose the nearest round number. For 103 use (100+3)2; for 197 use (200−3)2. Both identities give the right answer, but the one with the small b is quickest.
How can I tell if a three-term expression is a perfect square?
Check that the first and last terms are perfect squares, and that the middle term equals twice the product of their square roots. If the numbers share a common factor, take it out first.
Can a and b be expressions rather than single letters?
Yes. In (5x−2y)2 we take a=5x and b=2y. Put brackets around each term before squaring so that the coefficient is squared too.
Is (a+b+c)2 just a2+b2+c2?
No. There are six extra pieces, 2ab+2bc+2ca, which you can see as the six rectangles in the grid picture.
References
National Council of Educational Research and Training. Ganita Manjari: Textbook of Mathematics, Grade 9 (Part I). NCERT, New Delhi.
Gelfand, I. M. and Shen, A. Algebra. Birkhäuser.
Sharma, R. D. Mathematics for Class 9. Dhanpat Rai Publications.