Skip to content
Cambridge IGCSE® Mathematics 0580 Extended Algebra Lesson

Factorising

Expanding in reverse — take out common factors, factorise by grouping, spot the difference of two squares and crack simple quadratics.

Learning objectives What you will be able to do

  • Factorise fully by taking out the highest common factor of the numbers and the letters.
  • Factorise a four-term expression by grouping it into two pairs.
  • Recognise and factorise a difference of two squares on sight: a² − b² = (a + b)(a − b).
  • Factorise quadratics of the form x² + bx + c using product and sum.
  • Check every factorisation in seconds by expanding it back out.

Key words

factorisehighest common factorexpandgroupingdifference of two squaresquadraticcoefficientfully

Starter 5 minutes — before we begin

Answer from memory, then open each one to check.

Starter 1Expand 3x(2x − 5).
6x² − 15x
Starter 2What is the HCF of 12 and 18?
6
Starter 3Expand (x + 3)(x + 4).
x² + 4x + 3x + 12 = x² + 7x + 12

Learn Teach · example · together

1 ·  Taking out the highest common factor

When you expand, you remove brackets; when you factorise, you put them back. Every factorising answer can therefore be checked in seconds by expanding it again — and you should always do that check.

3x(2x − 5)   ← factorise — expand →   6x² − 15x Two ways of writing the same expression
Definition The highest common factor (HCF) of a set of terms is the largest expression that divides exactly into every one of them. To factorise, take the HCF outside a bracket and write what is left inside.

Deal with the numbers and the letters separately:

Numbers

Take the HCF of the coefficients. For 12 and 18 that is 6.

Letters

Take each letter that appears in every term, to its lowest power. From x³y and x²y² that gives x²y.

Example 1Factorise fully (a) 12x³y − 18x²y²  (b) −8a² + 12ab.
1
(a) Numbers: HCF of 12 and 18 is 6. Letters: take x² (lowest power of x) and y (lowest power of y). HCF = 6x²y
2
Divide each term by the HCF to find what goes inside. 12x³y ÷ 6x²y = 2x
18x²y² ÷ 6x²y = 3y
3
Write the answer and check by expanding. 6x²y(2x − 3y)  ✓
4
(b) The HCF is 4a, but the leading term is negative, so take out −4a — the signs inside then flip. −8a² ÷ (−4a) = 2a
12ab ÷ (−4a) = −3b
5
Check by expanding. −4a(2a − 3b) = −8a² + 12ab  ✓
(a) 6x²y(2x − 3y)     (b) −4a(2a − 3b)
Watch out “Factorise fully” means the bracket must have no common factor left. Writing 2x²y(6x − 9y) is not wrong arithmetic, but it is not fully factorised and it will not get the mark.

2 ·  Factorising by grouping

An expression with four terms often has no factor common to all four, but splits into two pairs that each have one. Factorise each pair — if the brackets that appear are identical, take that whole bracket out as the common factor.

ax + ay + bx + by = a(x + y) + b(x + y) = (x + y)(a + b) The repeated bracket is itself the common factor
Example 2Factorise 6x + 3y + 2ax + ay.
1
Split into two pairs: the first two share 3, the last two share a. (6x + 3y) + (2ax + ay)
2
Factorise each pair — the same bracket appears twice. 3(2x + y) + a(2x + y)
3
Take the repeated bracket out, and check by expanding. (2x + y)(3 + a) = 6x + 2ax + 3y + ay  ✓
(2x + y)(3 + a)
Exam tip If the two brackets do not match, re-pair the terms in a different order before deciding it will not work.
Watch out When the third term is negative, factorise the second pair with a negative outside so the brackets match: 2x² + 6x − x − 3 = 2x(x + 3) − 1(x + 3) = (x + 3)(2x − 1). Notice the −1; leaving it out is the classic slip.

3 ·  The difference of two squares

Expand (x + 5)(x − 5) and the middle terms destroy each other: x² − 5x + 5x − 25 = x² − 25. Read that backwards and you have a factorisation to recognise on sight.

a² − b² = (a + b)(a − b) Two squares, subtracted — and nothing in between

How to spot it

  • Exactly two terms, with a minus between them.
  • Each term is a perfect square: a square number, and every letter to an even power. 9x² = (3x)², 25 = 5², y6 = (y³)².
  • a² + b² does not factorise. Only the difference does.
Example 3Factorise (a) 9x² − 25  (b) 2x² − 32.
1
(a) Write each term as a square, then apply the rule with a = 3x, b = 5. 9x² = (3x)²,  25 = 5²
(3x + 5)(3x − 5)
2
Check: the outer and inner products cancel. 9x² − 15x + 15x − 25 = 9x² − 25  ✓
3
(b) 2x² is not a perfect square, so look for a common factor first. 2x² − 32 = 2(x² − 16)
4
Now the bracket is a difference of two squares. 2(x + 4)(x − 4)
(a) (3x + 5)(3x − 5)     (b) 2(x + 4)(x − 4)
Exam tip The difference of two squares also makes arithmetic easy without a calculator: 83² − 17² = (83 + 17)(83 − 17) = 100 × 66 = 6600.

4 ·  Factorising x² + bx + c

Expanding (x + p)(x + q) gives x² + (p + q)x + pq. To reverse it, find two numbers whose product is c and whose sum is b — always start with the product.

x² + bx + c = (x + p)(x + q)   where   pq = c  and  p + q = b Product then sum — always start with the product
Signs in x² + bx + cWhat p and q look likeExample
c positive, b positiveboth positivex² + 7x + 12 = (x + 3)(x + 4)
c positive, b negativeboth negativex² − 7x + 12 = (x − 3)(x − 4)
c negativeone of each sign; the larger takes the sign of bx² + x − 12 = (x + 4)(x − 3)
Example 4Factorise x² − 3x − 40.
1
c = −40 is negative, so the two numbers have opposite signs. pairs multiplying to 40: 1×40, 2×20, 4×10, 5×8
2
With opposite signs the pair must differ by 3, and the bigger number is negative because b = −3. use +5 and −8:  5 × (−8) = −40 ✓  5 + (−8) = −3 ✓
3
Write the brackets and check by expanding. (x + 5)(x − 8) = x² − 8x + 5x − 40  ✓
(x + 5)(x − 8)
Example 5Factorise completely 3x³ − 12x.
1
Common factor first: HCF of 3 and 12 is 3, and both terms contain x. 3x(x² − 4)
2
The bracket is a difference of two squares, so keep going. x² − 4 = (x + 2)(x − 2)
3
Put it together — “completely” means nothing factorises any further. 3x(x + 2)(x − 2)
3x(x + 2)(x − 2)
Watch out Stopping at 3x(x² − 4) loses a mark. Whenever a bracket is a difference of two squares, it can still be split.

Practice Now you try

Do every question on paper first, then open the solution and mark your own working.

Practice 1Factorise fully 8x²y − 12xy³.
1
Numbers: HCF of 8 and 12 is 4. Letters: xy is in both terms. HCF = 4xy
2
Divide each term by 4xy, then check by expanding. 8x²y ÷ 4xy = 2x    12xy³ ÷ 4xy = 3y²
4xy(2x − 3y²)
Practice 2Factorise 49 − p².
1
Two terms, a minus, both squares: 49 = 7². 7² − p² = (7 + p)(7 − p)
(7 + p)(7 − p)
Practice 3Factorise x² + 2x − 15.
1
Product −15, sum +2 — opposite signs, larger number positive. +5 and −3:  5 × (−3) = −15 ✓  5 + (−3) = 2 ✓
2
Write the brackets and check. (x + 5)(x − 3) = x² + 2x − 15  ✓
(x + 5)(x − 3)
Practice 4Factorise by grouping 2ab + 6a + b + 3.
1
Pair up: the first two share 2a, the last two share 1. 2a(b + 3) + 1(b + 3)
2
Take out the repeated bracket. (b + 3)(2a + 1)
(b + 3)(2a + 1)
Practice 5Factorise completely 2x³ − 18x.
1
HCF first. 2x(x² − 9)
2
The bracket is a difference of two squares. 2x(x + 3)(x − 3)
2x(x + 3)(x − 3)

Common mistakes Lose no easy marks

Not factorising fully A leftover common factor inside the bracket, or an unfactorised difference of two squares, costs the mark. 2x²y(6x − 9y) and 3x(x² − 4) are both unfinished.
Losing the −1 when grouping In 2x² + 6x − x − 3 the second pair needs −1(x + 3), not (x + 3) on its own — otherwise the brackets do not match and the signs go wrong.
Trying to factorise a sum of squares a² + b² does not factorise. Only the difference a² − b² splits into (a + b)(a − b).
Exam tip Every factorisation can be checked by expanding it back out — ten seconds that catches nearly every sign slip. Make the check a habit, especially when c is negative.

Exit check Prove it before you leave

Exit 1Factorise 15a + 20.
5(3a + 4)
Exit 2Factorise x² − 9.
(x + 3)(x − 3) — a difference of two squares.
Exit 3Factorise x² + 5x + 6.
Product 6, sum 5: (x + 2)(x + 3).

Keep going