Difference of squares
Multiply by in your head. It looks like a hard, two-digit multiplication — until you notice both numbers sit exactly away from . Write them as and the answer drops out instantly as , no long multiplication needed. That shortcut works because of one of the four core identities of Class 8 algebra: the difference of squares, . This identity says that a sum times a difference of the same two terms always collapses to just the difference of their squares — no middle term survives. It is the fastest of all the algebraic identities to expand, the standard trick for mental arithmetic on numbers equally spaced around a round number, and — read backwards — the single most useful factorising tool in the very next chapter, where an expression like is instantly seen as and rewritten as . It sits alongside and as one of the four standard identities every Class 8 student is expected to know cold, but it behaves differently from the other two: their expansions keep a middle term, while this one loses it entirely. That single difference is what makes it worth studying on its own, separately from the two square identities.
A product of a sum and a difference of the same two terms, , always collapses to because the two middle terms of the expansion, and , are equal and opposite and cancel exactly.
The core idea
It comes straight from the distributive law. Expand term by term, the same way you would expand any product of two binomials, and watch what happens to the middle terms.
where: and are any two terms — numbers, variables, or expressions — and , are the cross terms produced by expanding the brackets. Because and are equal in size and opposite in sign, they cancel completely, leaving only
Only two terms survive, not three. This is what makes the identity special. Compare it with the two square identities from earlier in the chapter, where the middle term does not cancel:
where: in both square identities the two middle terms are the same sign, so they add up to or instead of cancelling. Difference of squares is the only one of the three identities whose product has just two terms, both perfect squares, joined by a minus sign — that "two terms, both squares, minus in between" shape is the fastest way to recognise where the identity applies, whether you are expanding a product or, later, factorising an expression.
It runs in both directions. Read left to right, lets you expand a product without multiplying term by term. Read right to left, lets you factorise any expression that is one perfect square minus another: the answer is always (sum of the square roots) times (difference of the square roots). Both readings are the same fact, and both are tested constantly in Class 8 — expansion in this chapter, factorisation in the very next one.
It is the reason "equally spaced" multiplication tricks work. Whenever two numbers being multiplied are the same distance above and below some convenient middle value , write them as and and the product becomes , which is usually far easier to compute than the original multiplication.
It also works when or is itself an algebraic expression, not just a single letter. For instance, taking and in gives immediately, with no need to guess factor pairs by trial. The identity does not care whether and are whole numbers, decimals, fractions, or expressions containing a variable — the only requirement is that the two brackets being multiplied (or the two terms being subtracted) genuinely share the same and the same .
Show, starting only from the distributive law applied twice, that the product of a sum and a difference of the same two terms always reduces to exactly two terms, , with the cross terms cancelling completely regardless of what and stand for.
Step 1. Treat as a single quantity and distribute the first bracket over it, the same way you would expand for any :
Step 2. Distribute over and over separately, multiplying each term inside the brackets:
Step 3. Add the two results from Step 2 back together, keeping every term:
Step 4. Identify the two middle terms, and . They involve the exact same product with opposite signs, so they cancel identically, for any values of and :
Step 5. What remains after cancellation is the final identity, valid for every choice of and — numbers, variables, or larger expressions substituted in their place:
Worked example
Expand , and then use the identity to evaluate without squaring either number.
Step 1. Match against the pattern , taking and — both brackets share exactly the same two terms, and , with only the sign before the different.
Step 2. Compute and separately: and .
Step 3. Apply the identity directly: .
Step 4. Check by full expansion, to confirm the middle terms really do cancel: . The and cancel, matching Step 3.
Step 5. Now run the identity backwards on . Treat it as with , , so . This avoids computing and and subtracting them separately. The two results, worked in opposite directions of the same identity, are and .
Competitive stretch
For , write the numbers as equally spaced around : and . Then , found mentally in two steps instead of a full decimal multiplication. The same trick handles : the two numbers sit away from , so , computed in seconds without ever multiplying by directly. Recognising the "equally spaced around a round number" shape is the whole skill — once you spot it, the identity does the rest of the work.
Common traps
- Applying the shortcut to — a sum of two squares has no such simple factorisation over ordinary numbers; the identity works only for a difference.
- Forgetting that both brackets must share exactly the same two terms; is an ordinary product of two different binomials, not a difference-of-squares pattern, because the second terms are not the same.
- Sign errors when reading off and from a subtraction like : the factorisation is , never .
- Trying to force the identity onto non-square terms, such as treating as — surds are outside the Class 8 syllabus, so only use this identity when both terms are recognisable perfect squares.
- Skipping the check step when a question asks you to "verify" or "expand and confirm" — always be ready to re-expand term by term as a quick sanity check, since a single sign slip while identifying and silently produces the wrong answer.
Ask the tutor: Want to see how this same identity turns or into an instant mental calculation, or try a few more factorisation problems from the next chapter?
Why does the middle term disappear only in this identity and not in the square identities?
In the two cross terms produced by expansion are and — same size, opposite sign, so they cancel to zero. In both cross terms come out as , so they add to instead of cancelling; the same happens with a in . The sign pattern of the two brackets is what decides whether the middle term survives or vanishes.
How do I know whether to expand forwards or factorise backwards when I see an expression?
Look at what you are given. If you already have two brackets that look like — the same two terms with opposite signs on the second — expand forwards to . If instead you are given a single expression that is one perfect square minus another, like or , factorise backwards into using the square roots of the two terms.
Does this identity work if a or b is negative, or a decimal, or a whole expression like 3x?
Yes — the derivation never assumes and are positive whole numbers; it only relies on the distributive law, which holds for any real numbers or algebraic expressions. That is why it applies equally to , to decimals like , and to larger algebraic terms such as . If is negative, simply substitute its negative value in and let the signs work out on their own — you never need a separate rule for that case.