Sub topic 9
Sum and Difference of Cubes
Assume you can multiply polynomials, use exponent rules, and factor out a greatest common factor (GCF). A cube is an expression raised to the third power, such as \(x^3\), \(8=2^3\), or \(27y^3=(3y)^3\).
A sum or difference of cubes has two terms, and each term is a perfect cube. These expressions follow fixed patterns that turn them into a linear factor and a quadratic factor.
The two cube patterns
The identities are:
\[ 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 same sign as the original operation. The second factor uses the opposite sign between its terms.
| Original expression | First factor | Quadratic factor |
|---|---|---|
| \(a^3+b^3\) | \(a+b\) | \(a^2-ab+b^2\) |
| \(a^3-b^3\) | \(a-b\) | \(a^2+ab+b^2\) |
A useful memory rule is “same sign, opposite sign.” For a sum of cubes, the factors begin with \(a+b\), then use subtraction in the quadratic. For a difference of cubes, the factors begin with \(a-b\), then use addition in the quadratic.
Example: difference of cubes
Factor \(8x^3-27\).
First identify each cube:
\[ 8x^3=(2x)^3 \]
\[ 27=3^3 \]
Therefore,
\[ 8x^3-27=(2x)^3-3^3 \]
Use \(a^3-b^3=(a-b)(a^2+ab+b^2)\), with \(a=2x\) and \(b=3\):
\[ (2x)^3-3^3=(2x-3)\big((2x)^2+(2x)(3)+3^2\big) \]
Simplify:
\[ \boxed{8x^3-27=(2x-3)(4x^2+6x+9)} \]
The quadratic factor does not usually factor further over the integers.
Example: sum of cubes
Factor \(64y^3+125\).
Recognize the cubes:
\[ 64y^3=(4y)^3 \]
\[ 125=5^3 \]
So,
\[ 64y^3+125=(4y)^3+5^3 \]
Apply the sum pattern:
\[ (4y)^3+5^3=(4y+5)\big((4y)^2-(4y)(5)+5^2\big) \]
Thus,
\[ \boxed{64y^3+125=(4y+5)(16y^2-20y+25)} \]
Factor out a GCF first
Always check for a GCF before looking for a special product. For example:
\[ 2x^3+54=2(x^3+27) \]
Now the expression inside the parentheses is a sum of cubes:
\[ x^3+27=x^3+3^3 \]
Therefore,
\[ 2x^3+54=2(x+3)(x^2-3x+9) \]
Factoring out the GCF first exposes the cube pattern.
# Verify the difference-of-cubes identity for specific values.
a = 4
b = 3
left = a**3 - b**3
right = (a - b) * (a**2 + a*b + b**2)
print(left)
print(right)
print(left == right)Common errors
- Do not use the difference-of-squares pattern. \(a^3-b^3\) is not \((a-b)(a+b)\).
- Do not make every sign positive. The quadratic factor has a required sign pattern.
- Do not forget to cube the coefficient and the variable together. \(8x^3=(2x)^3\), not \(8(x^3)^3\).
- Do not stop before checking for a GCF.
- Do not assume the quadratic factor can always be factored further over the integers.
>callout note The quadratic factor from a sum or difference of cubes has no real linear factor when \(a\) and \(b\) are nonzero real numbers. In elementary factoring, it is normally considered completely factored over the integers. </callout>
Exercise
Factor completely: 54z^3 - 2.
Show answer
First factor out the GCF: 54z^3 - 2 = 2(27z^3 - 1). Then use the difference of cubes: 2((3z)^3 - 1^3) = 2(3z - 1)(9z^2 + 3z + 1).