MathorynMathematical Formula Database

Algebra

Difference of Cubes

The difference of cubes identity factors a3−b3a^3-b^3. It is used when factoring polynomials such as x3−8x^3-8 and shows that a−ba-b divides a3−b3a^3-b^3.

a3−b3=(a−b)(a2+ab+b2)a^3-b^3=(a-b)(a^2+ab+b^2)
LaTeXa^3-b^3=(a-b)(a^2+ab+b^2)

Variables

aa
first cube root
bb
second cube root

Example

Factor x3−8x^3-8 and check it at x=5x=5.

  1. x3−8=x3−23=(x−2)(x2+2x+4)x^3-8=x^3-2^3=(x-2)(x^2+2x+4).
  2. At x=5x=5: 125−8=117125-8=117 and (5−2)(25+10+4)=3⋅39=117(5-2)(25+10+4)=3\cdot 39=117.

Answer: x3−8=(x−2)(x2+2x+4)x^3-8=(x-2)(x^2+2x+4).

Related formulas