Special products
Seven identities that turn multiplying out brackets into a single line — and the same seven read right to left, which is factoring. The square of a sum and of a difference, the difference of squares, the cubes and the sum and difference of cubes, proved on a drawing and used for mental arithmetic.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
- Algebraic expressionsAn algebraic expression is a piece of notation where letters stand beside numbers. Learn the variable, the term and the coefficient, collect like terms, multiply brackets out — two binomials included — factor out the common term and evaluate an expression.
- PowersA power is shorthand for multiplying the same factor by itself. Learn the base and the exponent, the laws of exponents, powers of a product and of a quotient, zero and negative exponents, the monotonicity of exponentiation, and scientific notation.
Where this is used
Real situations where you count exactly the way this lesson teaches:
- Mental arithmetic at the tillThe product 98 · 102 is (100 − 2)(100 + 2), so 10,000 − 4 = 9,996. In the same way 47 · 53 = 50² − 3² = 2,500 − 9 = 2,491. Any product of two numbers sitting symmetrically around a round hundred or fifty collapses into a single subtraction.
- A plot of land and a wider gardenA square plot has a 40 m side. Widening it by 3 m on every side adds (40 + 3)² − 40² = 6 · 40 + 9 = 249 m², not 2 · 3 · 40 = 240 m² — the missing 9 m² is the little corner square that the square-of-a-sum formula remembers for you.
- Mechanics and braking energyThe energy that has to be shed braking from v₁ to v₂ is ½m(v₁² − v₂²) = ½m(v₁ − v₂)(v₁ + v₂). For a 1,000 kg car slowing from 20 m/s to 10 m/s that is 500 · 10 · 30 = 150,000 J — 150 kJ turned into heat in the brake pads.
- Programming and cheaper arithmeticTesting a² − b² = 0 over a million pairs costs two multiplications per pair — two million in total. Written as (a − b)(a + b) it costs one multiplication and two additions per pair: a million multiplications fewer, and an addition is markedly cheaper than a multiplication in a CPU.
All formulas
Square of a sum
the middle term is twice the product, not the product
Square of a difference
both squares positive, the minus sits on the middle term only
Difference of squares
the only one of these where the middle term disappears
Cube of a sum
coefficients 1, 3, 3, 1
Cube of a difference
alternating signs, starting with a plus
Difference of cubes
a plus on the middle term of the bracket
Sum of cubes
a minus on the middle term of the bracket
Multiplying can be done term by term and then collected. But the same computation comes back a dozen times a day and always ends the same way. Special products are those repeated results written down once — becomes in a single move, with nothing to expand.
What matters more is that every one of them works both ways. Left to right it is expanding; right to left it is factoring, the step that opens cancelling in rational expressions and solving inequalities.
The square of a sum and of a difference
Where the middle term comes from is clearest as an area. A square of side cuts into four pieces: the square , the square and two identical rectangles of area each.
Two rectangles — hence , not . That is the whole content of the identity, and the exact place where it is usually dropped.
In the square of a difference only the sign of the middle term changes. The outer terms are squares, so they stay positive:
The difference of squares
This is the only one of the identities where the middle term vanishes: expanding leaves , and cancels .
Geometrically: cut a square of side out of a square of side , and rearrange what is left into a single rectangle with sides and .
The identity is the shortest route to a product done in the head. The numbers and sit symmetrically around a hundred, so:
A sum of squares does not factor — there is no such identity, and the reason shows up in quadratic equations: has no real roots, so it has no real factors either.
Reading the identity backwards: factoring
The same equality read right to left turns a sum into a product:
Recognizing a perfect square comes down to three checks: are the outer terms squares, do they share a sign, and is the middle term twice the product of their roots. If any one of them fails, the identity is not there.
Cubes
The same identities one degree up. The cube of a sum has coefficients , and the cube of a difference has the same coefficients with alternating signs:
Two further identities factor a sum and a difference of cubes. Unlike squares, both of them factor here:
The signs are crossed, and that is the only thing to remember: the minus in the first bracket goes with a plus on the middle term of the second, and the other way round.
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
Common mistakes
- Losing the doubling — is , never . The numerical check takes three seconds: , while .
- Not squaring the coefficient — in the first term is , not .
- A negative square — in the minus belongs to the middle term only; stays positive, because it is a square.
- Factoring a sum of squares — has no factorization over the reals. Only the difference factors.
- Crossing the signs in the cubes — in the factorization of the second bracket carries a plus on , even though the original difference carries a minus.
Formula card
Topic: Special products
Square of a sum
the middle term is twice the product, not the product
Square of a difference
both squares positive, the minus sits on the middle term only
Difference of squares
the only one of these where the middle term disappears
Cube of a sum
coefficients 1, 3, 3, 1
Cube of a difference
alternating signs, starting with a plus
Difference of cubes
a plus on the middle term of the bracket
Sum of cubes
a minus on the middle term of the bracket
