O Level Maths 4024 · Area 2 · Algebra and graphs

Algebraic Manipulation

Manipulation is the two-way traffic of algebra: expanding takes brackets apart, factorising puts them back. Cambridge asks for both, often in the same question, and the marks are for the intermediate line as much as the answer. This page covers the five factorising types in the syllabus and the expansion skills they depend on.

Not started

Syllabus coverage

  • Simplify expressions by collecting like terms
  • Expand products of algebraic expressions, including products of more than two brackets
  • Factorise by extracting common factors, including expressions of the form ax3+bx2+cx
  • Factorise expressions of the form a2x2−b2y2, a2+2ab+b2 and ax2+bx+c
  • Factorise fully, which means no factor common to every term and no bracket that will factorise again

Part of the O Level Maths syllabus 4024.

Which factorisation?1Is there a common factor in every term?take it out first2Is it a difference of two squares?a² − b² = (a + b)(a − b)3Is it a quadratic with three terms?find the two numbers that multiply and add4Is it x³ + x² + x or similar?take out the x, then factorise what is leftWork down the list in order, and stop at the first question that answers yes.
The four questions to work down when choosing a factorisation method.

Terms, coefficients and collecting like terms

An expression is a sum of terms, and the plus and minus signs are the boundaries between them. In 7x2−4x+3 the terms are 7x2, −4x and 3. The sign in front of a term belongs to it, which is why the second term is −4x rather than 4x.

Two terms are alike if their letter parts match exactly, including the powers. 5x and −9x are alike; 5x and 5x2 are not, because one is a count of x and the other a count of x2. 3ab and −7ba are alike, because the order of a product does not matter.

Collecting means adding the coefficients of like terms and writing the letter part once. Simplify 7x2−4x+3−2x2+9x−8: the x2 terms give 7−2=5, the x terms give −4+9=5, and the numbers give 3−8=−5. The answer is 5x2+5x−5, and it cannot be shortened further because the three terms are unlike.

Pair of termsLike terms?Reason
4x and −11xyessame letter, same power
4x and 4x2nodifferent powers of x
6ab and −2bayesmultiplication is commutative, so ba=ab
5a2b and 5ab2nothe powers sit on different letters
3 and −8yesboth are plain numbers
A letter on its own has coefficient 1, so x+4x is 5x, and −x−3x is −4x. Writing the invisible 1 in the margin prevents most of the errors in this block.

Expanding one bracket

Expanding a bracket means multiplying every term inside it by the factor outside. 4a(3a−5b)=12a2−20ab: the 4a multiplies the 3a to give 12a2, and multiplies the −5b to give −20ab. The number of terms in the answer matches the number inside the bracket before anything is collected.

Negative factors change every sign inside. −3x(2x−5)=−6x2+15x, because a negative times a negative is positive. A minus sign on its own in front of a bracket behaves the same way: 5−2(x−3)=5−2x+6=11−2x. Treat the −2 as the factor and multiply it by both terms.

Powers follow the index rule when the factor and the term share a letter. 2x2(3x3−4x)=6x5−8x3, because x2×x3=x5 and x2×x=x3. Adding the indices is the whole of the work; the coefficients multiply as usual.

  • 4a(3a−5b)=12a2−20ab
  • −3x(2x−5)=−6x2+15x
  • 5−2(x−3)=11−2x
  • 2x2(3x3−4x)=6x5−8x3

Expanding two brackets

With two brackets, every term in the first multiplies every term in the second, giving four products before anything is collected. A grid keeps the four products in order and makes a missing term obvious.

(x+6)(x−2): the products are x2, −2x, 6x and −12. The two middle terms are like terms, so they collect to +4x, and the answer is x2+4x−12. The x2 term comes from the two first terms, and the constant from the two last terms, so those two can be written straight down.

Where the brackets contain two letters, the middle terms usually do not cancel but they can still be collected. (3x+y)(x−4y)=3x2−12xy+xy−4y2=3x2−11xy−4y2. Watch the signs in the second bracket: the −4y multiplies both 3x and y.

x−2
xx2−2x
66x−12
(x+6)(x−2) is not x2−12. The two middle products −2x and 6x are part of the answer; only the outer and inner products that happen to cancel may be dropped.

A bracket squared, and three brackets

Squaring a bracket means multiplying it by itself, so (2x−5)2=(2x−5)(2x−5)=4x2−10x−10x+25=4x2−20x+25. The answer has three terms, not two, and the middle term is twice the product of the two parts.

For three brackets, multiply two of them first and then multiply the result by the third. Choose the pair that is easiest; the answer is the same either way. Expand (x−3)(x+5)(2x−1): the first two brackets give x2+2x−15, and multiplying that by (2x−1) gives 2x3−x2+4x2−2x−30x+15, which collects to 2x3+3x2−32x+15.

Check the degree before you check the arithmetic. Three brackets each containing an x must produce an x3 term, and a cubic like 2x3+3x2−32x+15 has four terms unless some cancel. An answer with three terms from three linear brackets is almost always missing a product.

  • (2x−5)2=4x2−20x+25
  • (x−3)(x+5)=x2+2x−15
  • (x2+2x−15)(2x−1)=2x3+3x2−32x+15
  • three linear brackets always give a cubic term
(a+b)2=a2+2ab+b2, not a2+b2. The missing 2ab is the single most common expansion error in the paper.

Factorising by taking out a common factor

Factorising is expanding in reverse: you write the expression as a product. The first thing to look for is always a factor common to every term, and the best one is the highest common factor of the numbers together with the lowest power of each letter that appears in all the terms.

9x2+15xy: the numbers have HCF 3, and both terms contain x, so take out 3x. What is left inside the bracket is each term divided by 3x, giving 3x(3x+5y). Multiply back to check: 3x×3x=9x2 and 3x×5y=15xy.

Expressions of the form ax3+bx2+cx always have an x in every term. 12x3−18x2+6x=6x(2x2−3x+1), because the HCF of 12, 18 and 6 is 6 and the lowest power is x. The bracket is then a quadratic that may factorise again, and "factorise" means factorise fully, so the finished answer is 6x(2x−1)(x−1).

ExpressionCommon factorFactorised
9x2+15xy3x3x(3x+5y)
12a3b−18a2b26a2b6a2b(2a−3b)
8x2−4x4x4x(2x−1)
5x3+10x25x25x2(x+2)
If the first term is negative, take out a negative factor so that the bracket starts with a positive term: −6x2−9x=−3x(2x+3). Both forms are equal, but the one with a positive leading term is easier to check.

The difference of two squares

An expression with one square subtracted from another is the quickest factorisation in the syllabus. a2−b2=(a−b)(a+b), because the two middle products cancel when the brackets are expanded. Nothing else is needed: no numbers have to be found that add and multiply.

In the syllabus form the squares carry coefficients and two letters: a2x2−b2y2=(ax−by)(ax+by). Recognise it by counting the terms. Two terms, both squares, one subtracted from the other, and the answer is the sum times the difference of the square roots.

Take out a common factor first when there is one. 2x2−32=2(x2−16)=2(x−4)(x+4). Stopping at 2(x2−16) is not factorising fully, and it is the commonest way to lose the last mark on this type.

ExpressionSquare rootsFactorised
x2−49x and 7(x−7)(x+7)
4x2−25y22x and 5y(2x−5y)(2x+5y)
9−x23 and x(3−x)(3+x)
2x2−32take out 2 first2(x−4)(x+4)
x2+49 does not factorise. A sum of two squares has no factorisation with real numbers, so if a question gives you one, check whether you have misread a minus sign.

Perfect squares

A perfect square is what you get when a bracket is multiplied by itself. a2+2ab+b2=(a+b)2 and a2−2ab+b2=(a−b)2. The signature is three terms: two squares with positive signs, and a middle term that is exactly twice the product of the two square roots.

x2+10x+25: the square roots are x and 5, and twice their product is 2×x×5=10x, which matches the middle term. So the expression is (x+5)2. Had the middle term been 7x, the expression would not be a perfect square and would need the general method instead.

With coefficients the same test works. 9x2−12x+4: the roots are 3x and 2, twice their product is 12x, and the sign is negative, so the answer is (3x−2)2. Check the middle term every time: a near miss such as 9x2−15x+4 is not a perfect square at all.

  • x2+8x+16=(x+4)2
  • x2−6x+9=(x−3)2
  • 9x2−12x+4=(3x−2)2
  • 4x2+20x+25=(2x+5)2
The middle term is the test. Two squares and a middle term of 2ab means a perfect square; anything else means you need the product-and-sum method in the next block.

Quadratics of the form ax2+bx+c

When the coefficient of x2 is 1, find two numbers that multiply to c and add to b. x2+7x+12: 3 and 4 multiply to 12 and add to 7, so the answer is (x+3)(x+4). x2−x−12: the numbers are −4 and 3, because their product is −12 and their sum is −1.

When the coefficient of x2 is not 1, multiply a by c, then find two numbers with that product and with sum b. Split the middle term into those two terms and factorise in pairs. 2x2+9x+4: ac=8, and the pair 1 and 8 adds to 9. Split: 2x2+8x+x+4, then 2x(x+4)+1(x+4)=(2x+1)(x+4).

The method is the same when the numbers are negative. 6x2−11x−10: ac=−60, and the pair −15 and 4 has product −60 and sum −11. Split into 6x2−15x+4x−10, then 3x(2x−5)+2(2x−5)=(3x+2)(2x−5). If the two pairs do not produce a common bracket, the split was wrong; go back to the pair of numbers rather than forcing it.

ExpressionProduct and sumFactorised
x2+7x+1212 and 7: 3 and 4(x+3)(x+4)
x2−x−12−12 and −1: −4 and 3(x−4)(x+3)
2x2+9x+48 and 9: 1 and 8(2x+1)(x+4)
6x2−11x−10−60 and −11: −15 and 4(3x+2)(2x−5)
Always multiply the brackets back out as a check. One line of expansion catches a wrong sign, a wrong pair and a missing coefficient, and it takes less time than re-reading your working.

Choosing the method, and factorising fully

Four questions decide which method to use, and asking them in order takes about ten seconds. Is there a factor common to every term? Take it out first, always. Are there exactly two terms with a minus between two squares? Use the difference of two squares. Are there three terms with two squares and a middle term of 2ab? Write it as a perfect square. Otherwise use product and sum on the quadratic.

Factorising fully means continuing until nothing else will come out. 3x2−27 is 3(x2−9) and then 3(x−3)(x+3). 2x3+4x2−6x is 2x(x2+2x−3) and then 2x(x+3)(x−1). The first line earns a method mark; only the fully factorised line earns the accuracy mark.

Two habits keep this reliable. Check by expanding, which proves the answer in one line. And check the number of factors: a cubic with a common factor of x should finish as a product of three factors, such as 6x(2x−1)(x−1), not two.

  • common factor first, every time
  • two terms, both squares, subtracted: difference of two squares
  • three terms, middle 2ab: perfect square
  • anything else with three terms: product and sum
  • finish only when no bracket factorises again
3(x2−9) is a correct factorisation but not a full one. Cambridge asks you to factorise, which the syllabus defines as factorise fully, so the bracket still has to be taken apart.

Key terms you must be able to define

Term
A part of an expression separated from the rest by plus or minus signs, together with the sign in front of it.
Like terms
Terms whose letter parts are identical, including the powers, such as 5x2 and −2x2.
Expand
Multiply out the brackets so that the expression is written as a sum of terms with no brackets left.
Factorise
Write an expression as a product of factors, in the fullest form possible.
Common factor
A number, letter or expression that divides every term, such as 3x in 9x2+15xy.
Highest common factor (algebraic)
The largest factor shared by every term: the HCF of the coefficients together with the lowest power of each letter that appears in all of them.
Difference of two squares
a2−b2=(a−b)(a+b). Two square terms with a minus between them.
Perfect square (algebraic)
An expression of the form a2+2ab+b2, which equals (a+b)2, or a2−2ab+b2=(a−b)2.
Quadratic expression
An expression whose highest power is 2, written ax2+bx+c with a≠0.
Coefficient
The number in front of a letter in a term, such as 6 in 6x2.
Factorised form
An expression written as a product of brackets, such as (2x+1)(x+4) instead of 2x2+9x+4.
Cubic expression
An expression whose highest power is 3, such as ax3+bx2+cx, whose terms all share a factor of x.

In context

Cambridge sets 4024 in real situations - a recipe, a bank statement, a map, a garden, a graph of a car's journey. These show how the mathematics appears in a question, then you write your own working for the numbers you are given.

Collecting with three types of term

Simplify 4x2−7x+5−x2+2x−9. The x2 terms give 3x2, the x terms give −5x, and the numbers give −4. The answer is 3x2−5x−4. There is no further simplification: the three terms are unlike and must stay separate.

A negative factor outside a bracket

Expand and simplify 7−3(2x−4). Multiply the bracket by −3: −6x+12. Then 7−6x+12=19−6x. The trap is to multiply only the 2x by −3 and leave the −4 untouched, which gives 7−6x−4=3−6x.

Three brackets

Expand (x+1)(x−4)(3x+2). The first pair gives x2−3x−4. Multiplying by (3x+2): 3x3+2x2−9x2−6x−12x−8=3x3−7x2−18x−8. The cubic term confirms the work is the right shape.

Factorising a cubic with a common factor

Factorise fully 10x3−5x2−15x. The HCF of 10, 5 and 15 is 5, and every term has at least one x, so take out 5x: 5x(2x2−x−3). The bracket factorises with product −6 and sum −1, namely −3 and 2, giving 5x(2x−3)(x+1). Check: 5x×2x2=10x3 and 5x×(−3)=−15x.

A difference of squares in disguise

Factorise 18x2−50. Take out 2 first: 2(9x2−25). Both terms in the bracket are squares, of 3x and 5, so the answer is 2(3x−5)(3x+5). Expanding gives 2(9x2−25)=18x2−50, which confirms it.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1Simplify 3x2+5x−x2−8x.
2x2−3x. Collect the x2 terms and the x terms separately.
Q2Expand −4x(2x−7).
−8x2+28x. A negative times a negative is positive.
Q3Expand (x+7)(x−3).
x2+4x−21.
Q4Expand (3x+2)2.
9x2+12x+4. The middle term is 2×3x×2.
Q5Factorise x2−64.
(x−8)(x+8), a difference of two squares.
Q6Factorise 5x2+20x.
5x(x+4).
Q7Factorise 12x3−18x2+6x fully.
6x(2x−1)(x−1). Take out 6x first, then factorise the quadratic.
Q8Factorise x2+9x+20.
(x+4)(x+5), since 4 and 5 multiply to 20 and add to 9.
Q9Factorise 2x2+7x+3.
(2x+1)(x+3). Split 7x into 6x+x.
Q10How do you spot a perfect square?
Three terms, two of them squares, and a middle term equal to 2ab, twice the product of the square roots.
Q11What does factorise fully mean?
No factor is left common to every term and no bracket will factorise again.
Q12Expand (x−1)(x+2)(x+3).
x3+4x2+x−6. Multiply two brackets first, then by the third.
0 of 12 marked as known

Exam-style questions

8 questions, 21 marks. Write your answer and press Mark my answer — it is marked against the scheme and tells you which points you made and what would gain the next mark. You can still reveal the scheme and mark it yourself instead.

WriteAO11 mark
Write the expansion of (x+7)(x−7).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • B1x2−49not checked yet
Examiner tip: The middle terms cancel: −7x+7x=0. Only the squares are left.
Work outAO12 marks
Expand 4a(3a−5b).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A112a2−20abnot checked yet
Examiner tip: Two terms in, two terms out. The sign stays as a minus, because the 4a is positive and the 5b is being subtracted.
Work outAO13 marks
Expand and simplify (x+6)(x−2).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1x2+4x−12not checked yet
Examiner tip: The first and last products can be written straight down. The middle term is the sum of the two cross products, −2x+6x.
Work outAO12 marks
Factorise 6x2−15x.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • B1
  • B13x(2x−5)not checked yet
Examiner tip: The highest common factor of 6 and 15 is 3, and both terms contain x. Taking out only 3 leaves 3(2x2−5x), which is not fully factorised.
Work outAO12 marks
Factorise 4x2−25y2.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • B1
  • B1(2x−5y)(2x+5y)not checked yet
Examiner tip: Square-root the coefficients as well as the letters. 4x2 has root 2x; leaving 4x in the bracket is the standard error here.
Work outAO24 marks
Expand and simplify (x−3)(x+5)(2x−1).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A12x3+3x2−32x+15not checked yet
Examiner tip: Work in two stages and keep the middle result. The cubic term tells you the shape is right; six products should give four terms after collecting.
Work outAO23 marks
Factorise 2x2+9x+4.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1(2x+1)(x+4)not checked yet
Examiner tip: The product is a×c, not just c. With a=2 the target product is 8, which is why 4 and 1 is the wrong pair even though they add to 5 and look plausible.
Work outAO24 marks
Factorise fully 12x3−18x2+6x.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A16x(2x−1)(x−1)not checked yet
Examiner tip: Stopping at 6x(2x2−3x+1) is worth the method marks but not the accuracy mark, because the question says fully.

Exam technique for this topic

  • Take out the common factor before anything else. Every factorising question on this topic is easier after that step, and skipping it usually costs the final mark even when the rest is right.
  • Write the number of terms you expect before you start expanding. Two brackets give up to four products, and three brackets give up to eight, so an answer with too few terms has lost one.
  • Check every factorisation by expanding it back. One line of multiplication proves the answer and takes less time than re-reading three lines of factorising.
  • Take the sign with the term when you collect. In 7x2−4x+3−2x2+9x−8 the second x2 term is −2x2, not 2x2.
  • "Factorise" means factorise fully. If the bracket you have produced still has a common factor or is a difference of squares, the answer is not finished.

Why students lose marks here

A student wrote(x+6)(x−2)=x2−12
Why it loses marksOnly the first terms and the last terms were multiplied. The two middle products, −2x and 6x, belong in the answer.
The answer that scoresx2+4x−12.
A student wrote(2x−5)2=4x2−25
Why it loses marksThe bracket was squared term by term. Squaring a bracket means multiplying the whole bracket by itself, which produces the middle term 2ab.
The answer that scores(2x−5)(2x−5)=4x2−20x+25.
A student wrote9x2+15xy=3(3x2+5xy)
Why it loses marksOnly the number 3 was taken out, and the common factor of x was left behind. The bracket is not yet fully factorised.
The answer that scores9x2+15xy=3x(3x+5y).
A student wrote4x2−25y2=(4x−25y)(4x+25y)
Why it loses marksThe coefficients were left inside the brackets instead of being square-rooted. 4x2 is the square of 2x, not of 4x.
The answer that scores(2x−5y)(2x+5y).
A student wrote2x2+9x+4=(2x+4)(x+1)
Why it loses marksThe numbers 4 and 1 multiply to 4, but the coefficient 2 also multiplies the constant, so the product is 8 and the middle term comes out as 8x+x=9x only with 1 and 8. Expanding the wrong answer gives 2x2+6x+4.
The answer that scores(2x+1)(x+4), since 2x2+8x+x+4=2x(x+4)+1(x+4).
A student wrote7−3(2x−4)=7−6x−12
Why it loses marksThe −3 was multiplied by the first term only. It must multiply both terms inside the bracket, and the second product is positive.
The answer that scores7−6x+12=19−6x.

Where this fits in O Level Maths 4024

This page is one topic of Cambridge O Level Maths 4024. O Level Maths 4024 is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the O Level Maths 4024 syllabus page.