Sum and Difference of Cubes
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Factor a sum or difference of cubes into a binomial times a trinomial
- Place the three signs correctly using the SOAP pattern
- Explain why the middle terms must cancel to prove each identity
- Pull out the greatest common factor before checking for a hidden cube pattern
Why a sum or difference of cubes factors
Try a specific case first: . Since , both terms are perfect cubes, and the claim is that this factors as . Check that claim the way you check any proposed factoring, by expanding the product:
The and cancel, and so do and , leaving . The same cancellation happens for any two terms and in place of and , which gives two general identities, one for each sign:
Expanding the products proves both identities for all real and .
Why #
First use and . The product has two pairs of opposite middle terms:
Expand the product on the right, taking each term of against each term of :
As in the example with and , the two middle pairs, with and with , are exact opposites, so they cancel for every and :
Read right to left, that is the factoring rule for a sum of cubes. The difference identity works the same way:
The same two middle pairs cancel, only this time the surviving last term is .
The next section shows how that cancellation and the last cube fix every sign in the two identities.
The SOAP sign pattern
The two identities differ only in where the signs go, and there is a tidy way to remember the pattern. It is often called SOAP, for Same, Opposite, Always Positive, read across the three signs you have to fill in:
- Same. The binomial takes the same sign as the original expression. A sum of cubes gives ; a difference gives .
- Opposite. The middle term of the trinomial takes the opposite sign. A sum gives ; a difference gives .
- Always Positive. The sign before the trinomial’s last term, , is always plus, in both identities.
The binomial’s sign gives the correct last cube, and the opposite middle sign makes the cross terms cancel. The last sign must be plus so that cancels ; changing it would leave unwanted middle terms. “Positive” names that plus sign; the value can be zero when .
Check your understanding
In , why must the trinomial's middle term be and not ?
Expanding gives . The sign is exactly what makes pair with , and pair with , so all four middle terms cancel and only survives. A middle term would make those same pairs add instead of cancel, leaving unwanted middle terms behind. The sign is forced by this cancellation, not chosen by convention.
Use one , not , in the trinomial. The doubled product belongs to the different pattern .
Recognizing perfect cubes
For integer-coefficient factoring, a perfect cube is the cube of an integer or an integer-coefficient term, such as . Look for those cubes in the expression. Here are the cubes of the whole numbers from through :
A monomial is a single term, such as , with whole-number variable exponents. It is a cube of another integer-coefficient monomial when its coefficient is an integer cube and every variable exponent is a multiple of . Cubing multiplies each exponent by . For example, , , and . But does not qualify: its exponent is not a multiple of .
The examples below use exponent , so the cube roots are terms like or . Keep the coefficient with the variable: the cube root of is , not .
Worked example 1 Which expressions are sums or differences of cubes?
Ask two things of each expression: are both terms perfect cubes, and are they added or subtracted?
is a difference of cubes. Both terms are cubes, since and , and they are subtracted, so and .
is a sum of cubes, since and . Here and .
is neither. The first term is a cube, but is not a perfect cube, since no whole number cubes to .
is not a difference of cubes. The number is a cube, but is a square, not a cube, so the pattern does not apply. This one is a difference of squares instead.
Check your understanding
Which of these is a difference of two perfect cubes?
A difference of cubes is two perfect-cube terms joined by a minus sign. In , both and are cubes, and they are subtracted.
The expression is a sum, is a square rather than a cube, and is not a perfect cube.
Factoring cubes that carry coefficients
The pattern works just as well when the terms carry coefficients. Take the cube root of each term, coefficient and all, to get and , and use SOAP to place the signs.
Worked example 2 Factor
Take the cube root of each term. Since , you have , and since , you have . This is a sum, so the binomial keeps the same sign, , the trinomial’s middle term takes the opposite sign, and the last term is positive:
The trinomial terms are , then with a minus in front, then . The middle term is , a single , not .
Worked example 3 Factor and
For , the cube roots are and (the small marks a cube root instead of a square root, so means the number that cubes to ), so and . It is a difference, so the binomial is , the middle sign is opposite that minus (so plus), and the last term is positive:
For , read the terms in the order they appear as , a difference with and . The pattern works the same way with the number first:
The binomial matches the difference, the middle term is opposite that minus, and the last term has a plus sign. Its value is zero when .
Check your understanding
Factor .
Take the cube root of each term: and , so and . This is a sum, so the binomial keeps the plus sign and the trinomial's middle term takes the opposite (minus) sign.
The first term of the trinomial is , so a is wrong, and the middle sign must be minus for a sum.
Why the trinomial does not factor further
After you factor a sum or difference of cubes, you are left with a trinomial like or . Can that trinomial be factored too? Try it on and see what happens.
To factor into you would need two integers whose product is and whose sum is . Since both and are positive, and must both be positive too (two negatives would multiply to a positive but add to a negative). The positive integer pairs that multiply to are and , and , and and , which sum to , , and . None of them sum to , so no such factoring exists.
We can also check why this quadratic has no real linear factors. Expanding a square gives
The square is nonnegative, so the right side is positive for every real . Thus the quadratic cannot be zero, whereas a real linear factor would provide a zero. This uses the square pattern from Squares of Binomials to check the whole expression.
The same check works when the constant appears first. For the factor , reorder the terms:
Both checks use a square plus a positive constant. Here is why that works in general:
Expand either square using the pattern from Squares of Binomials, then add . The result is four times the trinomial on the left. If is a nonzero multiple of and is a nonzero constant, is a positive constant. Adding a square keeps the result positive, so the trinomial cannot have a real linear factor.
If the constant comes first, swap the names and . This does not change or , so the same reasoning applies. These are the cases used in the worked examples. Remove any numerical common factor too. Other expressions substituted for and may have further factors; the stopping rule above is for a nonzero constant paired with a nonzero multiple of .
Pulling out a common factor first
An expression that is not a sum or difference of cubes as written can turn into one after you factor out a common factor. So always check for a common factor first. Take . Neither nor is a perfect cube, so the pattern does not apply yet. But both terms are even, and once you pull out the , what is left is a clean sum of cubes:
The habit is to factor out the greatest common factor first, then check whether what remains is a sum or difference of cubes. Skip that step and you either miss the cubes entirely or leave the answer half done.
Worked example 4 Factor completely
Find the greatest common factor of and first. They share a factor of and a factor of , so the common factor is :
What is left inside is , a difference of cubes with and :
Keeping the common factor out front, the complete factorization is
Worked example 5 Factor completely
Neither nor is a perfect cube, but both are even, and their greatest common factor is :
Now is a sum of cubes with and :
So the complete factorization is
Check your understanding
Factor completely.
Pull out the greatest common factor, , first. What remains is a difference of cubes, since .
The binomial takes the same (minus) sign, the middle term is the opposite (plus) sign, and it is a single , not .