Skip to content
LoveToCalc

Identity — what does that mean?

Difference of squares

A sum times its own difference. The middle terms cancel, so only two terms are left.

In Swedish: Konjugatregeln

(a+b)(a−b)=a²−b²

a
First term
b
Second term
A square with side a from which a smaller square with side b has been cut out of one corner. What is left, shaded, has the area a² − b². Cut it along the line and turn one piece, and the pieces make a rectangle with sides a + b and a − b.
Show why the formula is true
  1. Multiply every term in the first bracket by every term in the second.

    (a+b)(a−b)=a²−ab+ba−b²

  2. The same term, ab, was added and taken away again, so the pair cancels.

    a²−ab+ba−b²=a²−b²

Practice questions

Work out

(20+3)(20−3)

The rule

Two brackets holding the same two numbers, a plus in one and a minus in the other. Brackets like that are called conjugates, which is where the rule gets its other name.

The result has only two terms. The other two squaring rules give three.

Why the middle terms disappear

Multiply it out:

(a + b)(a − b) = a² − ab + ba − b²

The middle terms are −ab and +ba. Same number, opposite signs, so they cancel to nothing:

(a + b)(a − b) = a² − b²

Compare that with the other two rules, where the middle terms reinforce each other instead:

Expression Middle terms Result
(a + b)² +ab and +ba a² + 2ab + b²
(a − b)² −ab and −ba a² − 2ab + b²
(a + b)(a − b) −ab and +ba a² − b²

Factorising with it

Backwards, the rule is a tool: every difference of two squares splits into two factors.

It is often the first move when a fraction is to be cancelled down or a quadratic solved without a formula.

Mental arithmetic

The rule makes certain multiplications easy to do in your head. Look for two numbers the same distance from a round one:

98 · 102 = (100 − 2)(100 + 2) = 10,000 − 4 = 9,996

47 · 53 = (50 − 3)(50 + 3) = 2,500 − 9 = 2,491

19 · 21 = (20 − 1)(20 + 1) = 400 − 1 = 399

Common mistakes

Common questions

Does the order of the brackets matter? No. (a − b)(a + b) gives the same thing — multiplication is commutative. The result is still written a² − b², with the square of the term carrying the plus sign in both brackets first.

Why “conjugate”? Conjugate here means paired: a + b and a − b belong together and differ only by one sign. The same word is used for complex numbers for the same reason.

Last reviewed October 6, 2026 ·How pages are reviewed

Ready-made worksheets with this formula

Sheets that ask this formula, with their answer keys. Open one to see the questions or print it.

High school

AlgebraAll formulas