Cube products: (a ± b)³ and the sum and difference of cubes
A cubical water tank of inner edge (a + b) has volume (a + b)³. The cube models in this topic show how such a block splits into smaller blocks, the way a mason counts bricks in a pillar.
(a + b)³ = a³ + b³ + 3ab(a + b), and (a − b)³ = a³ − b³ − 3ab(a − b). A sum of cubes is (a + b)(a² − ab + b²).
Key facts
(a + b)³a³ + 3a²b + 3ab² + b³ = a³ + b³ + 3ab(a + b)
(a − b)³a³ − 3a²b + 3ab² − b³ = a³ − b³ − 3ab(a − b)
(a + b)(a² − ab + b²)a³ + b³
(a − b)(a² + ab + b²)a³ − b³
Deriving (a + b)³
- 1(a + b)³ = (a + b)(a + b)²
- 2= (a + b)(a² + 2ab + b²)
- 3= a³ + 2a²b + ab² + a²b + 2ab² + b³
- 4= a³ + 3a²b + 3ab² + b³
- 5= a³ + b³ + 3ab(a + b). So, (a + b)³ = a³ + 3ab(a + b) + b³.
- 6Put −b in place of b to get (a − b)³ = a³ − 3ab(a − b) − b³.
Do not mix these up
(a + b)³, the cube of a sumFour terms: a³ + 3a²b + 3ab² + b³. It is never just a³ + b³.
a³ + b³, a sum of cubes(a + b)(a² − ab + b²). The middle term is −ab, not −2ab.
a³ − b³, a difference of cubes(a − b)(a² + ab + b²). The middle term is +ab.
Activity: verify (a + b)³ and a³ − b³ with models
- 1Take a = 2 cm and b = 1 cm, so a + b = 3 cm. Make a hollow box (cube) of side 3 cm from a clear sheet or card.
- 2From wood or thick card make one cube 2 × 2 × 2 (a³ = 8) and one cube 1 × 1 × 1 (b³ = 1). Also make three cuboids 2 × 2 × 1 (3a²b = 12) and three cuboids 2 × 1 × 1 (3ab² = 6).
- 3Fit all eight pieces into the box. They fill it exactly: 8 + 12 + 6 + 1 = 27 = 3³. So (a + b)³ = a³ + 3a²b + 3ab² + b³.
- 4For a³ − b³ take a = 4 cm and b = 1 cm. Make three cuboids: (a − b) × a × a = 3 × 4 × 4, (a − b) × a × b = 3 × 4 × 1 and (a − b) × b × b = 3 × 1 × 1. Also make a cube b × b × b = 1 × 1 × 1.
- 5Fit them together. They make a cube of side a = 4 cm: 48 + 12 + 3 + 1 = 64 = 4³.
- 6So a³ = (a − b)(a² + ab + b²) + b³, which gives a³ − b³ = (a − b)(a² + ab + b²).
Example 1: expand
Problem
Find (i) (2x + 3y)³ (ii) (p − 2q)³ (iii) (3a + 1)(9a² − 3a + 1).
Working
- (i) Use (a + b)³ = a³ + 3ab(a + b) + b³ with a = 2x, b = 3y.
- (2x + 3y)³ = 8x³ + 3(2x)(3y)(2x + 3y) + 27y³
- = 8x³ + 18xy(2x + 3y) + 27y³ = 8x³ + 36x²y + 54xy² + 27y³
- (ii) Use (a − b)³ = a³ − 3ab(a − b) − b³ with a = p, b = 2q.
- (p − 2q)³ = p³ − 6pq(p − 2q) − 8q³ = p³ − 6p²q + 12pq² − 8q³
- (iii) 9a² − 3a + 1 = (3a)² − (3a)(1) + 1², so this is (a + b)(a² − ab + b²) with a = 3a, b = 1.
- Product = (3a)³ + 1³ = 27a³ + 1
Answer
8x³ + 36x²y + 54xy² + 27y³; p³ − 6p²q + 12pq² − 8q³; 27a³ + 1
Example 2: cubes of numbers
Problem
Using special products find (i) 99³ (ii) 102³.
Working
- (i) 99³ = (100 − 1)³ = 100³ − 3 × 100 × 1 × (100 − 1) − 1³
- = 1000000 − 300 × 99 − 1
- = 1000000 − 29700 − 1 = 970299
- (ii) 102³ = (100 + 2)³ = 100³ + 3 × 100 × 2 × (100 + 2) + 2³
- = 1000000 + 600 × 102 + 8
- = 1000000 + 61200 + 8 = 1061208
Answer
99³ = 970299 and 102³ = 1061208
Cube of a sum: cube, cube, plus 3ab times the sum. Sum of cubes: (a + b) times (a² − ab + b²), with just one ab.