Key Points
The difference of squares formula is , factoring a subtraction of two squares into two brackets.
Expanding cancels the two middle terms, and , which is why no middle term survives.
The sum of squares does not factor over the real numbers, so the pattern works only for subtraction.
The formula turns awkward multiplications into easy ones, since becomes .
Either or can itself be a compound expression, so factors twice by applying the pattern again.
What Is the Difference of Squares Formula?
The difference of squares formula factors any expression that is one square subtracted from another:
It is one member of the standard family of algebraic identities. This article treats that one identity in depth; the algebraic identities page sets out the family together.
Why the Middle Terms Vanish
Multiply the two brackets out term by term and the structure becomes obvious:
The two middle terms are and . Since , they are equal in size and opposite in sign, so they cancel exactly and leave .
That cancellation is the whole mechanism, and it is also why the sum of squares does not factor this way. To get the middle terms would still have to cancel while the last term came out positive, which would need to become . No pair of real brackets does that.
Variable Key
Symbol | Meaning | Unit or type | Notes |
|---|---|---|---|
square root of the first term | any expression | can itself be compound | |
square root of the second term | any expression | can itself be compound | |
the difference of squares | expression | the form to recognise | |
the factored form | expression | order of brackets does not matter |
Examples of the Difference of Squares Formula
Example 1
Factor .
Here and , since :
Final answer:
Example 2
Factor .
The pattern is fresh in mind, so applying it gives . Expand that to check:
That is , not . The sign of the final term came out negative, because the identity only ever produces a subtraction.
A sum of two squares has no factorisation over the real numbers, so is already in its simplest real form.
Final answer: does not factor over the reals. The difference of squares pattern requires a minus sign between the terms.
Example 3
Factor .
Both terms are squares, with and :
Final answer:
Example 4
Factor completely.
First pass takes and :
The second bracket is itself a difference of squares, so apply the pattern again:
Final answer:
The first bracket is a sum of squares and stops there, which is the signal that the factorisation is complete over the reals.
Example 5
Compute mentally.
Both numbers sit 3 away from 100, so write them as and :
Final answer: 9,991
Any pair of numbers equally spaced either side of a round figure multiplies this way, which turns a two-digit multiplication into a subtraction.
Don't Confuse This With the Other Square Identities
Identity | Expansion | Middle term |
|---|---|---|
cancels | ||
no real factorisation | n/a |
The first row is the only one of the four that factors a subtraction into two different brackets. The two squared-bracket rows produce a middle term rather than losing one, which is the quickest way to tell them apart.
Where Do Students Trip Up on the Difference of Squares?
Mistake 1: Applying the pattern to a sum of squares
Where it slips in: The two terms are squares and the formula is memorable, so the sign between them gets overlooked.
Don't do this:
The correct way: Check the sign first. Only factors this way, and expands back to .
Students who expand their own answer before moving on catch this immediately, because the expansion returns a minus sign that was not in the question. Expanding a factorisation is a complete check, not a partial one, and it costs one line.
Mistake 2: Missing a common factor first
Where it slips in: The expression looks like a difference of squares, so the pattern gets applied before anything else.
Don't do this: Factor as .
The correct way: Take out the common factor 2 first, giving . Checking for a common factor before any identity keeps the brackets free of surds.
Mistake 3: Stopping after one application
Where it slips in: The first factorisation looks finished, and the resulting brackets are not re-examined.
Don't do this: Leave as .
The correct way: Test every bracket again. The factors further into , and only a sum of squares or a non-square tells you to stop.
Key Takeaways
The difference of squares formula is .
The middle terms cancel because and are equal and opposite, which is the whole mechanism.
A sum of squares does not factor over the reals, so the minus sign is a precondition rather than a detail.
Check for a common factor first, then apply the pattern repeatedly until only sums of squares remain.
To work through algebraic identities with a teacher, explore an algebra tutor or math classes online.
A Practical Next Step
Factor and completely. Then compute mentally using the identity, and expand each answer to confirm it.
Want a live Bhanzu trainer to walk through more algebra problems? Book a free demo class.
Read More
Was this article helpful?
Your feedback helps us write better content