How much does a product change?

Suppose you already know 23×2723 \times 27. How much bigger does the product get if one factor goes up by 11? What if both do? What if one goes up and the other goes down? Each of these questions has a neat answer, and the tool that gives it is the distributive property. In this lesson we use it to expand any product of two two-term expressions, to multiply out longer brackets, and to multiply by 1111, 101101 and 9999 in a single line of working.

The distributive property

For any three numbers,

a(b+c)=ab+aca(b + c) = ab + ac

Here is a way to picture it. A rectangle of dots, aa rows deep and b+cb + c columns wide, splits neatly into two rectangles with abab and acac dots. Because multiplication is commutative, (a+b)c=ac+bc(a + b)c = ac + bc as well. And the property works for negative numbers too.

A rectangular array of dots a rows deep, split into a block b columns wide labelled ab and a block c columns wide labelled ac, showing a(b + c) = ab + ac.
An a by (b + c) array splits into ab and ac

Brahmagupta stated it clearly in 628 CE and called it khaṇḍa-guṇanam, multiplication by parts: break the multiplier into pieces, multiply by each piece, and add.

How products change

Start from abab.

  • One factor up by 11: a(b+1)=ab+aa(b + 1) = ab + a. The product grows by the other factor. So 23×28=23×27+2323 \times 28 = 23 \times 27 + 23.
  • Both up by 11: treat a+1a + 1 as a single term. Then (a+1)(b+1)=(a+1)b+(a+1)=ab+b+a+1(a + 1)(b + 1) = (a + 1)b + (a + 1) = ab + b + a + 1, a growth of a+b+1a + b + 1. So 24×28=23×27+5124 \times 28 = 23 \times 27 + 51.
  • One up, one down: (a+1)(b−1)=(a+1)b−(a+1)=ab+b−a−1(a + 1)(b - 1) = (a + 1)b - (a + 1) = ab + b - a - 1. The product grows only if b>a+1b > a + 1. For instance, 24×26=23×27+27−24=23×27+324 \times 26 = 23 \times 27 + 27 - 24 = 23 \times 27 + 3; but compare 9×49 \times 4 with 10×310 \times 3, and it goes down by 66.

The general change. Now increase aa by mm and bb by nn:

(a+m)(b+n)=ab+an+mb+mn(a + m)(b + n) = ab + an + mb + mn

Every term of the first bracket multiplies every term of the second, giving four products. The increase is an+bm+mnan + bm + mn. You can see it as an (a+m)×(b+n)(a + m) \times (b + n) rectangle cut into four blocks.

A rectangle with sides a + m and b + n cut into four blocks labelled ab, an, mb and mn, showing the four products in (a + m)(b + n).
An (a + m) by (b + n) rectangle cut into four blocks

A decrease is just an increase by a negative amount. With m=2m = 2 and n=−3n = -3, we get (a+2)(b−3)=ab−3a+2b−6(a + 2)(b - 3) = ab - 3a + 2b - 6. In general

(a−u)(b+v)=ab+av−ub−uv,(a−u)(b−v)=ab−av−ub+uv(a - u)(b + v) = ab + av - ub - uv, \qquad (a - u)(b - v) = ab - av - ub + uv

and the signs follow the usual rules for multiplying integers.

Example 1. (4+x)(y−2)=4y−8+xy−2x(4 + x)(y - 2) = 4y - 8 + xy - 2x.

Example 2. (10a+b)(10c+d)=100ac+10ad+10bc+bd(10a + b)(10c + d) = 100ac + 10ad + 10bc + bd. This is exactly why long multiplication of two-digit numbers has four partial products.

Example 3. (2−p)(p−5)=2p−10−p2+5p=−p2+7p−10(2 - p)(p - 5) = 2p - 10 - p^2 + 5p = -p^2 + 7p - 10.

Example 4. When does a product stay the same if one factor goes up by 33 and the other goes down by 22? We need (a+3)(b−2)=ab(a + 3)(b - 2) = ab, which means −2a+3b−6=0-2a + 3b - 6 = 0, that is, 3b=2a+63b = 2a + 6. That gives pairs like (3,4)(3, 4), (6,6)(6, 6), (9,8)(9, 8). Check: 3×4=6×23 \times 4 = 6 \times 2 ✓.

Longer brackets

Distributivity isn't limited to two terms. It works for as many as you like.

Example 5. 4x(x−2y+12)=4x2−8xy+2x\displaystyle 4x(x - 2y + \tfrac{1}{2}) = 4x^2 - 8xy + 2x. No two terms have the same letters, so nothing combines any further.

Example 6. (a+b)(a+b)=a2+ab+ba+b2=a2+2ab+b2(a + b)(a + b) = a^2 + ab + ba + b^2 = a^2 + 2ab + b^2, because abab and baba are like terms and add together.

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

Example 8. (p+pq−2q2)(3+q)=3p+3pq−6q2+pq+pq2−2q3=3p+4pq+pq2−6q2−2q3(p + pq - 2q^2)(3 + q) = 3p + 3pq - 6q^2 + pq + pq^2 - 2q^3 = 3p + 4pq + pq^2 - 6q^2 - 2q^3.

Identities. An equation between expressions that holds for every value of the letters, such as a(b+5)=ab+5aa(b + 5) = ab + 5a or (a+1)(b−1)=ab+b−a−1(a + 1)(b - 1) = ab + b - a - 1, is called an identity.

The multiplication grid

Take a 10×1010 \times 10 times table and pick any 3×33 \times 3 block with centre pqpq (row pp, column qq). Its entries are (p−1)(q−1)(p - 1)(q - 1), (p−1)q(p - 1)q, (p−1)(q+1)(p - 1)(q + 1); p(q−1)p(q - 1), pqpq, p(q+1)p(q + 1); (p+1)(q−1)(p + 1)(q - 1), (p+1)q(p + 1)q, (p+1)(q+1)(p + 1)(q + 1). Expanding shows the four corners add up to exactly 4pq4pq, so they average to pqpq, the centre itself. It is a neat result, and well worth checking on a real times table.

Fast multiplication by 1111, 101101, 9999

5273×11=5273×(10+1)=52730+5273=580035273 \times 11 = 5273 \times (10 + 1) = 52730 + 5273 = 58003

Written digit by digit for dcbadcba, the answer is d, (c+d), (b+c), (a+b), ad,\ (c + d),\ (b + c),\ (a + b),\ a, with carries. For 52735273: 5, 7, 9, 10, 3→5,\ 7,\ 9,\ 10,\ 3 \to 5800358003.

dcba×101=dcba00+dcba→d, c, (b+d), (a+c), b, adcba \times 101 = dcba00 + dcba \to d,\ c,\ (b + d),\ (a + c),\ b,\ a

dcba×1001→d, c, b, (a+d), c, b, adcba×10001→d, c, b, a, d, c, b, adcba \times 1001 \to d,\ c,\ b,\ (a + d),\ c,\ b,\ a \qquad dcba \times 10001 \to d,\ c,\ b,\ a,\ d,\ c,\ b,\ a

8462×99=8462×(100−1)=846200−8462=8377388462 \times 99 = 8462 \times (100 - 1) = 846200 - 8462 = 837738

These tricks are old. Brahmagupta (628), Śrīdharācārya (750) and Bhāskara (Līlāvatī, 1150) all describe this kind of iṣṭa-guṇana, multiplying by a convenient number of your choice.

Practice

  1. By how much does 41×5841 \times 58 change when (a) 5858 becomes 5959; (b) both go up by 11; (c) 4141 becomes 4242 and 5858 becomes 5757?
  2. Expand: (a) (5+m)(n−4)(5 + m)(n - 4); (b) (x−7)(x+7)(x - 7)(x + 7); (c) (3a−b)(c+2d)(3a - b)(c + 2d); (d) (2−y)(y−9)(2 - y)(y - 9); (e) (10p+q)(10p+r)(10p + q)(10p + r).
  3. Use (a+m)(b+n)(a + m)(b + n) to write how a product changes when one number is decreased by 55 and the other increased by 22; when both are decreased by 11 and by 44.
  4. Find three pairs of numbers whose product is unchanged when one is increased by 44 and the other decreased by 33.
  5. Expand: (a) (a−b)(a+b)(a - b)(a + b); (b) (a−b)(a2+ab+b2)(a - b)(a^2 + ab + b^2); (c) (a−b)(a3+a2b+ab2+b3)(a - b)(a^3 + a^2b + ab^2 + b^3). State the pattern and predict the next line.
  6. Expand (3y+5)(y−2z+4)(3y + 5)(y - 2z + 4) and (x+xy−y2)(2+y)(x + xy - y^2)(2 + y).
  7. Compute in one line: 6318×116318 \times 11; 2497×1012497 \times 101; 45×100145 \times 1001; 7350×997350 \times 99; 1212×100011212 \times 10001.
  8. In a times table, find the four corner entries of the 3×33 \times 3 block centred on 6×96 \times 9, add them, and compare with 4×544 \times 54. Prove what you find.

Answers

Show answers
  1. (a) +41+41. (b) +41+58+1=+100+41 + 58 + 1 = +100. (c) +58−41−1=+16+58 - 41 - 1 = +16.
  2. (a) 5n−20+mn−4m5n - 20 + mn - 4m. (b) x2−49x^2 - 49. (c) 3ac+6ad−bc−2bd3ac + 6ad - bc - 2bd. (d) −y2+11y−18-y^2 + 11y - 18. (e) 100p2+10pr+10pq+qr100p^2 + 10pr + 10pq + qr.
  3. (a−5)(b+2)=ab+2a−5b−10(a - 5)(b + 2) = ab + 2a - 5b - 10: change 2a−5b−102a - 5b - 10. (a−1)(b−4)=ab−4a−b+4(a - 1)(b - 4) = ab - 4a - b + 4: change −4a−b+4-4a - b + 4.
  4. (a+4)(b−3)=ab(a + 4)(b - 3) = ab gives −3a+4b−12=0-3a + 4b - 12 = 0, 4b=3a+124b = 3a + 12: (4,6)(4, 6), (8,9)(8, 9), (12,12)(12, 12). Check 4×6=8×34 \times 6 = 8 \times 3 ✓.
  5. a2−b2a^2 - b^2; a3−b3a^3 - b^3; a4−b4a^4 - b^4. Next: (a−b)(a4+a3b+a2b2+ab3+b4)=a5−b5(a - b)(a^4 + a^3b + a^2b^2 + ab^3 + b^4) = a^5 - b^5.
  6. 3y2−6yz+12y+5y−10z+20=3y2−6yz+17y−10z+203y^2 - 6yz + 12y + 5y - 10z + 20 = 3y^2 - 6yz + 17y - 10z + 20. 2x+xy+2xy+xy2−2y2−y3=2x+3xy+xy2−2y2−y32x + xy + 2xy + xy^2 - 2y^2 - y^3 = 2x + 3xy + xy^2 - 2y^2 - y^3.
  7. 6949869498; 252197252197; 4504545045; 727650727650; 1212121212121212.
  8. Corners 5×8=405 \times 8 = 40, 5×10=505 \times 10 = 50, 7×8=567 \times 8 = 56, 7×10=707 \times 10 = 70: sum 216=4×54216 = 4 \times 54. Expanding (p±1)(q±1)(p \pm 1)(q \pm 1) over the four sign choices, the ±p\pm p and ±q\pm q terms cancel in pairs and the four (±1)(±1)(\pm 1)(\pm 1) terms add to 1−1−1+1=01 - 1 - 1 + 1 = 0, so the corners always sum to exactly 4pq4pq.