-0lqDTQfgN4

Difference of Two Cubes

A special case when multiplying polynomials that produces a3 − b3

Polynomials

A polynomial looks like this:

Polynomial expression 2x to the fourth power plus 6x minus 5
example of a polynomial

Difference of Two Cubes

The Difference of Two Cubes is a special case of multiplying polynomials that looks like this:

(a − b)(a2 + ab + b2) = a3 − b3

It comes up sometimes when doing solutions, so is worth remembering.

And this is why it works out (press play):

Example from Geometry:

Let's take the "x" cube and subtract the "y" cube!

Large cube of side x with a smaller cube of side y removed from the corner

First, we split the "x" cube into four smaller boxes (cuboids), with box A being a cube of size "y":

polynomial cubes difference

The volumes of these boxes are:

And together, A, B, C and D make up the "x" cube with volume x3:

x3
= y3 + x2(x − y) + xy(x − y) + y2(x − y)
x3 − y3
= x2(x − y) + xy(x − y) + y2(x − y)
= (x − y)(x2 + xy + y2)
sage happy

Yes! It is the same formula as (a − b)(a2 + ab + b2) = a3 − b3
Thank goodness.

Sum of Two Cubes

There's also the "Sum of Two Cubes"

By changing the sign of b in each case we get:

(a + b)(a2 − ab + b2) = a3 + b3

Note the minus in front of "ab".

To Remember the Signs Use SOAP!

a3 − b3 = (a − b)(a2 + ab + b2)
a3 + b3 = (a + b)(a2 − ab + b2)

  • S: The first sign is the Same as the original expression
  • O: The second sign is the Opposite
  • AP: The last sign is Always Positive

Example: Factor x3 − 8 using SOAP

a=x, and 8 is 23, so b=2:

x3 − 23 =
(x 2)(x2 + 2x + 4)
Same (−), Opposite (+), Always Positive (+)
464,465, 1112, 1113, 4007, 4008, 2260, 4009, 2261, 4010