Three products worth knowing by heart

Some products turn up so often that it pays to know them by heart. There are three of them: a sum squared, a difference squared, and a sum times a difference. Each one is just the distributive property applied to a special case, each one has a picture to go with it, and each one lets you do arithmetic like squaring 6565 or 9999, or multiplying 47×5347 \times 53, in your head. We will also use them to explain two number patterns, and to hunt for mistakes in a page of worked algebra.

The square of a sum

Picture a square of side 60+560 + 5. It splits into a 60×6060 \times 60 square, a 5×55 \times 5 square, and two 60×560 \times 5 rectangles:

A square of side 65 drawn to scale as 60 + 5 on each side, cut into a 60 by 60 square of 3600, two 60 by 5 strips of 300 each and a 5 by 5 corner of 25.
Sixty-five squared is 3600 + 300 + 300 + 25

652=602+2×60×5+52=3600+600+25=422565^2 = 60^2 + 2 \times 60 \times 5 + 5^2 = 3600 + 600 + 25 = 4225

Using distributivity, (a+b)(a+b)=a2+ab+ba+b2(a + b)(a + b) = a^2 + ab + ba + b^2, so

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

A very common slip is to write (a+b)2(a + b)^2 as a2+b2a^2 + b^2. They differ by 2ab2ab, so the true square is larger when aa and bb have the same sign and smaller when their signs differ.

Example 1. 1032=(100+3)2=10000+600+9=10609103^2 = (100 + 3)^2 = 10000 + 600 + 9 = 10609.

Example 2. (m+4)2=m2+8m+16(m + 4)^2 = m^2 + 8m + 16; (7+q)2=49+14q+q2(7 + q)^2 = 49 + 14q + q^2; (4x+3)2=16x2+24x+9(4x + 3)^2 = 16x^2 + 24x + 9; (2j+5k)2=4j2+20jk+25k2(2j + 5k)^2 = 4j^2 + 20jk + 25k^2.

If you ever forget the identity, don't panic. Just multiply out using distributivity. The identity is only a shortcut.

The square of a difference

Now draw a square of side 6060, and inside it, in one corner, a square of side 55=60−555 = 60 - 5. If you remove two 60×560 \times 5 strips from the big square, you take away the small 5×55 \times 5 corner twice, so you have to add it back once:

A 60 by 60 square with a 55 by 55 square in one corner; two 60 by 5 strips run along the other two sides and overlap in a 5 by 5 corner that both strips contain.
Removing two strips from 60 squared takes the corner twice

552=602−2×60×5+52=3600−600+25=302555^2 = 60^2 - 2 \times 60 \times 5 + 5^2 = 3600 - 600 + 25 = 3025

Or, more simply, put −b-b in place of bb in Identity 1A:

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

Example 3. 972=(100−3)2=10000−600+9=940997^2 = (100 - 3)^2 = 10000 - 600 + 9 = 9409. 482=(50−2)2=230448^2 = (50 - 2)^2 = 2304.

Example 4. (b−8)2=b2−16b+64(b - 8)^2 = b^2 - 16b + 64; (−3a+2)2=9a2−12a+4(-3a + 2)^2 = 9a^2 - 12a + 4; (5y−23z)2=25y2−203yz+49z2\displaystyle \left(5y - \dfrac{2}{3}z\right)^2 = 25y^2 - \dfrac{20}{3}yz + \dfrac{4}{9}z^2.

One small thing to notice: (a−b)2=(b−a)2(a - b)^2 = (b - a)^2, since both come to a2−2ab+b2a^2 - 2ab + b^2.

Sum times difference

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

By distributivity we get a2−ab+ba−b2a^2 - ab + ba - b^2, and the two middle terms cancel. For the picture, cut a b×bb \times b corner out of an a×aa \times a square. Slice the L-shape that is left into two rectangles and lay them end to end. You get an (a+b)×(a−b)(a + b) \times (a - b) rectangle.

An a by a square with a b by b corner removed; the remaining L is cut into an a by (a − b) piece and a b by (a − b) piece, laid end to end as an (a + b) by (a − b) rectangle.
The L-shape left from a² minus b² makes an (a + b) by (a − b) rectangle

Example 5. 47×53=(50−3)(50+3)=2500−9=249147 \times 53 = (50 - 3)(50 + 3) = 2500 - 9 = 2491. And 196×204=40000−16=39984196 \times 204 = 40000 - 16 = 39984.

Śrīdharācārya's way of squaring. Rearrange the identity to a2=(a+b)(a−b)+b2a^2 = (a + b)(a - b) + b^2, and choose bb so that a+ba + b or a−ba - b is a round number:

622=64×60+4=3844,2982=300×296+4=8880462^2 = 64 \times 60 + 4 = 3844, \qquad 298^2 = 300 \times 296 + 4 = 88804

Example 6. Write 8484 as a difference of two squares. We want 84=(a+b)(a−b)84 = (a + b)(a - b). Take a+b=42a + b = 42 and a−b=2a - b = 2, so a=22a = 22 and b=20b = 20: 222−202=484−400=8422^2 - 20^2 = 484 - 400 = 84 ✓. Using 14×614 \times 6 instead gives 102−4210^2 - 4^2.

Two patterns explained

Pattern 1. 2(32+22)=26=52+122(3^2 + 2^2) = 26 = 5^2 + 1^2, and 2(72+42)=130=112+322(7^2 + 4^2) = 130 = 11^2 + 3^2. So twice a sum of two squares is again a sum of two squares, namely the squares of the sum and the difference. Why? Add 1A and 1B:

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

Pattern 2. 8×8−3×3=11×58 \times 8 - 3 \times 3 = 11 \times 5, and 12×12−7×7=19×512 \times 12 - 7 \times 7 = 19 \times 5. This is simply Identity 1C read from right to left.

Because the identities hold for all numbers, both patterns work for negatives and fractions too: 2((12)2+(13)2)=(56)2+(16)2\displaystyle 2\left(\left(\tfrac{1}{2}\right)^2 + \left(\tfrac{1}{3}\right)^2\right) = \left(\tfrac{5}{6}\right)^2 + \left(\tfrac{1}{6}\right)^2. Check: 2×1336=2636\displaystyle 2 \times \tfrac{13}{36} = \tfrac{26}{36} and 2536+136=2636\displaystyle \tfrac{25}{36} + \tfrac{1}{36} = \tfrac{26}{36} ✓.

Mind the mistake

Here is a page of worked algebra, and most lines on it contain an error. Find it, say what went wrong, and put it right.

  1. −2p(−4p+3q)=−2p−4p+3q=−6p+3q-2p(-4p + 3q) = -2p - 4p + 3q = -6p + 3q. The −2p-2p was added to each term instead of multiplying it. Correct: 8p2−6pq8p^2 - 6pq.
  2. 3(x−2)+2(x+5)=3x−2+2x+5=5x+33(x - 2) + 2(x + 5) = 3x - 2 + 2x + 5 = 5x + 3. The 33 never reached the −2-2. Correct: 3x−6+2x+10=5x+43x - 6 + 2x + 10 = 5x + 4.
  3. (4m+3n)2=16m2+9n2(4m + 3n)^2 = 16m^2 + 9n^2. The middle term is missing. Correct: 16m2+24mn+9n216m^2 + 24mn + 9n^2.
  4. (−r+5)2=r2−10r+25(-r + 5)^2 = r^2 - 10r + 25. This one is right: (−r+5)2=(5−r)2(-r + 5)^2 = (5 - r)^2.
  5. 2a(3b−4c)=6ab−8ac=−2abc2a(3b - 4c) = 6ab - 8ac = -2abc. Unlike terms were combined. Correct: 6ab−8ac6ab - 8ac, and stop there.
  6. 3w2+4w=7w23w^2 + 4w = 7w^2. w2w^2 and ww are not like terms. It cannot be simplified.
  7. 12(8s−6)+3=4s−6+3=4s−3\displaystyle \tfrac{1}{2}(8s - 6) + 3 = 4s - 6 + 3 = 4s - 3. The 12\displaystyle \tfrac{1}{2} never reached the −6-6. Correct: 4s−3+3=4s4s - 3 + 3 = 4s.
  8. (a+3)(b+2)=ab+6(a + 3)(b + 2) = ab + 6. Only two of the four products were taken. Correct: ab+2a+3b+6ab + 2a + 3b + 6.
  9. a3+2a3+4a2b+4ab2=3a3+8a2b2a^3 + 2a^3 + 4a^2b + 4ab^2 = 3a^3 + 8a^2b^2. a2ba^2b and ab2ab^2 are unlike terms. Correct: 3a3+4a2b+4ab23a^3 + 4a^2b + 4ab^2.
  10. ab2+a2b+a2b2=ab(b+a+ab)ab^2 + a^2b + a^2b^2 = ab(b + a + ab). Right.

Practice

  1. Expand: (a) (x+9)2(x + 9)^2; (b) (3p−4)2(3p - 4)^2; (c) (2u+7v)2(2u + 7v)^2; (d) (−5+t)2(-5 + t)^2; (e) (6a−b)(6a+b)(6a - b)(6a + b); (f) (k+14)2\displaystyle \left(k + \dfrac{1}{4}\right)^2.
  2. Compute with an identity, naming it: 52252^2; 89289^2; 3052305^2; 9972997^2; 38×4238 \times 42; 195×205195 \times 205.
  3. Use a2=(a+b)(a−b)+b2a^2 = (a + b)(a - b) + b^2 for 73273^2, 4992499^2 and 100421004^2.
  4. Express 6060 and 225225 each as a difference of two squares.
  5. Write 2(92+52)2(9^2 + 5^2) as a sum of two squares.
  6. Check whether (a+b)2−(a−b)2=4ab(a + b)^2 - (a - b)^2 = 4ab is an identity. Then use it to compute 372−33237^2 - 33^2, that is, to find 4×35×24 \times 35 \times 2 from 37237^2 and 33233^2.
  7. Each of the following contains an error; correct it. (a) 5(2y−3)=10y−35(2y - 3) = 10y - 3. (b) (x−6)2=x2−36(x - 6)^2 = x^2 - 36. (c) (p+q)(p−q)=p2+q2(p + q)(p - q) = p^2 + q^2. (d) 4a2+3a2=7a44a^2 + 3a^2 = 7a^4. (e) −(m+n)2=−m2+n2-(m + n)^2 = -m^2 + n^2.
  8. Which is larger, (a−b)2(a - b)^2 or (b−a)2(b - a)^2? And which of (a+b)2(a + b)^2 and a2+b2a^2 + b^2 when a=−3a = -3, b=5b = 5?

Answers

Show answers
  1. (a) x2+18x+81x^2 + 18x + 81. (b) 9p2−24p+169p^2 - 24p + 16. (c) 4u2+28uv+49v24u^2 + 28uv + 49v^2. (d) t2−10t+25t^2 - 10t + 25. (e) 36a2−b236a^2 - b^2. (f) k2+k2+116\displaystyle k^2 + \dfrac{k}{2} + \dfrac{1}{16}.
  2. (50+2)2=2704(50 + 2)^2 = 2704 (1A); (90−1)2=7921(90 - 1)^2 = 7921 (1B); (300+5)2=93025(300 + 5)^2 = 93025 (1A); (1000−3)2=994009(1000 - 3)^2 = 994009 (1B); (40−2)(40+2)=1596(40 - 2)(40 + 2) = 1596 (1C); (200−5)(200+5)=39975(200 - 5)(200 + 5) = 39975 (1C).
  3. 76×70+9=532976 \times 70 + 9 = 5329; 500×498+1=249001500 \times 498 + 1 = 249001; 1008×1000+16=10080161008 \times 1000 + 16 = 1008016.
  4. 60=162−14260 = 16^2 - 14^2 (from 30×230 \times 2) or 82−228^2 - 2^2 (from 10×610 \times 6). 225=1132−1122225 = 113^2 - 112^2 or 172−8217^2 - 8^2 or 152−0215^2 - 0^2.
  5. 142+42=196+16=21214^2 + 4^2 = 196 + 16 = 212 ✓.
  6. Subtracting 1B from 1A leaves 4ab4ab, so yes. 372−332=(37+33)(37−33)=28037^2 - 33^2 = (37 + 33)(37 - 33) = 280, and 4×35×2=2804 \times 35 \times 2 = 280 ✓ with a=35a = 35, b=2b = 2.
  7. (a) 10y−1510y - 15. (b) x2−12x+36x^2 - 12x + 36. (c) p2−q2p^2 - q^2. (d) 7a27a^2. (e) −m2−2mn−n2-m^2 - 2mn - n^2.
  8. They are equal. (a+b)2=4(a + b)^2 = 4 and a2+b2=34a^2 + b^2 = 34: the second is larger, since 2ab=−30<02ab = -30 < 0.