TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Identity 6: Sum of Two Cubes

Identity 6: Sum of Two Cubes

In elementary algebra, students learn that a sum of two squares such as x2+9x^2 + 9 cannot be factored into real linear factors. Because of this, many students mistakenly assume that a sum of two cubes, such as x3+27x^3 + 27, cannot be factored either.

This is a misconception. While the sum of squares is prime over the real numbers, the sum of two cubes can always be factored into the product of a first-degree binomial and a second-degree trinomial.

In this lesson, you will master Identity 6: The Sum of Two Cubes, learn the memory aid known as SOAP, and discover how telescopic cancellation works when multiplying polynomials on paper.


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

The algebraic identity for the sum of two cubes is:

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

Look closely at the two factors on the right-hand side:

  1. The Binomial Factor (A+B)(A + B): Formed by the cube roots of each term with a plus sign.
  2. The Trinomial Factor (A2−AB+B2)(A^2 - AB + B^2): Formed by:
    • The square of the first term: A2A^2
    • The opposite of their product: −AB-AB (Notice there is no factor of 22)
    • The square of the second term: +B2+B^2

The SOAP Mnemonic

To remember the signs on paper during an exam, use the acronym SOAP:

LetterMeaningPlacement in FormulaSSameThe binomial has the same sign as the original sum: (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 sum: } (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

Why does multiplying a two-term binomial by a three-term trinomial collapse into only two terms? Let us write out the full multiplication on paper using the distributive law:

(A+B)(A2−AB+B2)=A(A2−AB+B2)+B(A2−AB+B2)=(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) \end{aligned}

Now align the terms vertically on lined paper to observe the cross-cancellation:

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, leaving only:

A3+B3A^3 + B^3

The Incomplete Square Trinomial

The second factor, A2−AB+B2A^2 - AB + B^2, resembles the perfect square trinomial A2−2AB+B2=(A−B)2A^2 - 2AB + B^2 = (A - B)^2, but it lacks the factor of 22.

For this reason, mathematicians call A2−AB+B2A^2 - AB + B^2 an incomplete square trinomial (or pseudo-square). Over the real numbers, this quadratic factor has a negative discriminant:

Δ=(−B)2−4(1)(B2)=B2−4B2=−3B2<0\Delta = (-B)^2 - 4(1)(B^2) = B^2 - 4B^2 = -3B^2 < 0

Because Δ<0\Delta < 0, the trinomial factor cannot be factored further using real numbers. Once you reach (A+B)(A2−AB+B2)(A + B)(A^2 - AB + B^2), your factoring on paper is complete!


2. Step-by-Step Notebook Examples

Example 1: Factoring a Monic Cubic Binomial

Problem: Factor x3+27x^3 + 27 completely on paper.

  • Step 1: Express each term as a perfect cube.
    x3=(x)3and27=33x^3 = (x)^3 \quad \text{and} \quad 27 = 3^3
    So A=xA = x and B=3B = 3.
  • Step 2: Write down the identity template.
    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=3B = 3.
    x3+27=(x+3)[(x)2−(x)(3)+(3)2]x^3 + 27 = (x + 3)\left[(x)^2 - (x)(3) + (3)^2\right]
  • Step 4: Simplify the trinomial terms.
    x3+27=(x+3)(x2−3x+9)x^3 + 27 = (x + 3)(x^2 - 3x + 9)

Example 2: Coefficients Greater than 1

Problem: Factor 8x3+125y38x^3 + 125y^3.

  • Step 1: Find the cube root of each compound term.
    • Cube root of 8x38x^3: 83⋅x33=2x\sqrt[3]{8} \cdot \sqrt[3]{x^3} = 2x
    • Cube root of 125y3125y^3: 1253⋅y33=5y\sqrt[3]{125} \cdot \sqrt[3]{y^3} = 5y
    • Thus: A=2xA = 2x and B=5yB = 5y.
  • Step 2: Write the binomial factor (A+B)(A + B).
    (2x+5y)(2x + 5y)
  • Step 3: Build the trinomial factor (A2−AB+B2)(A^2 - AB + B^2) using brackets.
    A2=(2x)2=4x2−AB=−(2x)(5y)=−10xy+B2=+(5y)2=+25y2\begin{aligned} A^2 &= (2x)^2 = 4x^2 \\ -AB &= -(2x)(5y) = -10xy \\ +B^2 &= +(5y)^2 = +25y^2 \end{aligned}
  • Step 4: Combine into the factored product.
    8x3+125y3=(2x+5y)(4x2−10xy+25y2)8x^3 + 125y^3 = (2x + 5y)(4x^2 - 10xy + 25y^2)

Example 3: Powers Higher Than 3 and Fractional Coefficients

Problem: Factor 64a6+127b364a^6 + \frac{1}{27}b^3.

  • Step 1: Rewrite each term as a cube.
    • For 64a664a^6: since (a2)3=a6(a^2)^3 = a^6 and 43=644^3 = 64, we have A=4a2A = 4a^2.
    • For 127b3\frac{1}{27}b^3: since (13)3=127\left(\frac{1}{3}\right)^3 = \frac{1}{27}, we have B=13bB = \frac{1}{3}b.
  • Step 2: Substitute into (A+B)(A2−AB+B2)(A + B)(A^2 - AB + B^2).
    (4a2+13b)[(4a2)2−(4a2)(13b)+(13b)2]\left(4a^2 + \frac{1}{3}b\right)\left[\left(4a^2\right)^2 - \left(4a^2\right)\left(\frac{1}{3}b\right) + \left(\frac{1}{3}b\right)^2\right]
  • Step 3: Simplify each term on paper.
    (4a2)2=16a4−(4a2)(13b)=−43a2b(13b)2=+19b2\begin{aligned} (4a^2)^2 &= 16a^4 \\ -\left(4a^2\right)\left(\frac{1}{3}b\right) &= -\frac{4}{3}a^2 b \\ \left(\frac{1}{3}b\right)^2 &= +\frac{1}{9}b^2 \end{aligned}
  • Step 4: Write the final factored expression.
    64a6+127b3=(4a2+13b)(16a4−43a2b+19b2)64a^6 + \frac{1}{27}b^3 = \left(4a^2 + \frac{1}{3}b\right)\left(16a^4 - \frac{4}{3}a^2 b + \frac{1}{9}b^2\right)

Example 4: Simplifying an Algebraic Fraction

Problem: Simplify the rational expression x3+64x+4\frac{x^3 + 64}{x + 4} on paper for x≠−4x \ne -4.

  • Step 1: Recognize the sum of two cubes in the numerator.
    x3+64=x3+43=(x+4)(x2−4x+16)x^3 + 64 = x^3 + 4^3 = (x + 4)(x^2 - 4x + 16)
  • Step 2: Substitute the factored form into the fraction.
    x3+64x+4=(x+4)(x2−4x+16)x+4\frac{x^3 + 64}{x + 4} = \frac{(x + 4)(x^2 - 4x + 16)}{x + 4}
  • Step 3: Cancel the common binomial factor (x+4)(x + 4).
    (x+4)(x2−4x+16)x+4=x2−4x+16\frac{\cancel{(x + 4)}(x^2 - 4x + 16)}{\cancel{x + 4}} = x^2 - 4x + 16

3. Common Mistakes & Paper Traps

Trap 1: Confusing (A+B)3(A + B)^3 with A3+B3A^3 + B^3

These two expressions look similar but represent completely different mathematical operations:

  • (A+B)3(A + B)^3 is the Cube of a Sum (a binomial raised to the 3rd power, which expands into four terms).
  • A3+B3A^3 + B^3 is the Sum of Two Cubes (two separate cubes added together, which factors into a binomial times a trinomial).
(A+B)3≠A3+B3\mathbf{(A + B)^3 \ne A^3 + B^3}

Trap 2: Inserting a 22 into the Middle Term

The most common exam error is writing:

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

Remember: the middle term is just −AB-AB, not −2AB-2AB! If you put a 22 in the middle, the cross terms will not cancel, and expanding will yield A3−A2B−AB2+B3A^3 - A^2B - AB^2 + B^3 instead of A3+B3A^3 + B^3.

Trap 3: Getting the Signs Backwards

Using the same sign everywhere:

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

Always verify with SOAP: the trinomial's middle term must be the opposite sign (−-).

Trap 4: Cube Root vs. Square Root Confusion

When working with 64x364x^3, students frequently write A=8xA = 8x because 64=8\sqrt{64} = 8. Always double-check:

643=4because4×4×4=64\sqrt[3]{64} = 4 \quad \text{because} \quad 4 \times 4 \times 4 = 64

So A=4xA = 4x, not 8x8x.


4. Pencil & Paper Practice

Practice 1

Factor completely on paper:

m3+216m^3 + 216

??? success "Solution to Practice 1" 1. Identify the cube roots: * m33=m\sqrt[3]{m^3} = m * 2163=6\sqrt[3]{216} = 6 (since 6×6×6=2166 \times 6 \times 6 = 216). * Thus A=mA = m and B=6B = 6. 2. Apply Identity 6: math A^3 + B^3 = (A + B)(A^2 - AB + B^2) 3. Substitute A=mA = m and B=6B = 6: math m^3 + 216 = (m + 6)\left(m^2 - m \cdot 6 + 6^2\right) 4. Simplify: math m^3 + 216 = (m + 6)(m^2 - 6m + 36)


Practice 2

Factor completely on paper:

27x3+127x^3 + 1

??? success "Solution to Practice 2" 1. Recognize 27x3=(3x)327x^3 = (3x)^3 and 1=131 = 1^3. 2. Here, A=3xA = 3x and B=1B = 1. 3. Binomial factor: (3x+1)(3x + 1). 4. Trinomial factor: * A2=(3x)2=9x2A^2 = (3x)^2 = 9x^2 * −AB=−(3x)(1)=−3x-AB = -(3x)(1) = -3x * +B2=+12=+1+B^2 = +1^2 = +1 5. Final factored product: math (3x + 1)(9x^2 - 3x + 1)


5. Summary & Formula Card

Identity NameIdentity 6: Sum of Two CubesFactoring FormulaA3+B3=(A+B)(A2−AB+B2)Mnemonic (SOAP)Same (+), Opposite (−), Always Positive (+)Middle Term RuleThe middle term of the trinomial is −AB (NO factor of 2!)IrreducibilityA2−AB+B2 is prime over the real numbers (Δ<0)\begin{array}{|l|l|} \hline \textbf{Identity Name} & \text{Identity 6: Sum of Two Cubes} \\ \hline \textbf{Factoring Formula} & A^3 + B^3 = (A + B)(A^2 - AB + B^2) \\ \textbf{Mnemonic (SOAP)} & \textbf{S} \text{ame } (+), \ \textbf{O} \text{pposite } (-), \ \textbf{A} \text{lways } \textbf{P} \text{ositive } (+) \\ \textbf{Middle Term Rule} & \text{The middle term of the trinomial is } -AB \text{ (NO factor of 2!)} \\ \textbf{Irreducibility} & A^2 - AB + B^2 \text{ is prime over the real numbers } (\Delta < 0) \\ \hline \end{array}

Test yourself

What is the correct factorization of x3+8x^3 + 8 on paper?

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

Which of the following is the trinomial factor when factoring 27y3+6427y^3 + 64?

  1. 9y2−24y+169y^2 - 24y + 16
  2. 9y2−12y+169y^2 - 12y + 16
  3. 3y2−12y+83y^2 - 12y + 8
  4. 9y2+12y+169y^2 + 12y + 16

Why does the middle term of the trinomial factor in A3+B3=(A+B)(A2−AB+B2)A^3 + B^3 = (A + B)(A^2 - AB + B^2) have a coefficient of −1-1 rather than −2-2?

  1. Because the discriminant of a cube must be zero
  2. Because with −AB-AB, the expanded cross-terms −A2B+A2B-A^2B + A^2B and AB2−AB2AB^2 - AB^2 cancel out exactly to zero
  3. Because AA and BB are both odd integers
  4. Because it is derived from Pascal's triangle Row 2