MathorynMathematical Formula Database

Algebra

Cube of a Difference

The cube of a difference expands (a−b)3(a-b)^3 into four terms whose coefficients 1,3,3,11,3,3,1 come from Pascal's triangle with alternating signs. It is used when expanding brackets, simplifying polynomial expressions and for quick mental cubing of numbers just below a round number.

(a−b)3=a3−3a2b+3ab2−b3(a-b)^3=a^3-3a^2b+3ab^2-b^3
LaTeX(a-b)^3=a^3-3a^2b+3ab^2-b^3

Variables

aa
first term
bb
second term (subtracted)

Example

Compute 99399^3.

  1. Write 99=100−199=100-1, so a=100, b=1a=100,\ b=1.
  2. (100−1)3=1000000−3⋅10000+3⋅100−1(100-1)^3=1000000-3\cdot10000+3\cdot100-1.
  3. =1000000−30000+300−1=1000000-30000+300-1.

Answer: 993=97029999^3=970299.

Related formulas