Euler Hall — free maths guides

Factor a sum of cubes

Recognise a sum of cubes and name a and b. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

Two cubes added

A sum of cubes is a binomial with two terms, both positive, both perfect cubes. It factors by a pattern that always works:

a3+b3=(a+b)(a2−ab+b2).a^{3} + b^{3} = (a + b)(a^{2} - ab + b^{2}).

For examplex3+27=x3+33x^{3} + 27 = x^{3} + 3^{3}, soa=xa = x andb=3b = 3, giving

x3+27=(x+3)(x2−3x+9).x^{3} + 27 = (x + 3)(x^{2} - 3x + 9).

One bracket is a binomial. The other is a trinomial, and it cannot be factored further.

Why the pattern works

Multiply the two factors out and watch the middle terms:

(a+b)(a2−ab+b2)=a3−a2b+ab2+a2b−ab2+b3.(a+b)(a^{2} - ab + b^{2}) = a^{3} - a^{2}b + ab^{2} + a^{2}b - ab^{2} + b^{3}.

The terms−a2b-a^{2}b and+a2b+a^{2}b cancel, and+ab2+ab^{2} and−ab2-ab^{2} cancel. What survives isa3+b3a^{3} + b^{3}.

That cancellation is the entire reason the trinomial has those two particular middle terms. If either sign were wrong, the cancellation would fail and the product would not bea3+b3a^{3}+b^{3}.

Worked example, in the exam's shape

Factor8x3+1258x^{3} + 125.

Step 1. Write both terms as cubes.8x3=(2x)38x^{3} = (2x)^{3} and125=53125 = 5^{3}, soa=2xa = 2x andb=5b = 5.

Step 2. Write the binomial factor.(a+b)=(2x+5)(a + b) = (2x + 5).

Step 3. Write the trinomial factor.a2=4x2a^{2} = 4x^{2}, then−ab=−10x-ab = -10x, thenb2=25b^{2} = 25, giving(4x2−10x+25)(4x^{2} - 10x + 25).

Step 4. Put them together.8x3+125=(2x+5)(4x2−10x+25)8x^{3} + 125 = (2x + 5)(4x^{2} - 10x + 25).

Step 5. Check.8x3−20x2+50x+20x2−50x+125=8x3+1258x^{3} - 20x^{2} + 50x + 20x^{2} - 50x + 125 = 8x^{3} + 125. The middle terms cancel, as they must.

By the end you can
  • Recognise a sum of cubes and name a and b
  • Apply the pattern a^3+b^3=(a+b)(a^2-ab+b^2)
  • Rebuild the trinomial factor from a and b
Check yourself

(a) Factorx3+64x^{3} + 64.

(b) Factor27a3+127a^{3} + 1.

(c) A student writesx3+125=(x+5)(x2+5x+25)x^{3} + 125 = (x + 5)(x^{2} + 5x + 25). What is wrong?

Answers

(a)x3+43=(x+4)(x2−4x+16)x^{3} + 4^{3} = (x+4)(x^{2} - 4x + 16).

(b)(3a)3+13=(3a+1)(9a2−3a+1)(3a)^{3} + 1^{3} = (3a+1)(9a^{2} - 3a + 1).

(c) The middle sign of the trinomial is wrong. It should be−5x-5x, so the answer is(x+5)(x2−5x+25)(x+5)(x^{2} - 5x + 25).

Work out where to start — free, no accountAnswer six real questions — free, no account