Skip to content
MathClicksIGCSE← All notes Cambridge IGCSE® Mathematics 0580 Extended Chapter 6 — Equations and Transforming Formulae

6.2  Factorising

Reversing expansion — taking out common factors, factorising by grouping, spotting the difference of two squares and factorising simple quadratics.

Factorising is expanding in reverse

When you expand, you remove brackets. When you factorise, you put them back. Every factorising answer can therefore be checked in a few 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.

Finding the HCF of algebraic terms

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: x appears as x³ and x² → take x²; y appears as y and y² → take 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)
check: 6x²y × 2x = 12x³y  ✓   6x²y × (−3y) = −18x²y²  ✓
4
(b) The HCF is 4a, but the leading term is negative, so take out −4a. Dividing a negative by a negative makes the signs inside 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.

HCF extractor

Set the coefficient and the powers of x and y in each term, and watch the common factor come out. Try a negative first coefficient.

Factorising by grouping

An expression with four terms often has no factor common to all four, but splits into two pairs that each have a factor. Factorise each pair, and if the brackets that appear are identical you can take that whole bracket out as a 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 terms share 3; the last two share a. (6x + 3y) + (2ax + ay)
2
Factorise each pair. 3(2x + y) + a(2x + y)
3
The bracket (2x + y) appears twice, so take it out. (2x + y)(3 + a)
4
Check by expanding all four products. (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. Here (6x + 2ax) + (3y + ay) gives 2x(3 + a) + y(3 + a) = (3 + a)(2x + y) — the same answer.
Watch out When the third term is negative you must 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.

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 you should 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. 9x² = (3x)²    25 = 5²
2
Apply the rule with a = 3x and b = 5. (3x + 5)(3x − 5)
3
Check: the outer and inner products cancel. 9x² − 15x + 15x − 25 = 9x² − 25  ✓
4
(b) 2x² is not a perfect square, so look for a common factor first. Always take out the HCF before anything else. 2x² − 32 = 2(x² − 16)
5
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. Questions like this appear in Paper 2.

Factorising x² + bx + c

Expanding (x + p)(x + q) gives x² + (p + q)x + pq. So to reverse it you need two numbers whose product is c and whose sum is b.

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 one takes the sign of bx² + x − 12 = (x + 4)(x − 3)
Example 4Factorise x² + 7x + 12.
1
List the factor pairs of c = 12. Both signs are positive, so only positive pairs are needed. 1 × 12    2 × 6    3 × 4
2
Find the pair that adds to b = 7. 1 + 12 = 13  ✗
2 + 6 = 8  ✗
3 + 4 = 7  ✓
3
Write the brackets with those numbers. (x + 3)(x + 4)
4
Check by expanding. x² + 4x + 3x + 12 = x² + 7x + 12  ✓
(x + 3)(x + 4)
Note When the coefficient of x² is not 1 — expressions such as 2x² + 7x + 3 — the product-and-sum search has to be adapted. That case is covered in lesson 14.6. If the coefficient of x² here is not 1, check first whether it is a common factor you can take out.

Product-and-sum searcher

Enter b and c for x² + bx + c. Every factor pair of c is listed; the one that adds to b is highlighted. Try b = −3, c = −40.

More worked examples

Example 5Factorise 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 must be negative because b = −3 is negative. 5 and 8 differ by 3  →  use +5 and −8
(+5) × (−8) = −40  ✓   (+5) + (−8) = −3  ✓
3
Write the brackets. (x + 5)(x − 8)
4
Check by expanding. x² − 8x + 5x − 40 = x² − 3x − 40  ✓
(x + 5)(x − 8)
Example 6Factorise fully 2x² + 10x + 12.
1
All three terms are even, so take out the common factor 2 first. This is what turns a “hard” quadratic into an easy one. 2(x² + 5x + 6)
2
Now factorise the bracket: product 6, sum 5. 2 × 3 = 6  and  2 + 3 = 5  ✓
3
Keep the 2 in the final answer — it does not disappear. 2(x + 2)(x + 3)
4
Check by expanding. 2(x² + 3x + 2x + 6) = 2(x² + 5x + 6) = 2x² + 10x + 12  ✓
2(x + 2)(x + 3)
Example 7Factorise completely 3x³ − 12x.
1
Common factor first: HCF of 3 and 12 is 3, and both terms contain x. 3x(x² − 4)
2
Look at the bracket. Two terms, a minus sign, both perfect squares — difference of two squares. x² − 4 = (x + 2)(x − 2)
3
Put it together. “Completely” means keep going until nothing factorises any further. 3x(x + 2)(x − 2)
4
Check by expanding back. 3x(x² − 4) = 3x³ − 12x  ✓
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.

Your turn

Practice set

  1. Factorise 15a + 20.
  2. Factorise fully 8x²y − 12xy³.
  3. Factorise 49 − p².
  4. Factorise x² + 2x − 15.
  5. Factorise by grouping 2ab + 6a + b + 3.
  6. Factorise completely 2x³ − 18x.

  1. HCF of 15 and 20 is 5 → 5(3a + 4)
  2. Numbers: HCF 4. Letters: xy is in both → HCF 4xy → 4xy(2x − 3y²)
  3. 49 = 7², so it is 7² − p² → (7 + p)(7 − p)
  4. Product −15, sum +2: use +5 and −3 → (x + 5)(x − 3)
  5. 2a(b + 3) + 1(b + 3) → (b + 3)(2a + 1)
  6. 2x(x² − 9), then two squares → 2x(x + 3)(x − 3)

Key points to remember

  • Factorising is the reverse of expanding, so every answer can be checked by expanding. Do it.
  • Always take out the HCF first. Numbers: the HCF of the coefficients. Letters: each common letter to its lowest power.
  • If the leading term is negative you may take out a negative common factor — remember that every sign inside the bracket then flips.
  • Four terms with no overall common factor: try grouping into two pairs, and watch for the hidden −1 when the third term is negative.
  • a² − b² = (a + b)(a − b). Two terms, a minus sign, both perfect squares. a² + b² does not factorise.
  • For x² + bx + c, find two numbers with product c and sum b; the expression is then (x + p)(x + q).
  • If c is negative the two numbers have opposite signs; if c is positive they share the sign of b.
  • “Factorise fully / completely” means keep going — a leftover common factor or an unfactorised difference of two squares costs marks.

Where next?

✅ Mark scheme All notes

Progress is saved on this device only and appears on the notes home page.