Difference of Cubes Explained with Worked Examples

The difference of two cubes factorises as .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Difference of cubes means

Expanding gives . Compare with the sum of cubes: the sign in the first bracket changes, and so does the middle term of the second bracket, which is here. A memory aid is "same, opposite, always positive".

It is the case of geometric factorisation and of the fact that a − b divides aⁿ − bⁿ. Setting gives , which relates to the cube roots of unity in nth roots of unity.

Typical uses are factorising expressions like , simplifying fractions with cubes (see cancelling a common factor) and solving cubics with the factor theorem. The general three-variable identity is a³ + b³ + c³ − 3abc.

What is it used for?

The difference of two cubes factorises into a linear and a quadratic factor.

How to use difference of cubes

  1. Write each term as a cube, and .
  2. Write the first factor .
  3. Write the second factor .
  4. Expand to check if needed.

Graph

y = x³ − 8 has one root, at x = 2root x = 2-2-101234-200204060y = x³ − 8 has one root, at x = 2xyy = x³ − 8Graph with x from -2 to 4 and y from -30 to 60. Shows the curve y = x³ − 8; point root x = 2 at (2, 0).

Only the factor (x − 2) gives a real root.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: numbers

Factorise using the identity.

Worked example
Answer
9898
  1. a = 5, b = 3
  2. Evaluate

Example 2: an expression

Factorise .

Worked example
Answer
(x−2)(x2+2x+4)(x-2)(x^{2}+2x+4)
  1. a = x, b = 2

Example 3: with a coefficient

Factorise .

Worked example
Answer
(3x−1)(9x2+3x+1)(3x-1)(9x^{2}+3x+1)
  1. a = 3x, b = 1

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

5³ − 2³

(5 − 2)(25 + 10 + 4)

117.

4³ − 1

(4 − 1)(16 + 4 + 1)

63.

10³ − 3³

7 × 139

973.

x³ − 8 at x = 3

(1)(9 + 6 + 4)

19.

Word problems

a³ − b³ = (a − b)(a² + ab + b²). Note the signs: minus in the first factor, plus in the second.

5³ − 2³

(a − b)(a² + ab + b²).

  1. 3 × 39
  2. Check: 125 − 8 = 117 ✓117

4³ − 1

a = 4, b = 1.

  1. 3 × 21
  2. Check: 63 ✓63

10³ − 3³ Higher

a = 10, b = 3.

  1. 7 × 139
  2. Check: 973 ✓973

x³ − 8 Higher

At x = 3: (x − 2)(x² + 2x + 4).

  1. 1 × 19
  2. Check: ✓19

Common mistakes

Middle minus

a² − ab + b² ✗

a² + ab + b² ✓

Sign.

(a − b)³

confusion ✗

different ✓

Not the same.

First factor (a + b)

sum ✗

(a − b) ✓

Difference.

Quadratic factorises

further ✗

irreducible ✓

No real roots.

Exam tips

  1. a³ − b³ = (a − b)(a² + ab + b²).
  2. Signs: −, then +.
  3. Check by expanding.
  4. Use for x³ − k³.
  5. Mnemonic: SOAP.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. 3³ − 1 via factors Foundation

26

2. 6³ − 2³ via factors Foundation

208

3. 7³ − 4³ via factors Foundation

279

4. x³ − 27 at x = 4: (x − 3)(x² + 3x + 9) Higher

37

5. 8³ − 5³ Higher

387

6. 2³ − 1 Higher

7

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Difference of cubes
a³ − b³.
Factorisation
Product form.
Irreducible quadratic
No real factors.
SOAP
Same, Opposite, Always Positive.
Identity
True for all values.
Sum of cubes
Companion.

Frequently asked questions

How do I factorise a³ − b³?

(a − b)(a² + ab + b²).

What is x³ − 8?

(x − 2)(x² + 2x + 4).

Does the quadratic factor?

Not over the reals.

Mnemonic?

SOAP: Same, Opposite, Always Positive.

Which page covers the sum of cubes?

sum of cubes.

Which page covers geometric factorisation?

geometric factorisation.

More in Competition and admissions maths and the formula sheets.