Skip to content
Gioi Toan
Start learning
Algebra tiles: one large square, two long bars and three small squares

What is Cube of a difference?

Short answer

The cube of a difference is an identity that expands the cube of the difference of two expressions into four terms with alternating plus and minus signs.

Type
Formula
First learned
Grade 8
Also called
hằng đẳng thức lập phương của một hiệu, hằng đẳng thức thứ năm
In English
cube of a difference

Formulas

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

Explanation

The cube of a difference is an identity that lets us expand (A−B)3(A - B)^3 into a sum of four terms. For any two expressions AA and BB, we have (A−B)3=A3−3A2B+3AB2−B3(A - B)^3 = A^3 - 3A^2B + 3AB^2 - B^3.

The signs in the expansion alternate: A3A^3 has a plus sign, 3A2B3A^2B has a minus sign, 3AB23AB^2 has a plus sign, B3B^3 has a minus sign. The exponent of AA goes down from 3 to 0, and the exponent of BB goes up from 0 to 3.

This formula is used to expand quickly, simplify expressions and do mental calculation. For example (x−2)3=x3−6x2+12x−8(x - 2)^3 = x^3 - 6x^2 + 12x - 8.

Examples

Example 1

Expand (x−2)3(x - 2)^3.

See the solution to example 1

Apply the formula with A=xA = x, B=2B = 2: (x−2)3=x3−3⋅x2⋅2+3⋅x⋅22−23=x3−6x2+12x−8(x - 2)^3 = x^3 - 3 \cdot x^2 \cdot 2 + 3 \cdot x \cdot 2^2 - 2^3 = x^3 - 6x^2 + 12x - 8.

Example 2

Calculate quickly 99399^3.

See the solution to example 2

Write 99=100−199 = 100 - 1. We have (100−1)3=1003−3⋅1002⋅1+3⋅100⋅12−13=1000000−30000+300−1=970299(100 - 1)^3 = 100^3 - 3 \cdot 100^2 \cdot 1 + 3 \cdot 100 \cdot 1^2 - 1^3 = 1000000 - 30000 + 300 - 1 = 970299.

Common mix-ups

  • The signs of the second and fourth terms are minus, not plus.
  • The coefficient is 3, not 2; this is a cube, so the coefficient is different from the square of a difference.
  • Do not write (A−B)3=A3−B3(A - B)^3 = A^3 - B^3; you must expand all four terms.

Learn it in these lessons