Sum and Difference of Cubes
Learning goals
- Apply
- Place the signs with SOAP
- Cube-root each term to find and
- Note the single middle term, never
- Contrast a sum of cubes, which factors, with a sum of squares
Why a sum or difference of cubes factors
There are two identities to establish, one for each sign:
Each is a binomial times a trinomial, and neither asks to be taken on faith. You can confirm both the same way you confirmed the difference of squares. Expand the right-hand side, multiplying every term of the binomial by every term of the trinomial, and see what survives.
Why #
Expand the product on the right, taking each term of against each term of :
The first term is and the last is . Look at the four terms in between. The pair and are exact opposites and add to zero, and the pair and are exact opposites and add to zero as well. All four vanish at once:
Only the two cubes remain, so for every and . Read from right to left, that is the factoring rule for a sum of cubes.
The difference works by the same cancellation. Expand the same way:
Again the two middle pairs, with and with , cancel, and this time the last term is , leaving . So , and the difference of cubes factors as well.
The whole mechanism is those four middle terms falling away in two matched pairs. Nothing about it is arbitrary, and in particular the signs are forced, which is the next thing to pin down.
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 last term of the trinomial is , always positive, in both identities.
These are not three rules to accept blindly; the derivation above forces every one of them. Look back at the expansion of . The final came from multiplying by the trinomial’s last term . So the sign you put in front of the binomial’s is exactly what decides whether the result ends in or . That is the Same rule. The four middle terms cancelled only because the trinomial’s middle term carried the opposite sign from the binomial. Make both of those signs plus and the middle terms reinforce instead of cancelling, and no clean factorization survives. That is the Opposite rule. And the trinomial’s last term stayed in both cases, because is a square and all of the sign work is handled by the binomial. That is Always Positive.
One warning the pattern makes visible: the middle term is a single , not . The doubled middle term belongs to a perfect-square trinomial like , which is a different animal. The cube trinomial never doubles it.
Recognizing perfect cubes
Before you can use either identity you have to see two perfect cubes. A perfect cube is a number or term that is something cubed. The small perfect cubes are worth knowing on sight:
Variable terms can be cubes too. A bare power like is , and a term with a coefficient is a cube when the coefficient is a perfect cube: , , and . To set up a factorization, take the cube root of each term to find and . The cube root of is , not , because you must cube both the and the to rebuild .
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
Nothing in the pattern requires bare variables. Once you can take the cube root of each term, coefficient and all, you just read off and and let SOAP 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 , 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 number comes first, and the pattern does not mind:
The binomial matches the difference, the middle term is opposite that minus, and the last term is positive, exactly as SOAP predicts.
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 . It is tempting to keep going and try to factor that trinomial as well. Resist. For the cube pattern, that trinomial does not factor over the integers, and there is a concrete way to see why.
To factor into you would need two integers whose product is and whose sum is . The integer pairs that multiply to are and , and , and and , which sum to , , and . None of them sum to , so no such factoring exists.
The same happens every time: the cube trinomial has no integer factor pair. That the trinomial has no real factors at all is confirmed by tools in a later chapter. When a factorization reaches the binomial-times-trinomial stage, you are finished, unless a common factor was hiding in front.
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
There was no cube to see until the came out.
Worked example 5 Factor completely
The terms and are both even, and their greatest common factor is :
Now is a sum of cubes with and :
So the complete factorization is
Pulling out the is what turned , which is not itself a sum of cubes, into one that 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 .