MathorynMathematical Formula Database

Algebra

Difference of Squares

The difference of squares identity factors the difference of two perfect squares into a product of a sum and a difference. It is one of the most common factoring patterns and also makes mental arithmetic easier.

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

Variables

aa
first term (square root of the first square)
bb
second term (square root of the second square)

Example

Compute 522−48252^2-48^2 without squaring.

  1. a=52, b=48a=52,\ b=48.
  2. (52−48)(52+48)=4⋅100(52-48)(52+48)=4\cdot 100.

Answer: 522−482=40052^2-48^2=400.

Related formulas