TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Identity 7: Difference of Two Cubes

Identity 7: Difference of Two Cubes

In our journey through algebraic identities, we have seen how squares and cubes behave under addition and subtraction. We saw in Identity 3: Difference of Two Squares that subtracting two squared quantities always splits into conjugate binomials: A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B).

Now, we complete the set of the seven remarkable identities with Identity 7: The Difference of Two Cubes. Just like its sister identity, the Sum of Two Cubes, this identity factors any cubic subtraction A3−B3A^3 - B^3 into a linear binomial times an irreducible quadratic trinomial.


1. Concepts & Paper Visuals: Factoring A3−B3A^3 - B^3

The algebraic identity for the difference of two cubes is:

A3−B3=(A−B)(A2+AB+B2)A^3 - B^3 = (A - B)(A^2 + AB + B^2)

Take a close look at how the signs and terms are organized:

  1. The Binomial Factor (A−B)(A - B): The first factor is the direct difference of the cube roots of both terms.
  2. The Trinomial Factor (A2+AB+B2)(A^2 + AB + B^2): The second factor consists of:
    • The square of the first term: A2A^2
    • The product of the two terms: +AB+AB (with no factor of 22)
    • The square of the second term: +B2+B^2

Notice that every sign inside the trinomial factor is positive!

Applying the SOAP Rule

Just as with the sum of two cubes, the acronym SOAP guarantees that you never misplace a plus or minus sign on paper:

LetterMeaningPlacement in FormulaSSameThe binomial has the same sign as the original: (A−B)OOppositeThe middle term has the opposite sign: (A2+AB+B2)APAlways PositiveThe last term is always positive: (A2+AB+B2)\begin{array}{|c|c|l|} \hline \textbf{Letter} & \textbf{Meaning} & \textbf{Placement in Formula} \\ \hline \mathbf{S} & \textbf{Same} & \text{The binomial has the } \mathbf{\text{same}} \text{ sign as the original: } (A \mathbf{-} B) \\ \mathbf{O} & \textbf{Opposite} & \text{The middle term has the } \mathbf{\text{opposite}} \text{ sign: } (A^2 \mathbf{+} AB + B^2) \\ \mathbf{AP} & \textbf{Always Positive} & \text{The last term is } \mathbf{\text{always positive}} \text{: } (A^2 + AB \mathbf{+} B^2) \\ \hline \end{array}

The Telescopic Cancellation Proof

Let us verify this identity on lined paper by multiplying out the right-hand side using the distributive law:

(A−B)(A2+AB+B2)=A(A2+AB+B2)−B(A2+AB+B2)=(A3+A2B+AB2)−(A2B+AB2+B3)=A3+A2B+AB2−A2B−AB2−B3\begin{aligned} (A - B)(A^2 + AB + B^2) &= A(A^2 + AB + B^2) - B(A^2 + AB + B^2) \\ &= \left(A^3 + A^2B + AB^2\right) - \left(A^2B + AB^2 + B^3\right) \\ &= A^3 + A^2B + AB^2 - A^2B - AB^2 - B^3 \end{aligned}

Now align the terms vertically in columns according to their variables:

A3+A2B+AB2−A2B+AB2+B3=A3+0+0−B3\begin{array}{rccccccc} & A^3 & + & A^2B & + & AB^2 & & \\ - & & & A^2B & + & AB^2 & + & B^3 \\ \hline = & A^3 & + & 0 & + & 0 & - & B^3 \end{array}

The four middle cross-terms (+A2B−A2B)(+A^2B - A^2B) and (+AB2−AB2)(+AB^2 - AB^2) cancel out completely to zero, leaving precisely:

A3−B3A^3 - B^3

Irreducibility of the Trinomial Factor

Students often ask: Can we factor the trinomial (A2+AB+B2)(A^2 + AB + B^2) any further?

The answer is no, not using real numbers. Computing its discriminant with respect to AA (treating BB as a constant):

Δ=b2−4ac=(B)2−4(1)(B2)=B2−4B2=−3B2\Delta = b^2 - 4ac = (B)^2 - 4(1)(B^2) = B^2 - 4B^2 = -3B^2

Since B≠0B \ne 0, −3B2-3B^2 is strictly negative (Δ<0\Delta < 0). A quadratic with a negative discriminant has no real roots and cannot be factored over real numbers. Therefore, (A2+AB+B2)(A^2 + AB + B^2) is completely factored.


2. Step-by-Step Notebook Examples

Example 1: Basic Single-Variable Factoring

Problem: Factor x3−64x^3 - 64 on paper.

  • Step 1: Express each term as a cube.
    x3=(x)3and64=43x^3 = (x)^3 \quad \text{and} \quad 64 = 4^3
    Identify: A=xA = x and B=4B = 4.
  • Step 2: Write out the identity skeleton.
    A3−B3=(A−B)(A2+AB+B2)A^3 - B^3 = (A - B)(A^2 + AB + B^2)
  • Step 3: Substitute A=xA = x and B=4B = 4.
    x3−64=(x−4)[(x)2+(x)(4)+(4)2]x^3 - 64 = (x - 4)\left[(x)^2 + (x)(4) + (4)^2\right]
  • Step 4: Compute the terms in the trinomial.
    x3−64=(x−4)(x2+4x+16)x^3 - 64 = (x - 4)(x^2 + 4x + 16)

Example 2: Factoring with Coefficients and Two Variables

Problem: Factor 27x3−8y327x^3 - 8y^3.

  • Step 1: Take the cube root of each compound monomial.
    • Cube root of 27x327x^3: 273⋅x33=3x  ⟹  A=3x\sqrt[3]{27} \cdot \sqrt[3]{x^3} = 3x \implies A = 3x
    • Cube root of 8y38y^3: 83⋅y33=2y  ⟹  B=2y\sqrt[3]{8} \cdot \sqrt[3]{y^3} = 2y \implies B = 2y
  • Step 2: Form the binomial factor (A−B)(A - B).
    (3x−2y)(3x - 2y)
  • Step 3: Construct each term of the trinomial factor (A2+AB+B2)(A^2 + AB + B^2).
    A2=(3x)2=9x2+AB=+(3x)(2y)=+6xy+B2=+(2y)2=+4y2\begin{aligned} A^2 &= (3x)^2 = 9x^2 \\ +AB &= +(3x)(2y) = +6xy \\ +B^2 &= +(2y)^2 = +4y^2 \end{aligned}
  • Step 4: Multiply the two factors together.
    27x3−8y3=(3x−2y)(9x2+6xy+4y2)27x^3 - 8y^3 = (3x - 2y)(9x^2 + 6xy + 4y^2)

Example 3: Pulling Out a Common Factor First

Problem: Factor 2x4−54x2x^4 - 54x completely on paper.

  • Step 1: Check for a Greatest Common Factor (GCF). Both 2x42x^4 and 54x54x are divisible by 2x2x:
    2x4−54x=2x(x3−27)2x^4 - 54x = 2x(x^3 - 27)
  • Step 2: Recognize the difference of two cubes inside the parentheses.
    x3−27=(x)3−(3)3  ⟹  A=x,B=3x^3 - 27 = (x)^3 - (3)^3 \implies A = x, \quad B = 3
  • Step 3: Factor the inner difference of cubes.
    x3−27=(x−3)(x2+3x+9)x^3 - 27 = (x - 3)(x^2 + 3x + 9)
  • Step 4: Combine with the GCF for the complete factorization.
    2x4−54x=2x(x−3)(x2+3x+9)2x^4 - 54x = 2x(x - 3)(x^2 + 3x + 9)

Example 4: Instant Arithmetic Simplification on Paper

Problem: Evaluate the following fraction without long multiplication:

873−133872+87×13+132\frac{87^3 - 13^3}{87^2 + 87 \times 13 + 13^2}
  • Step 1: Recognize the algebraic structure of the fraction. Let A=87A = 87 and B=13B = 13. The numerator is A3−B3A^3 - B^3. The denominator is A2+AB+B2A^2 + AB + B^2.
  • Step 2: Replace the numerator with Identity 7.
    A3−B3A2+AB+B2=(A−B)(A2+AB+B2)A2+AB+B2\frac{A^3 - B^3}{A^2 + AB + B^2} = \frac{(A - B)(A^2 + AB + B^2)}{A^2 + AB + B^2}
  • Step 3: Cancel the identical trinomial factor.
    (A−B)(A2+AB+B2)A2+AB+B2=A−B\frac{(A - B)\cancel{(A^2 + AB + B^2)}}{\cancel{A^2 + AB + B^2}} = A - B
  • Step 4: Calculate the remaining simple subtraction on paper.
    A−B=87−13=74A - B = 87 - 13 = 74
  • Final Result: 7474. An otherwise daunting calculation takes less than 1010 seconds on paper!

3. Common Mistakes & Paper Traps

Trap 1: The Notation Confusion: (A−B)3(A - B)^3 vs A3−B3A^3 - B^3

Never mix up these two concepts:

  • (A−B)3=A3−3A2B+3AB2−B3(A - B)^3 = A^3 - 3A^2B + 3AB^2 - B^3 (The Cube of a Difference: starts as one grouped cube, expands into four terms).
  • A3−B3=(A−B)(A2+AB+B2)A^3 - B^3 = (A - B)(A^2 + AB + B^2) (The Difference of Two Cubes: starts as two cubes subtracted, factors into a binomial and a trinomial).

Trap 2: Accidentally Doubling the Middle Term

Do not write:

(A−B)(A2+2AB+B2)(WRONG!)\mathbf{(A - B)(A^2 + 2AB + B^2) \quad \text{(WRONG!)}}

The middle term is +AB+AB, with no coefficient of 2. Putting 2AB2AB turns the second factor into (A+B)2(A + B)^2, which does not give A3−B3A^3 - B^3 when expanded.

Trap 3: Writing a Minus Sign on the Last Term

Writing (A−B)(A2+AB−B2)(A - B)(A^2 + AB - B^2) is a very frequent error. Remember SOAP: The last sign is Always Positive (AP\mathbf{AP}):

(−B) squared is (−B)×(−B)=+B2(-B) \text{ squared is } (-B) \times (-B) = +B^2

Trap 4: Factorization Order when Facing x6−y6x^6 - y^6

When encountering x6−y6x^6 - y^6, you can view it either as a difference of squares:

(x3)2−(y3)2(x^3)^2 - (y^3)^2

or as a difference of cubes:

(x2)3−(y2)3(x^2)^3 - (y^2)^3

Golden Paper Rule: Always factor as a difference of squares first!

x6−y6=(x3−y3)(x3+y3)x^6 - y^6 = (x^3 - y^3)(x^3 + y^3)

Then factor each cubic factor using Identity 7 and Identity 6:

x6−y6=(x−y)(x2+xy+y2)(x+y)(x2−xy+y2)x^6 - y^6 = (x - y)(x^2 + xy + y^2)(x + y)(x^2 - xy + y^2)

If you factor as a difference of cubes first, you get (x2−y2)(x4+x2y2+y4)(x^2 - y^2)(x^4 + x^2 y^2 + y^4), leaving a quartic factor that is much harder to factor on paper!


4. Pencil & Paper Practice

Practice 1

Factor completely on paper:

125x3−1125x^3 - 1

??? success "Solution to Practice 1" 1. Identify the cube roots: * 125x33=5x  ⟹  A=5x\sqrt[3]{125x^3} = 5x \implies A = 5x * 13=1  ⟹  B=1\sqrt[3]{1} = 1 \implies B = 1 2. Write the formula: math A^3 - B^3 = (A - B)(A^2 + AB + B^2) 3. Calculate the terms of the trinomial: * A2=(5x)2=25x2A^2 = (5x)^2 = 25x^2 * AB=(5x)(1)=5xAB = (5x)(1) = 5x * B2=12=1B^2 = 1^2 = 1 4. Write the factored product: math (5x - 1)(25x^2 + 5x + 1)


Practice 2

Factor completely on paper:

54y3−1654y^3 - 16

??? success "Solution to Practice 2" 1. Look for a common factor: both 5454 and 1616 are even, divisible by 22. math 54y^3 - 16 = 2(27y^3 - 8) 2. Recognize the difference of two cubes in 27y3−827y^3 - 8: * 27y33=3y  ⟹  A=3y\sqrt[3]{27y^3} = 3y \implies A = 3y * 83=2  ⟹  B=2\sqrt[3]{8} = 2 \implies B = 2 3. Factor the cubic binomial: math 27y^3 - 8 = (3y - 2)\left[(3y)^2 + (3y)(2) + 2^2\right] = (3y - 2)(9y^2 + 6y + 4) 4. Put the common factor 22 back in front: math 54y^3 - 16 = 2(3y - 2)(9y^2 + 6y + 4)


5. Summary & Formula Card

Identity NameIdentity 7: Difference of Two CubesFactoring FormulaA3−B3=(A−B)(A2+AB+B2)Sign Pattern (SOAP)Same (−), Opposite (+), Always Positive (+)Trinomial StructureAll three terms in (A2+AB+B2) are positiveMiddle Term CheckThe middle term is +AB (not 2AB!)Order StrategyFor x6−y6, always apply difference of squares first!\begin{array}{|l|l|} \hline \textbf{Identity Name} & \text{Identity 7: Difference of Two Cubes} \\ \hline \textbf{Factoring Formula} & A^3 - B^3 = (A - B)(A^2 + AB + B^2) \\ \textbf{Sign Pattern (SOAP)} & \textbf{S} \text{ame } (-), \ \textbf{O} \text{pposite } (+), \ \textbf{A} \text{lways } \textbf{P} \text{ositive } (+) \\ \textbf{Trinomial Structure} & \text{All three terms in } (A^2 + AB + B^2) \text{ are positive} \\ \textbf{Middle Term Check} & \text{The middle term is } +AB \text{ (not } 2AB\text{!)} \\ \textbf{Order Strategy} & \text{For } x^6 - y^6\text{, always apply difference of squares first!} \\ \hline \end{array}

Test yourself

What is the completely factored form of 8a3−278a^3 - 27?

  1. (2a−3)(4a2+6a+9)(2a - 3)(4a^2 + 6a + 9)
  2. (2a−3)(4a2−6a+9)(2a - 3)(4a^2 - 6a + 9)
  3. (2a−3)3(2a - 3)^3
  4. (2a−3)(4a2+12a+9)(2a - 3)(4a^2 + 12a + 9)

Which expression is equivalent to x3−1x−1\frac{x^3 - 1}{x - 1} for all x≠1x \ne 1?

  1. x2−x+1x^2 - x + 1
  2. x2+x+1x^2 + x + 1
  3. x2−1x^2 - 1
  4. (x+1)2(x + 1)^2

When factoring x6−64x^6 - 64, what is the most efficient first step on paper?

  1. Factor as a difference of cubes: (x2)3−43(x^2)^3 - 4^3
  2. Factor as a difference of squares: (x3)2−82(x^3)^2 - 8^2
  3. Factor out x2x^2
  4. Split the middle term