MathorynMathematical Formula Database

Algebra

Square of a Difference

The square of a difference identity expands (a−b)2(a-b)^2. Together with the square of a sum it is the basis of completing the square and of many algebraic simplifications.

(a−b)2=a2−2ab+b2(a-b)^2=a^2-2ab+b^2
LaTeX(a-b)^2=a^2-2ab+b^2

Variables

aa
first term
bb
second term

Example

Compute 98298^2.

  1. Write 98=100−298=100-2.
  2. (100−2)2=10000−400+4(100-2)^2=10000-400+4.

Answer: 982=960498^2=9604.

Related formulas