TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Identity 5: Cube of a Difference

Identity 5: Cube of a Difference

When multiplying algebraic expressions on paper, repeated multiplication quickly becomes tedious. Just as we discovered with Identity 4: Cube of a Sum, raising a two-term expression (a binomial) to the third power produces a predictable four-term polynomial.

In this lesson, you will master Identity 5: The Cube of a Difference. We will uncover why the signs alternate between positive and negative, how to compute these expansions cleanly on paper, and how to use this identity to evaluate difficult three-digit powers in your head without touching a calculator.


1. Concepts & Paper Visuals: The Identity Unveiled

The algebraic identity for the cube of a difference states:

(A−B)3=A3−3A2B+3AB2−B3(A - B)^3 = A^3 - 3A^2B + 3AB^2 - B^3

Notice the structure of this expansion:

  1. Four terms: A cubic binomial expands into a cubic polynomial with four distinct terms.
  2. Descending powers of AA: The exponent of AA steps down: A3→A2→A1→A0A^3 \to A^2 \to A^1 \to A^0 (where A0=1A^0 = 1).
  3. Ascending powers of BB: The exponent of BB steps up: B0→B1→B2→B3B^0 \to B^1 \to B^2 \to B^3.
  4. Binomial coefficients: The numerical coefficients are 1,3,3,11, 3, 3, 1, which correspond exactly to Row 3 of Pascal's Triangle.
  5. Alternating signs: The signs strictly alternate:
    + A3− 3A2B+ 3AB2− B3\mathbf{+} \, A^3 \quad \mathbf{-} \, 3A^2B \quad \mathbf{+} \, 3AB^2 \quad \mathbf{-} \, B^3

Algebraic Derivation on Paper

To prove this identity on paper, we treat (A−B)3(A - B)^3 as the product of (A−B)2(A - B)^2 and (A−B)(A - B).

Recall Identity 2: Square of a Difference:

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

Now, let us multiply this trinomial by (A−B)(A - B) using the distributive property:

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

Now group like terms together on paper:

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

Why Do the Signs Alternate?

Students often wonder why the third term +3AB2+3AB^2 has a positive sign while the second and fourth terms are negative.

We can see this clearly by substituting (−B)(-B) into the formula for the Cube of a Sum, (A+X)3=A3+3A2X+3AX2+X3(A + X)^3 = A^3 + 3A^2 X + 3A X^2 + X^3, where X=(−B)X = (-B):

  • First term: A3A^3 is positive.
  • Second term: 3A2(−B)1=−3A2B3A^2(-B)^1 = -3A^2B (an odd power of a negative is negative).
  • Third term: 3A(−B)2=3A(+B2)=+3AB23A(-B)^2 = 3A(+B^2) = +3AB^2 (an even power of a negative is positive!).
  • Fourth term: (−B)3=−B3(-B)^3 = -B^3 (an odd power of a negative is negative).

The Compact Factored Form

By factoring out −3AB-3AB from the two middle terms, we obtain another very useful form for mental arithmetic and factoring:

(A−B)3=A3−B3−3AB(A−B)(A - B)^3 = A^3 - B^3 - 3AB(A - B)

2. Step-by-Step Notebook Examples

When calculating on paper, always write down your values for AA and BB first. Then, substitute them with protective parentheses before simplifying powers and coefficients.

Example 1: Basic Binomial Expansion

Problem: Expand (x−3)3(x - 3)^3 on paper.

  • Step 1: Identify AA and BB.
    A=x,B=3A = x, \quad B = 3
  • Step 2: Write out the skeleton formula with alternating signs.
    (A−B)3=(A)3−3(A)2(B)+3(A)(B)2−(B)3(A - B)^3 = (A)^3 - 3(A)^2(B) + 3(A)(B)^2 - (B)^3
  • Step 3: Substitute values into the skeleton.
    (x−3)3=(x)3−3(x)2(3)+3(x)(3)2−(3)3(x - 3)^3 = (x)^3 - 3(x)^2(3) + 3(x)(3)^2 - (3)^3
  • Step 4: Compute the numerical parts.
    (x)3=x3−3(x2)(3)=−9x2+3(x)(9)=+27x−(27)=−27\begin{aligned} (x)^3 &= x^3 \\ -3(x^2)(3) &= -9x^2 \\ +3(x)(9) &= +27x \\ -(27) &= -27 \end{aligned}
  • Step 5: Combine into the final polynomial.
    (x−3)3=x3−9x2+27x−27(x - 3)^3 = x^3 - 9x^2 + 27x - 27

Example 2: Coefficients on Both Terms

Problem: Expand (2x−5y)3(2x - 5y)^3.

  • Step 1: Identify AA and BB.
    A=2x,B=5yA = 2x, \quad B = 5y
  • Step 2: Write out the formula with parentheses.
    (2x−5y)3=(2x)3−3(2x)2(5y)+3(2x)(5y)2−(5y)3(2x - 5y)^3 = (2x)^3 - 3(2x)^2(5y) + 3(2x)(5y)^2 - (5y)^3
  • Step 3: Evaluate powers of each term first (Order of Operations).
    (2x)3=23⋅x3=8x3(2x)2=4x2(5y)2=25y2(5y)3=53⋅y3=125y3\begin{aligned} (2x)^3 &= 2^3 \cdot x^3 = 8x^3 \\ (2x)^2 &= 4x^2 \\ (5y)^2 &= 25y^2 \\ (5y)^3 &= 5^3 \cdot y^3 = 125y^3 \end{aligned}
  • Step 4: Multiply out the middle products.
    −3⋅(4x2)⋅(5y)=−(3⋅4⋅5)x2y=−60x2y+3⋅(2x)⋅(25y2)=+(3⋅2⋅25)xy2=+150xy2\begin{aligned} -3 \cdot (4x^2) \cdot (5y) &= -(3 \cdot 4 \cdot 5) x^2 y = -60x^2 y \\ +3 \cdot (2x) \cdot (25y^2) &= +(3 \cdot 2 \cdot 25) x y^2 = +150x y^2 \end{aligned}
  • Step 5: Write the complete four-term expansion.
    (2x−5y)3=8x3−60x2y+150xy2−125y3(2x - 5y)^3 = 8x^3 - 60x^2 y + 150xy^2 - 125y^3

Example 3: Terms with Higher Exponents

Problem: Expand (3a2−2b)3(3a^2 - 2b)^3.

  • Step 1: Identify AA and BB.
    A=3a2,B=2bA = 3a^2, \quad B = 2b
  • Step 2: Substitute into the identity.
    (3a2−2b)3=(3a2)3−3(3a2)2(2b)+3(3a2)(2b)2−(2b)3(3a^2 - 2b)^3 = (3a^2)^3 - 3(3a^2)^2(2b) + 3(3a^2)(2b)^2 - (2b)^3
  • Step 3: Simplify each component carefully.
    (3a2)3=33⋅(a2)3=27a6−3(3a2)2(2b)=−3(9a4)(2b)=−54a4b+3(3a2)(2b)2=+3(3a2)(4b2)=+36a2b2−(2b)3=−8b3\begin{aligned} (3a^2)^3 &= 3^3 \cdot (a^2)^3 = 27a^6 \\ -3(3a^2)^2(2b) &= -3(9a^4)(2b) = -54a^4 b \\ +3(3a^2)(2b)^2 &= +3(3a^2)(4b^2) = +36a^2 b^2 \\ -(2b)^3 &= -8b^3 \end{aligned}
  • Final Answer:
    (3a2−2b)3=27a6−54a4b+36a2b2−8b3(3a^2 - 2b)^3 = 27a^6 - 54a^4 b + 36a^2 b^2 - 8b^3

Example 4: Mental Arithmetic on Paper

Problem: Calculate 99399^3 without using long vertical multiplication or a calculator.

  • Step 1: Rewrite 9999 as a difference of round numbers.
    99=100−199 = 100 - 1
  • Step 2: Apply Identity 5 with A=100A = 100 and B=1B = 1.
    993=(100−1)3=1003−3(100)2(1)+3(100)(1)2−1399^3 = (100 - 1)^3 = 100^3 - 3(100)^2(1) + 3(100)(1)^2 - 1^3
  • Step 3: Calculate each term.
    1003=1,000,000−3(100)2(1)=−3(10,000)=−30,000+3(100)(1)2=+300−13=−1\begin{aligned} 100^3 &= 1{,}000{,}000 \\ -3(100)^2(1) &= -3(10{,}000) = -30{,}000 \\ +3(100)(1)^2 &= +300 \\ -1^3 &= -1 \end{aligned}
  • Step 4: Combine the positive and negative numbers on paper.
    Sum of positives: 1,000,000+300=1,000,300Subtract 30,000:1,000,300−30,000=970,300Subtract 1:970,300−1=970,299\begin{aligned} \text{Sum of positives: } & 1{,}000{,}000 + 300 = 1{,}000{,}300 \\ \text{Subtract } 30{,}000: & 1{,}000{,}300 - 30{,}000 = 970{,}300 \\ \text{Subtract } 1: & 970{,}300 - 1 = 970{,}299 \end{aligned}
  • Final Answer:
    993=970,29999^3 = 970{,}299

3. Common Mistakes & Paper Traps

When secondary students encounter (A−B)3(A - B)^3 on tests, three common traps cause lost marks:

Trap 1: Distributing the Exponent ("Freshman's Dream")

(A−B)3≠A3−B3(INCORRECT!)\mathbf{(A - B)^3 \ne A^3 - B^3 \quad \text{(INCORRECT!)}}

Never distribute an exponent across subtraction! Exponents do not distribute over addition or subtraction. You must include the two middle cross-terms: −3A2B+3AB2-3A^2B + 3AB^2.

Trap 2: Incorrect Middle Sign

Writing all minus signs:

(A−B)3≠A3−3A2B−3AB2−B3(INCORRECT!)\mathbf{(A - B)^3 \ne A^3 - 3A^2B - 3AB^2 - B^3 \quad \text{(INCORRECT!)}}

Remember that (−B)2=+B2(-B)^2 = +B^2. Therefore, the third term has two negative factors of BB multiplied together, making it positive +3AB2+3AB^2. The signs must alternate: +,−,+,−+ , -, +, -.

Trap 3: Squaring the Variable but Forgetting to Square the Coefficient

In the term 3(2x)2(5)3(2x)^2(5), writing 3⋅2x2⋅5=30x23 \cdot 2x^2 \cdot 5 = 30x^2 is incorrect. The entire base A=2xA = 2x is squared:

(2x)2=4x2  ⟹  3⋅(4x2)⋅5=60x2(2x)^2 = 4x^2 \implies 3 \cdot (4x^2) \cdot 5 = 60x^2

Always use parentheses around compound terms before evaluating powers.


4. Pencil & Paper Practice

Try these exercises on a sheet of lined paper before looking at the solutions.

Practice 1

Expand the binomial cube:

(4x−1)3(4x - 1)^3

??? success "Solution to Practice 1" 1. Identify A=4xA = 4x and B=1B = 1. 2. Write the formula: math (A - B)^3 = A^3 - 3A^2B + 3AB^2 - B^3 3. Substitute: math (4x - 1)^3 = (4x)^3 - 3(4x)^2(1) + 3(4x)(1)^2 - (1)^3 4. Simplify each term: * (4x)3=64x3(4x)^3 = 64x^3 * −3(16x2)(1)=−48x2-3(16x^2)(1) = -48x^2 * +3(4x)(1)=+12x+3(4x)(1) = +12x * −(1)3=−1-(1)^3 = -1 5. Final expanded form: math 64x^3 - 48x^2 + 12x - 1


Practice 2

Use Identity 5 to evaluate 48348^3 using round numbers:

(50−2)3(50 - 2)^3

??? success "Solution to Practice 2" 1. Let A=50A = 50 and B=2B = 2. 2. Substitute into Identity 5: math (50 - 2)^3 = 50^3 - 3(50^2)(2) + 3(50)(2^2) - 2^3 3. Evaluate each term: * 503=125,00050^3 = 125{,}000 * −3(2,500)(2)=−15,000-3(2{,}500)(2) = -15{,}000 * +3(50)(4)=+600+3(50)(4) = +600 * −23=−8-2^3 = -8 4. Combine step-by-step: * 125,000−15,000=110,000125{,}000 - 15{,}000 = 110{,}000 * 110,000+600=110,600110{,}000 + 600 = 110{,}600 * 110,600−8=110,592110{,}600 - 8 = 110{,}592 Answer: 110,592110{,}592


5. Summary & Formula Card

Identity NameIdentity 5: Cube of a DifferenceStandard Form(A−B)3=A3−3A2B+3AB2−B3Compact Factored Form(A−B)3=A3−B3−3AB(A−B)Sign Pattern+,−,+,−Pascal Coefficients1,3,3,1Key RuleAlways square/cube coefficients inside parentheses: (2x)3=8x3\begin{array}{|l|l|} \hline \textbf{Identity Name} & \text{Identity 5: Cube of a Difference} \\ \hline \textbf{Standard Form} & (A - B)^3 = A^3 - 3A^2B + 3AB^2 - B^3 \\ \textbf{Compact Factored Form} & (A - B)^3 = A^3 - B^3 - 3AB(A - B) \\ \textbf{Sign Pattern} & +, -, +, - \\ \textbf{Pascal Coefficients} & 1, 3, 3, 1 \\ \textbf{Key Rule} & \text{Always square/cube coefficients inside parentheses: } (2x)^3 = 8x^3 \\ \hline \end{array}

Test yourself

What is the fully expanded form of (x−4)3(x - 4)^3?

  1. x3−12x2+48x−64x^3 - 12x^2 + 48x - 64
  2. x3−64x^3 - 64
  3. x3−12x2−48x−64x^3 - 12x^2 - 48x - 64
  4. x3−4x2+16x−64x^3 - 4x^2 + 16x - 64

In the expansion of (3x−2y)3(3x - 2y)^3, what is the coefficient of the term xy2x y^2?

  1. −36-36
  2. +36+36
  3. +18+18
  4. −12-12

Why is the third term in (A−B)3=A3−3A2B+3AB2−B3(A - B)^3 = A^3 - 3A^2B + 3AB^2 - B^3 preceded by a plus sign instead of a minus sign?

  1. Because AA is cubed in the third term
  2. Because (−B)2=+B2(-B)^2 = +B^2, an even power of a negative number yields a positive product
  3. Because the coefficients in Pascal's triangle are all positive
  4. Because 33 is an odd number