Why Cube Factoring Has Its Own Pattern
Some polynomial expressions can be factored by recognizing that each term is a perfect cube. For example, \(x^3-64\) is a difference of cubes because \(64=4^3\). The expression \(8a^3+27b^3\) is a sum of cubes because \(8a^3=(2a)^3\) and \(27b^3=(3b)^3\).
These expressions have standard factorizations. The main challenge is remembering the signs in the quadratic factor: the sign between the cube roots matches the original operation, while the middle term in the quadratic factor has the opposite sign. The final term in that factor is positive in both identities.
The Two Identities
For any real numbers or algebraic expressions \(a\) and \(b\), the difference of cubes identity is
The sum of cubes identity is
Each identity expresses a cubic binomial as a linear factor times a quadratic factor. In the difference formula, the linear factor is \(a-b\), and the quadratic factor has two positive signs. In the sum formula, the linear factor is \(a+b\), and the quadratic factor has a negative middle term and a positive final term.
When applying either identity, \(a\) and \(b\) stand for the cube roots of the terms, not for the terms themselves. For instance, in \(x^3-125\), use \(a=x\) and \(b=5\), since \(125=5^3\).
Why the Identities Work
The formulas can be justified directly by multiplying the proposed factors. This also shows why the middle-term signs are essential: the mixed terms cancel, leaving only the original cubes.
Distribute each term of \(a-b\) across the quadratic factor and collect like terms.
Distribute each term of \(a+b\) across the quadratic factor and collect like terms.
For the difference, multiplication gives
The terms \(a^2b\) cancel, and the terms \(ab^2\) cancel. For the sum, multiplication gives
Here too, both mixed-term pairs cancel. These expansions prove the identities and provide a reliable way to check any particular use of them.
A Reliable Factoring Procedure
Before applying an identity, check that the expression has exactly the needed structure: two terms, each of which is a perfect cube, joined by subtraction or addition. Then find the cube root of each term and place those roots into the matching formula.
- Write each term as a cube, if possible.
- Identify the two cube roots \(a\) and \(b\).
- Choose the difference identity for subtraction or the sum identity for addition.
- Substitute \(a\) and \(b\) into both factors, keeping the signs in the formula.
- Multiply the factors to confirm that the original expression is recovered.
A coefficient is a perfect cube when it is the cube of a number, and a variable power is a perfect cube when its exponent is divisible by \(3\). For example, \(64x^6=(4x^2)^3\), because \(4^3=64\) and \((x^2)^3=x^6\). The cube root of \(64x^6\) is therefore \(4x^2\).
Worked Examples
Worked Example: Factor a Difference of Cubes
Factor \(x^3-64\), then verify the result.
First, write both terms as cubes: \(x^3=x^3\) and \(64=4^3\). Thus \(a=x\) and \(b=4\). Since the expression is a difference, use \(a^3-b^3=(a-b)(a^2+ab+b^2)\):
To check, multiply the factors:
The expanded result is the original expression, so the factorization is correct.
Worked Example: Factor a Sum with Coefficients
Factor \(8a^3+27b^3\), then check by multiplication.
Recognize the terms as cubes: \(8a^3=(2a)^3\), since \(2^3=8\), and \(27b^3=(3b)^3\), since \(3^3=27\). Thus the cube roots are \(2a\) and \(3b\). This is a sum, so use the sum identity:
Now expand. The first factor contributes \(2a\) times the quadratic, and the second contributes \(3b\) times the quadratic:
The mixed terms cancel, giving the expression we started with. The negative middle term in the quadratic factor is required for this cancellation.
Worked Example: Factor a Difference with a Variable in Each Term
Factor \(125x^3-y^3\) and verify the signs.
Write \(125x^3=(5x)^3\) and \(y^3=y^3\). The cube roots are \(5x\) and \(y\). Because the original operation is subtraction, apply the difference identity:
To verify, expand one term from each part of the product:
The \(25x^2y\) terms and the \(5xy^2\) terms cancel, so the expansion verifies the factorization.
Common Sign Mistake
A frequent error is to use the sum identity but put a positive middle term in the quadratic factor. For example, an incorrect attempt at factoring \(x^3+8\) is
Multiplication reveals the error:
which is not \(x^3+8\). The sum identity has a negative middle term in its quadratic factor. Since \(8=2^3\), the correction is
Checking confirms the correction:
The safest way to avoid this mistake is to memorize the two formulas with their signs and multiply back whenever the signs seem uncertain.
When These Identities Apply
These formulas apply directly when an expression consists of two perfect cubes. A binomial such as \(x^3-27\) fits the pattern, as does \(8x^3+1\). By contrast, an expression with more than two terms is not immediately a sum or difference of cubes as written. Also, an expression such as \(x^3+2\) does not have an integer cube root for its constant term, though the identity can still be written using the real cube root of \(2\).
In a polynomial factoring problem, the useful first recognition is often that the coefficients and variable powers permit simple cube roots. If the terms can be written as \(a^3\) and \(b^3\), then the standard identity applies directly. The identity does not assert that every cubic polynomial factors in this way; it addresses the specific two-term patterns \(a^3-b^3\) and \(a^3+b^3\).
It is also worth distinguishing the identities from the square identities. A sum of squares does not follow this cube pattern: \(a^2+b^2\) has no corresponding factorization over the real numbers into linear factors in general. For cube factoring, the exponents and the operation between the terms both matter.
Summary
Factoring a difference or sum of cubes begins by identifying the cube roots of the two terms. For a difference, keep a minus sign in the linear factor and use all positive signs in the quadratic factor. For a sum, use a plus sign in the linear factor, a negative middle term in the quadratic factor, and a positive final term.
Check Your Understanding
For each question, keep track of the cube roots and use multiplication to check the signs.
- Factor \(x^3-216\).
- Factor \(27m^3+8n^3\).
- What are the signs in the quadratic factor for a difference of cubes? What are they for a sum of cubes?
- Expand \((p+3)(p^2-3p+9)\). Which cube identity does the result verify?
- A student writes \(a^3-b^3=(a-b)(a^2-ab+b^2)\). Expand the proposed right-hand side and explain why it does not give the difference of cubes.