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

What is Difference of two squares?

Short answer

The difference of two squares is the identity a squared minus b squared equals (a minus b) times (a plus b).

Type
Formula
First learned
Grade 8
Also called
hằng đẳng thức hiệu hai bình phương, a bình phương trừ b bình phương
In English
difference of two squares

Formulas

A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B)

Explanation

Difference of two squares is a familiar identity: A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B). It lets you write the difference of two squares as the product of a difference and a sum.

This identity is true for all expressions A, B. You can use it to calculate quickly or to factorise the polynomial.

For example, 992−12=(99−1)(99+1)=98⋅100=980099^2 - 1^2 = (99 - 1)(99 + 1) = 98 \cdot 100 = 9800.

Examples

Example 1

Calculate quickly 1012−992101^2 - 99^2.

See the solution to example 1

1012−992=(101−99)(101+99)=2⋅200=400101^2 - 99^2 = (101 - 99)(101 + 99) = 2 \cdot 200 = 400.

Example 2

Factorise the polynomial x2−4x^2 - 4.

See the solution to example 2

x2−4=x2−22=(x−2)(x+2)x^2 - 4 = x^2 - 2^2 = (x - 2)(x + 2).

Common mix-ups

  • You must not write A2−B2=(A−B)2A^2 - B^2 = (A - B)^2, because (A−B)2=A2−2AB+B2(A - B)^2 = A^2 - 2AB + B^2.
  • Distinguish this from the sum of two squares A2+B2A^2 + B^2: there is no general identity A2+B2=(A+B)2A^2 + B^2 = (A + B)^2; some specific expressions can still be factorised by adding and subtracting.

Where the name comes from

The name describes exactly the form of the identity: the difference of two squares.

Learn it in these lessons