Sub topic 9
Sum and Difference of Cubes
Assume you can expand products, combine like terms, work with exponents, and factor out a greatest common factor. A cube is a number or expression raised to the third power, such as \(8=2^3\) or \(27x^3=(3x)^3\).
The Two Identities
The sum and difference of cubes factor as follows:
| Expression | Factored form |
|---|---|
| \(a^3+b^3\) | \((a+b)(a^2-ab+b^2)\) |
| \(a^3-b^3\) | \((a-b)(a^2+ab+b^2)\) |
The first factor keeps the original sign. The middle term in the second factor uses the opposite sign.
For a sum of cubes, the signs are plus, minus, plus:
\[ a^3+b^3=(a+b)(a^2-ab+b^2) \]
For a difference of cubes, the signs are plus, plus, plus inside the second factor:
\[ a^3-b^3=(a-b)(a^2+ab+b^2) \]
These patterns are different from the difference-of-squares identity. Do not factor \(a^3-b^3\) as \((a-b)(a^2-b^2)\).
Factoring Step by Step
To factor \(8x^3+27\), identify each cube:
\[ 8x^3=(2x)^3,\qquad 27=3^3 \]
Use the sum identity with \(a=2x\) and \(b=3\):
\[ 8x^3+27=(2x+3)\left((2x)^2-(2x)(3)+3^2\right) \]
Simplify:
\[ 8x^3+27=(2x+3)(4x^2-6x+9) \]
For a difference, factor \(125y^3-8\):
\[ 125y^3-8=(5y)^3-2^3 \]
Therefore,
\[ 125y^3-8=(5y-2)(25y^2+10y+4) \]
The signs in the quadratic factor are positive because the original expression is a difference.
GRE Applications and Common Errors
Factoring cubes is useful when an equation contains a zero product. For example:
\[ x^3-8=0 \]
Factors as
\[ (x-2)(x^2+2x+4)=0 \]
The real solution is \(x=2\). The quadratic factor has no real roots because its discriminant is \(2^2-4(1)(4)=-12\).
On GRE questions, first check for a greatest common factor. Then check whether the remaining terms are cubes. Also remember that a cube can contain a variable expression, such as \((x+1)^3\).
def sum_of_cubes(a, b):
return (a + b) * (a * a - a * b + b * b)
def difference_of_cubes(a, b):
return (a - b) * (a * a + a * b + b * b)
assert sum_of_cubes(2, 3) == 35
assert 2**3 + 3**3 == 35
assert difference_of_cubes(5, 2) == 117
assert 5**3 - 2**3 == 117
print("cube identities verified")Exercise
Factor \(27t^3+64\).
Show answer
Since \(27t^3=(3t)^3\) and \(64=4^3\), the result is \((3t+4)(9t^2-12t+16)\).