Difference of Squares
A difference of squares is any expression that looks like — one perfect square minus another. Expressions like , , and all fit. They matter because they follow one clean pattern: . Learn that one identity and you can multiply these binomials instantly and factor them instantly, no FOIL required.
The pattern shows up everywhere in Algebra 1 — factoring, solving quadratics, simplifying fractions with variables. It's also the fastest pattern on any test, because once you recognize it there's nothing left to compute except two square roots.
Why the middle terms cancel
Multiply with FOIL and watch what happens: , then , then , then . The two middle terms, and , are opposites — they cancel completely. What's left is just .
That cancellation is the whole trick. It only happens because the two binomials have the same two terms with opposite signs between them. cancels; does not.
How to recognize one
An expression is a difference of squares when it passes three checks: exactly two terms, a subtraction between them, and both terms are perfect squares. passes: is a square and . So does , because and .
To factor, take the square root of each term and write the answer twice — once with a plus, once with a minus: . The order of the factors doesn't matter.
Watch for a common factor first. doesn't look like two perfect squares, but pulling out the gives , and now the inside factors: . Always check for a greatest common factor before checking the pattern.
A sum of squares does not factor
The pattern needs the minus sign. is a sum of squares, and it does not factor over the real numbers — there is no pair of binomials with real coefficients that multiplies to it. If you try you get , which has a middle term. On a multiple-choice question, staying unfactored is often the point being tested.
Worked examples
Example 1: multiplying with the pattern
Multiply .
Answer:
Example 2: factoring a basic difference of squares
Factor .
Answer:
Example 3: a coefficient on the squared term
Factor .
Answer:
Example 4: pull out the common factor first
Factor completely.
Answer:
Try one yourself
Common questions
How do I know a number is a perfect square?
It's the square of a whole number: For variable terms, any even exponent is a perfect square — . If both terms pass this check and there's a minus between them, the pattern applies.
Does give the same answer as ?
Yes. Multiplication order doesn't matter, so both equal . When you factor, you can write the plus factor or the minus factor first.
Can I factor ?
Not with this pattern, because is not a perfect square. In Algebra 1, a two-term expression only factors this way when both terms are perfect squares. stays as it is (you'd need square roots of non-perfect squares to break it down, which comes later).
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.