Most algebraic identities are one-way tools — you expand a bracket, you simplify, you move on. The difference of squares is different. It runs both ways, and half of your school algebra — factoring quadratics, rationalising surds, computing limits, simplifying trig — comes down to spotting either a^2 - b^2 or (a - b)(a + b) and flipping it. Recognition on sight is the skill. Expansion-by-multiplication is the long way.

The identity in both directions

a^2 - b^2 \;=\; (a - b)(a + b).

Read left-to-right, this is factorisation: a difference of two squares splits into two brackets. Read right-to-left, this is expansion: two conjugate brackets multiply out into a difference of squares. Both directions are used constantly, and knowing which one you need in a given problem is most of the skill.

The recognition cues

Train your eye to fire on any of these patterns.

What you save

Consider (x + 7)(x - 7). The slow student FOILs it:

(x + 7)(x - 7) = x^2 - 7x + 7x - 49 = x^2 - 49.

Four multiplications, two cancellations, one line to write out. The fast student sees "conjugate pair — difference of squares" and writes x^2 - 49 directly. Zero multiplications, no cancellation to track.

Over a full three-hour paper with dozens of algebraic manipulations, the seconds saved per recognition add up to several minutes. On a problem where the identity is nested two levels deep, the slow student is still writing while the fast student has moved on.

Why recognition is faster than expansion: the identity is symmetrical in a way FOIL is not. FOIL produces four terms, two of which cancel. Recognising the identity skips the middle cancellation entirely — you go straight to the two surviving terms. Every time the middle cross-terms cancel, you have wasted the effort of writing them down.

A nested example

Factor x^4 - 81 completely.

The slow approach is to try rational roots, polynomial long division, or guess-and-check. The fast approach is the recognition pyramid.

Final form: x^4 - 81 = (x - 3)(x + 3)(x^2 + 9).

Three difference-of-squares recognitions, fully factored in under 30 seconds. A student who tries to polynomial-divide will spend four or five minutes and still might get it wrong.

The difference of squares factored as the area between two squaresA large square of side a with a smaller square of side b cut from one corner, leaving an L-shaped region. A dotted line shows the L-shape being cut and rearranged into a single rectangle of width a plus b and height a minus b. A caption says the area a squared minus b squared equals the rectangle a minus b times a plus b. a a b b a² − b² (a − b)(a + b) a + b a − b
The L-shaped region of area $a^2 - b^2$ can be cut and rearranged into a single rectangle of width $a + b$ and height $a - b$. The identity is an area statement, not a formula to memorise.

Try it — the conjugate collapse

Interactive difference of squares showing FOIL and the identity agreeA draggable point with coordinates a and b. Above, three readouts show: the full expansion of a plus b times a minus b as four terms; the same expression collapsed to a squared minus b squared; and both numerical values for the current a and b. The two readouts always agree. a b drag in any direction
Drag the point to change both $a$ and $b$. The four-term FOIL expansion and the two-term identity always give the same number. The middle two terms of FOIL — $-ab$ and $+ab$ — cancel silently; the identity skips that cancellation.

The same move, dressed as rationalisation

When you "rationalise" a surd denominator like \tfrac{1}{\sqrt{5} - \sqrt{3}}, you multiply top and bottom by the conjugate \sqrt{5} + \sqrt{3}:

\frac{1}{\sqrt{5} - \sqrt{3}} \cdot \frac{\sqrt{5} + \sqrt{3}}{\sqrt{5} + \sqrt{3}} \;=\; \frac{\sqrt{5} + \sqrt{3}}{(\sqrt{5})^2 - (\sqrt{3})^2} \;=\; \frac{\sqrt{5} + \sqrt{3}}{5 - 3} \;=\; \frac{\sqrt{5} + \sqrt{3}}{2}.

The step (\sqrt{5} - \sqrt{3})(\sqrt{5} + \sqrt{3}) = 5 - 3 is the difference of squares identity. Rationalisation is not a separate technique; it is the identity applied in the "expand" direction to a particular pair of factors. Once you see this, every conjugate-multiplication in your textbook is the same move wearing a different hat.

When the identity is invisible at first

Sometimes the squares are not obvious until you rewrite. A few common hideouts:

The move is always: look at the two things separated by a minus, and ask "is each a perfect square of something simpler?" If yes, factor.

The warning — a sum of squares does not factor (over the reals)

a^2 + b^2 is not factorable over real numbers. Students sometimes confidently write a^2 + b^2 = (a + b)(a - b), which is flat wrong — the right side is a^2 - b^2. The plus is fatal. If the question requires factoring a sum of squares, either the expression is prime (leave it), or you need complex numbers (a^2 + b^2 = (a + bi)(a - bi)).

Common mistakes

Summary

Related: Operations and Properties · Algebraic Identities · Sanity Check: (a+b)² Is Never a² + b² — If You Wrote That, Back Up · Spot a(b + c) and Decide: Factor It Out or Expand It