Sub topic 10
Sum and Difference of Cubes
This chapter assumes you can factor a difference of squares, pull out a greatest common factor, and factor a trinomial of the form x² + bx + c. It also assumes you know the exponent rules for positive integer powers. Cubes appear rarely on the GRE, so this chapter is short. The pattern is still worth memorizing because it turns up inside rational expressions and in "simplify" questions.
The two identities
A perfect cube is a number or expression raised to the third power, such as 8 = 2³, 27 = 3³, or x³. The two identities are:
- a³ + b³ = (a + b)(a² − ab + b²)
- a³ − b³ = (a − b)(a² + ab + b²)
Each factorization has a linear factor and a quadratic factor. The linear factor uses the same sign as the original expression. The quadratic factor is not a perfect square trinomial, because its middle term is ab, not 2ab.
A common memory aid is SOAP, which gives the signs in order:
- Same sign as the original expression, in the linear factor.
- Opposite sign, on the middle term of the quadratic factor.
- Always Positive, on the last term of the quadratic factor.
Why the identities work
You can check an identity by expanding it. Multiply (a + b)(a² − ab + b²) with the distributive property:
- a · a² = a³
- a · (−ab) = −a²b
- a · b² = ab²
- b · a² = a²b
- b · (−ab) = −ab²
- b · b² = b³
The terms −a²b and a²b cancel, and so do ab² and −ab². Only a³ + b³ remains. The difference of cubes works the same way with the signs reversed.
for a, b in [(3, 4), (-2, 5), (7, 7), (0, 6)]:
assert a ** 3 + b ** 3 == (a + b) * (a ** 2 - a * b + b ** 2)
assert a ** 3 - b ** 3 == (a - b) * (a ** 2 + a * b + b ** 2)
print("cube identities hold")Recognizing cubes
Before you apply the identities, you have to see that each term is a cube. Learn the common ones:
| Number | Cube root | Number | Cube root |
|---|---|---|---|
| 1 | 1 | 125 | 5 |
| 8 | 2 | 216 | 6 |
| 27 | 3 | 343 | 7 |
| 64 | 4 | 1000 | 10 |
A variable term is a cube when its exponent is a multiple of 3. So x⁶ = (x²)³ and y⁹ = (y³)³. A term such as 8x³ is a cube because 8x³ = (2x)³.
Worked examples
Example 1: a plain difference of cubes
Factor x³ − 27.
- Write 27 as 3³, so the expression is x³ − 3³.
- Use a = x and b = 3.
- Apply a³ − b³ = (a − b)(a² + ab + b²).
The result is (x − 3)(x² + 3x + 9).
Example 2: a coefficient inside the cube
Factor 8x³ + 125.
- Write the expression as (2x)³ + 5³.
- Use a = 2x and b = 5.
- Apply a³ + b³ = (a + b)(a² − ab + b²).
The result is (2x + 5)(4x² − 10x + 25). The middle term is −(2x)(5) = −10x, and the last term is 5² = 25.
Example 3: take out a GCF first
Factor 3x³ − 24.
- Factor out the GCF, 3, to get 3(x³ − 8).
- Write x³ − 8 as x³ − 2³.
- Factor it as (x − 2)(x² + 2x + 4).
The result is 3(x − 2)(x² + 2x + 4). If you skip the GCF, the numbers 3 and 24 are not both perfect cubes, so you might miss the pattern.
Example 4: a sixth power
Factor x⁶ − 64.
This expression is both a difference of squares and a difference of cubes, because x⁶ = (x³)² = (x²)³ and 64 = 8² = 4³. The order of factoring matters.
Start with the difference of squares: x⁶ − 64 = (x³ − 8)(x³ + 8). Then factor each cube:
- x³ − 8 = (x − 2)(x² + 2x + 4)
- x³ + 8 = (x + 2)(x² − 2x + 4)
The full factorization is (x − 2)(x + 2)(x² + 2x + 4)(x² − 2x + 4).
If you start with the difference of cubes, you get (x² − 4)(x⁴ + 4x² + 16). You can still factor x² − 4 and then factor x⁴ + 4x² + 16 further, but that takes extra steps. When both patterns apply, use the difference of squares first.
The quadratic factor does not factor further
The quadratic factor in a cube identity cannot be factored over the real numbers. For x² + 3x + 9, the discriminant is 3² − 4(1)(9) = −27, which is negative. In general, the discriminant of a² ∓ ab + b² is −3b², which is negative whenever b is not zero. So you can stop once you have the linear factor and the quadratic factor.
def disc(p, q, r):
return q * q - 4 * p * r
# Quadratic factor a**2 + a*b + b**2 in the variable a, with b fixed
for b in [1, 2, 3, 5]:
assert disc(1, b, b * b) == -3 * b * b
print("quadratic factors have negative discriminant")Use in rational expressions
Cube factorizations let you simplify fractions. Consider (x³ − 8) / (x² − 4).
- Factor the numerator: (x − 2)(x² + 2x + 4).
- Factor the denominator: (x − 2)(x + 2).
- Cancel the common factor (x − 2), which requires x ≠ 2.
The result is (x² + 2x + 4) / (x + 2), for x ≠ 2 and x ≠ −2.
Common errors
- Squaring the wrong term. The middle term of the quadratic factor is ab, not 2ab. Writing (a + b)(a² + 2ab + b²) is wrong.
- Getting the signs wrong. For a sum of cubes, the linear factor has a plus and the middle term of the quadratic has a minus. Use SOAP.
- Forgetting the coefficient. In 8x³ + 125, a is 2x, not x. Cube the coefficient when you check.
- Trying to factor the quadratic factor. It has a negative discriminant, so it has no real linear factors.
- Mistaking a sum of squares for something factorable. A sum of squares such as x² + 9 does not factor over the real numbers. Only cubes have a sum identity.
GRE relevance
You rarely need to factor cubes by hand on the GRE. The skill matters in two cases. First, a quantitative comparison may give an expression like x³ − 1 and ask about its value when x − 1 is known. Second, a simplification question may include a cube in a fraction. In both cases, spot the pattern, factor, and cancel.
Exercise
Factor 27x³ − 64y³ completely, and state why you cannot factor the result further over the real numbers.
Show answer
Write the expression as (3x)³ − (4y)³, so a = 3x and b = 4y. Then (a − b)(a² + ab + b²) gives (3x − 4y)(9x² + 12xy + 16y²). The quadratic factor has discriminant (12y)² − 4(9)(16y²) = 144y² − 576y² = −432y², which is negative for y ≠ 0, so it has no real linear factors.
Exercise
Simplify (x³ + 27) / (x² − 9) for x ≠ 3 and x ≠ −3.
Show answer
Factor the numerator as (x + 3)(x² − 3x + 9) and the denominator as (x − 3)(x + 3). Cancel (x + 3) to get (x² − 3x + 9) / (x − 3).