Algebra · JSS 2, JSS 3
Difference of two squares
Factorise one square minus another, or do quick mental sums.
- a2 − b2 = (a + b)(a − b)
What the letters mean
- a, b
- any numbers or terms
Worked example
Evaluate 512 − 492.
Step 1: Use the formula
512 − 492 = (51 + 49)(51 − 49)
Step 2: Multiply
= 100 × 2 = 200
Final answer: 200
When to use it
Use this when you see one perfect square minus another, like x2 − 49 or 9a2 − 16b2, or a number sum such as 752 − 252. There must be a minus sign between the squares: a sum like x2 + 9 does not factorise this way. Always take out any common factor first, for example 2x2 − 18 = 2(x2 − 9).
Why it works
Expand the right-hand side to see why: (a + b)(a − b) = a2 − ab + ab − b2. The middle terms −ab and +ab cancel, leaving a2 − b2. You can also picture it: cut a small b by b square from the corner of a big a by a square. The L-shape left over can be cut and moved to make a rectangle that is (a + b) long and (a − b) wide.
Try it yourself
Factorise 4x2 − 25, then use your answer to find its value when x = 10.
Try it first, then show the solution
- Write each term as a square: 4x2 = (2x)2 and 25 = 52
- Use the formula with a = 2x and b = 5: 4x2 − 25 = (2x + 5)(2x − 5)
- Put x = 10: (20 + 5)(20 − 5) = 25 × 15 = 375
- Check directly: 4 × 102 − 25 = 400 − 25 = 375 ✓
Answer: (2x + 5)(2x − 5); the value is 375
See it
Play with this picture from the Factorisation lesson.
Each part's area = its side × its top. Dashed pink parts are negative.
Sides: (x + 3)(x + 4)
Parts: x2 + 4x + 3x + 12
Area = x2 + 7x + 12
Common mistakes
- Writing (a − b)2 instead of (a + b)(a − b). One bracket has a plus and the other a minus; (x − 3)2 expands to x2 − 6x + 9, not x2 − 9.
- Stopping too early. x4 − 16 = (x2 + 4)(x2 − 4), but x2 − 4 is also a difference of two squares, so the full answer is (x2 + 4)(x + 2)(x − 2).
In BECE and WASSCE
This is a favourite quick-calculation item in BECE and WASSCE objective papers, such as evaluating 872 − 132 without a calculator. In WASSCE Paper 2 it also helps you factorise and simplify algebraic fractions, where x2 − 9 on top may cancel with x − 3 below.
Questions students ask
Can x2 + 25 be factorised?
Not using real numbers. The formula only works for a difference, with a minus sign. You would need two numbers that add to 0 and multiply to +25, and none exist, so x2 + 25 stays as it is.
How do I use this to work out 9.82 − 0.22?
Take a = 9.8 and b = 0.2. Then (9.8 + 0.2)(9.8 − 0.2) = 10 × 9.6 = 96. The trick works best when the sum or the difference of the two numbers is a round number.