Lantern Tutor Sign in

Maths · 2 Algebra

2.2 Algebraic manipulation

Before you start

  • Adding, subtracting and multiplying negative numbers, e.g. −3×−4=12 and −2−5=−7.
  • Multiplying powers of the same letter: x×x=x2 and x2×x=x3.
  • Finding the highest common factor (HCF) of two or three numbers, e.g. the HCF of 12 and 18 is 6.
  • Substituting a number into an expression, e.g. 2x2−1=17 when x=3.
Syllabus objectives covered (4)
  • Simplify expressions by collecting like terms.
  • Expand products of algebraic expressions.
  • Factorise by extracting common factors.
  • Factorise expressions of the form: • ax + bx + kay + kby • a²x² − b²y² • a² + 2ab + b² • ax² + bx + c • ax³ + bx² + cx.

Part 1 of 8

Like terms: what can be collected

  1. A term is a number, a letter, or numbers and letters multiplied together: 7, −3x, 4ab, 5a2. The sign in front of a term belongs to it, so in 6−2x the second term is −2x, not 2x.
  2. Two terms are like terms when they have exactly the same letters raised to exactly the same powers. 3ab and −5ba are like terms, because ba is the same as ab. 2a2 and 2a are not: one is a×a, the other is just a.
  3. Collecting like terms means adding their coefficients and leaving the letter part alone. 7a2+3a2 is seven lots of a2 plus three lots of a2, which is ten lots of a2. The power does not change, so the answer is not 10a4.
    7a2+3a2=10a2
  4. To simplify a longer expression, sort the terms by type and carry each sign with its term. In 5x2−2xy+6−3x2+7xy−9 the x2 terms are 5x2 and −3x2, the xy terms are −2xy and +7xy, and the numbers are 6 and −9.
    (5x2−3x2)+(−2xy+7xy)+(6−9)=2x2+5xy−3
  5. Your answer is fully simplified when no two of its terms are alike. A quick check: three types of term went in, so at most three terms can come out.
  6. Two cases need care. x2+x stays as it is, because the terms are unlike. A pair such as 4x−4x gives 0, so that type of term disappears from the answer completely; do not write 0x.

Part 2 of 8

Expanding a single bracket

  1. To expand a bracket, multiply every term inside it by the term outside. The bracket tells you that the outside term applies to everything within it.
    3(2x−5)=6x−15
  2. When the outside term contains a letter, multiply the letters with the index rules: a×a=a2, and different letters are written side by side.
    4a(3a−2b)=12a2−8ab
  3. A negative outside the bracket multiplies every term, signs included. In −2(3x−5), the −2 times the −5 gives +10, because a negative times a negative is positive.
    −2(3x−5)=−6x+10
  4. Expand and simplify means do both jobs: multiply out every bracket, then collect like terms.
    5(x+2)−3(x−4)=5x+10−3x+12=2x+22
  5. The trap in that line is the +12. The −3 multiplies the −4, so the sign changes. Write the expansion of each bracket in full before you collect anything, and every sign is in front of you.

Part 3 of 8

Two brackets: every term times every term

  1. With two brackets, each term in the first bracket multiplies each term in the second. Two terms times two terms gives four products before you simplify.
  2. A rectangle shows why. A rectangle (x+3) long and (x+2) wide splits into four smaller rectangles with areas x2, 3x, 2x and 6. The whole area is the sum of the four pieces.
    (x+3)(x+2)=x2+2x+3x+6=x2+5x+6
    graph diagram — not drawn yet

    A rectangle divided into a 2-by-2 grid of smaller rectangles. The top edge is split into a long piece labelled x and a short piece labelled 3; the left edge is split into a long piece labelled x and a short piece labelled 2. The four regions are labelled x² (top left), 3x (top right), 2x (bottom left) and 6 (bottom right).

    Each region is one of the four products; added together they give (x+3)(x+2)=x2+5x+6.
  3. Signs travel with their terms, exactly as before. In (2x−3)(x+4) the four products are 2x×x, 2x×4, −3×x and −3×4.
    (2x−3)(x+4)=2x2+8x−3x−12=2x2+5x−12
  4. Two letters work the same way. Here the two middle products are both ab terms, so they collect.
    (2a+b)(a−3b)=2a2−6ab+ab−3b2=2a2−5ab−3b2
  5. A squared bracket means the bracket times itself: (2x+5)2=(2x+5)(2x+5). Write it as two brackets before you start. Both middle products are 10x, so the middle term is 20x.
    (2x+5)2=4x2+10x+10x+25=4x2+20x+25
  6. Notice the pattern in that answer: square the first term, square the last term, and the middle term is twice their product. You will use this pattern backwards when you factorise perfect squares.
  7. Check any expansion by substituting a small number. With x=1, (2x−3)(x+4)=(−1)(5)=−5, and 2x2+5x−12=2+5−12=−5. If the two values disagree, the expansion is wrong.

Part 4 of 8

Three brackets: two at a time

  1. You can only multiply two things at once, so expand any two of the brackets first, then multiply the result by the third.
  2. Take (x+2)(x−1)(x+3). Start with the first two brackets.
    (x+2)(x−1)=x2−x+2x−2=x2+x−2
  3. Now multiply each of the three terms of that quadratic by each of the two terms of (x+3). Three times two gives six products.
    (x2+x−2)(x+3)=x3+3x2+x2+3x−2x−6
  4. Collect like terms to finish.
    x3+4x2+x−6
  5. Keep the quadratic from the first step inside a bracket while you multiply, so that no term of it gets left behind. If you count fewer than six products, you have missed one.
  6. Check with a number that does not make any bracket zero. With x=2: (4)(1)(5)=20, and 8+16+2−6=20. They agree.

Part 5 of 8

Factorising by taking out a common factor

  1. Factorising is expanding in reverse. Expanding takes 3(2x+5) to 6x+15; factorising takes 6x+15 back to 3(2x+5).
  2. Find the highest common factor of every term. For the numbers, use their HCF. For each letter, take the lowest power that appears in every term. A letter that is missing from any one term cannot be taken out.
  3. Take 12x2y+18xy2. The HCF of 12 and 18 is 6. The lowest power of x in the two terms is x, and the lowest power of y is y. So the common factor is 6xy.
  4. Divide each term by the common factor to find what goes inside the bracket: 12x2y÷6xy=2x and 18xy2÷6xy=3y.
    12x2y+18xy2=6xy(2x+3y)
  5. Factorise means factorise fully. 12x2+18x=3x(4x+6) is true, but 4x+6 still has a factor of 2 in it. The full answer is 6x(2x+3). Before you move on, look inside the bracket and ask whether anything still divides every term.
  6. When a term is the whole common factor, a 1 is left behind. In 5a2+a the common factor is a, and a÷a=1, so the answer is a(5a+1). If you leave out the 1 you get a(5a), which expands to 5a2 only.
  7. Every factorisation can be checked by expanding it. If it does not expand back to the expression you started with, it is wrong.

Part 6 of 8

Four terms: factorising by grouping

  1. An expression of the form ax+bx+kay+kby has four terms, usually with no factor common to all of them. Split it into two pairs and factorise each pair on its own.
  2. Take 3px+2qx+12py+8qy. The first pair has the common factor x. The second pair has the common factor 4y.
    3px+2qx+12py+8qy=x(3p+2q)+4y(3p+2q)
  3. Now the same bracket, (3p+2q), appears in both parts. That bracket is a common factor of the whole expression, so take it out exactly as you would take out a single letter.
    (3p+2q)(x+4y)
  4. When the third term is negative, take a negative factor out of the second pair so that the brackets match. In px+qx−2py−2qy, take out −2y: −2py−2qy=−2y(p+q).
    px+qx−2py−2qy=x(p+q)−2y(p+q)=(p+q)(x−2y)
  5. The two brackets must be identical, signs included, before you can take them out. If they are not, check the sign of the factor you took from the second pair, or try pairing the first term with the third instead.
  6. Check by expanding: (p+q)(x−2y)=px−2py+qx−2qy, which is the original four terms in a different order.

Part 7 of 8

Two patterns: difference of two squares and perfect squares

  1. Expand (ax−by)(ax+by) and look at the middle. The products +abxy and −abxy cancel, so only two terms are left.
    (ax−by)(ax+by)=a2x2+abxy−abxy−b2y2=a2x2−b2y2
  2. Read that backwards: a square minus a square factorises into a minus bracket times a plus bracket. Find the square root of each term to see what goes in the brackets.
    16x2−49y2=(4x−7y)(4x+7y)
  3. You can recognise it by three features: exactly two terms, a minus sign between them, and both terms perfect squares (square numbers, with even powers of the letters).
  4. Take out any common factor first, or the squares stay hidden. 12x2−27 does not look like two squares, but 12x2−27=3(4x2−9), and 4x2−9 is (2x)2−32.
    12x2−27=3(2x−3)(2x+3)
  5. A sum of two squares is different. x2+9 does not factorise: (x+3)(x−3) gives x2−9, and (x+3)2 gives x2+6x+9.
  6. The second pattern is the perfect square. It is the squared-bracket expansion from earlier, read backwards.
    a2+2ab+b2=(a+b)2
  7. To test a three-term expression, find the square roots of the first and last terms, then check that the middle term is twice their product. For x2+14x+49 the roots are x and 7, and 2×x×7=14x, so x2+14x+49=(x+7)2.
  8. A negative middle term gives a minus in the bracket. For 4x2−12x+9 the roots are 2x and 3, and 2×2x×3=12x, so 4x2−12x+9=(2x−3)2. If the middle term fails this test, the expression is not a perfect square; use the method in the next section instead.

Part 8 of 8

Three-term quadratics, and cubics with a common x

  1. For x2+bx+c (where a=1), you need two numbers that multiply to give c and add to give b. For x2+2x−15: multiply to −15, add to 2. The pair is 5 and −3.
    x2+2x−15=(x+5)(x−3)
  2. The sign of c tells you where to look. If c is positive, both numbers have the same sign as b. If c is negative, the numbers have opposite signs, and the one further from zero has the sign of b.
  3. When a is not 1, guessing brackets is slow. A reliable method is to split the middle term. For 2x2+7x+3, work out a×c=2×3=6, then find two numbers that multiply to 6 and add to b=7. They are 6 and 1.
  4. Write 7x as 6x+x. Now there are four terms, and you factorise them by grouping, exactly as in the section on four terms.
    2x2+6x+x+3=2x(x+3)+1(x+3)=(2x+1)(x+3)
  5. Keep the 1 in 1(x+3). It shows the matching bracket and stops you losing the +1 from the final answer.
  6. Check the middle term, because that is where errors hide: in (2x+1)(x+3) the middle products are 2x×3=6x and 1×x=x, which add to 7x. Correct.
  7. The cubic form ax3+bx2+cx has no constant term, so every term contains x. Take out x (and any number factor) first. What is left in the bracket is a quadratic, which you factorise as above.
    x3−3x2−10x=x(x2−3x−10)=x(x−5)(x+2)
  8. This gives an order of checks for any factorise fully question. First, take out every common factor. Then count the terms left in the bracket: two terms, try the difference of two squares; three terms, try a perfect square, then the multiply-and-add method; four terms, try grouping. Last, look at each bracket in your answer and ask whether it factorises again.

Worked examples

Example 1. Expand and simplify 2x(3x−4)−(x−5)(x+2).

Show the working
  1. Expand the single bracket first.
    2x(3x−4)=6x2−8x
  2. Expand the pair of brackets on its own, and keep the result inside a bracket. The minus sign in front applies to the whole product, not only to its first term.
    (x−5)(x+2)=x2+2x−5x−10=x2−3x−10
  3. Now subtract the whole bracket. Subtracting a bracket changes the sign of every term in it.
    6x2−8x−(x2−3x−10)=6x2−8x−x2+3x+10
  4. Collect like terms: 6x2−x2=5x2, −8x+3x=−5x, and the number term is +10.
    5x2−5x+10
  5. Check with x=1. The original gives 2(1)(−1)−(−4)(3)=−2+12=10, and 5−5+10=10. They agree.

Answer: 5x2−5x+10

Example 2. Expand and simplify (x−3)(2x+1)(x+4).

Show the working
  1. Choose two brackets to start with. (x−3)(x+4) is the easiest pair, because both begin with x.
    (x−3)(x+4)=x2+4x−3x−12=x2+x−12
  2. Multiply that quadratic by the third bracket. Each of its three terms multiplies 2x and then 1.
    (x2+x−12)(2x+1)=2x3+x2+2x2+x−24x−12
  3. Count the products: six, as expected for three terms times two. Now collect like terms.
    2x3+3x2−23x−12
  4. Check with x=2: (2−3)(4+1)(2+4)=(−1)(5)(6)=−30, and 16+12−46−12=−30. They agree.

Answer: 2x3+3x2−23x−12

Example 3. Factorise fully 6x3+3x2−30x.

Show the working
  1. Look for a common factor first. Every term contains x, and 6, 3 and 30 share the factor 3. So take out 3x.
    6x3+3x2−30x=3x(2x2+x−10)
  2. The bracket is a quadratic with a=2. Work out a×c=2×(−10)=−20. You need two numbers that multiply to −20 and add to b=1: they are 5 and −4.
  3. Split the middle term x as 5x−4x and group the four terms in pairs.
    2x2+5x−4x−10=x(2x+5)−2(2x+5)=(2x+5)(x−2)
  4. Put the common factor back in front. Leaving it out would give a different expression.
    6x3+3x2−30x=3x(2x+5)(x−2)
  5. Check the quadratic's middle term: 2x×(−2)+5×x=−4x+5x=x. Correct. Neither bracket factorises again, so the answer is fully factorised.

Answer: 3x(2x+5)(x−2)

Example 4. Factorise fully (a) 18x2−50y2 (b) 2ax+3bx−6ay−9by.

Show the working
  1. (a) Two terms and a minus sign suggest a difference of two squares, but 18 and 50 are not square numbers. Take out the common factor 2 first.
    18x2−50y2=2(9x2−25y2)
  2. Now 9x2=(3x)2 and 25y2=(5y)2, so the bracket is a difference of two squares.
    2(9x2−25y2)=2(3x−5y)(3x+5y)
  3. (b) Four terms with no factor common to all four: group them in pairs. The first pair shares x.
    2ax+3bx=x(2a+3b)
  4. The second pair shares 3y, but both terms are negative, so take out −3y. That makes the bracket match the first one.
    −6ay−9by=−3y(2a+3b)
  5. Both parts now contain (2a+3b), so take it out as a common factor.
    x(2a+3b)−3y(2a+3b)=(2a+3b)(x−3y)

Answer: (a) 2(3x−5y)(3x+5y) (b) (2a+3b)(x−3y)

Where people go wrong

Mistake: Writing (x+5)2=x2+25.

Instead: Write it as (x+5)(x+5) and expand all four products: x2+5x+5x+25=x2+10x+25.

Squaring a bracket multiplies the whole bracket by itself. The two middle products do not cancel. Test with x=1: (1+5)2=36, but 1+25=26.

Mistake: Expanding −3(x−4) as −3x−12.

Instead: −3(x−4)=−3x+12.

The −3 multiplies the −4 as well as the x, and a negative times a negative is positive.

Mistake: Stopping at 12x2+18x=3x(4x+6).

Instead: Take out the HCF of every part: 12x2+18x=6x(2x+3).

4x+6 still has a common factor of 2, so the expression is not fully factorised, and Factorise means factorise fully.

Mistake: Combining unlike terms, e.g. 3x2+2x=5x3.

Instead: 3x2+2x cannot be simplified. It can only be factorised, as x(3x+2).

x2 and x are different quantities, so their coefficients cannot be added. Test with x=2: 3x2+2x=16, but 5x3=40.

Mistake: Factorising x2+9 as (x+3)(x−3).

Instead: x2−9=(x−3)(x+3), but x2+9 does not factorise.

Expanding (x+3)(x−3) gives x2−9. The difference of two squares needs a minus sign between the squares.

Check yourself

  1. Simplify 5m−2n−3m+6n−m.
    Answerm terms: 5m−3m−m=m. n terms: −2n+6n=4n. Answer: m+4n.
  2. Simplify 3x2+4x−5−x2−7x+2.
    Answer3x2−x2=2x2, 4x−7x=−3x, −5+2=−3. Answer: 2x2−3x−3.
  3. Expand and simplify 3(2x−1)−2(x−4).
    Answer6x−3−2x+8=4x+5. The −2 times −4 gives +8.
  4. Expand and simplify (2x−5)2.
    Answer(2x−5)(2x−5)=4x2−10x−10x+25=4x2−20x+25.
  5. Factorise fully 12a2b−18ab2.
    AnswerThe HCF is 6ab, so 12a2b−18ab2=6ab(2a−3b).
  6. Factorise ap+bp+3aq+3bq.
    Answerp(a+b)+3q(a+b)=(a+b)(p+3q).
  7. Factorise 9x2+12xy+4y2.
    AnswerThe square roots of the end terms are 3x and 2y, and 2×3x×2y=12xy, so it is a perfect square: (3x+2y)2.
  8. Factorise fully 2x3−5x2−3x.
    AnswerTake out x: x(2x2−5x−3). Then a×c=−6; the numbers −6 and 1 multiply to −6 and add to −5. So x(2x+1)(x−3).

Exam questions

Try each part first. Open the mark scheme after you have written your answer.

Question 1.

(a) Simplify 6a2−4ab+3−2a2−ab−8. 2 marks No calculator

Mark scheme
  • B2 4a2−5ab−5; B1 for two of the three terms correct in the final answer

(b) Expand and simplify (3x−2)(x+5). 2 marks No calculator

Mark scheme
  • M1 at least three of 3x2, 15x, −2x, −10 correct
  • A1 3x2+13x−10 cao

(c) Expand and simplify (x+1)(x−3)(2x+5). 3 marks No calculator

Mark scheme
  • M1 correct expansion of any two brackets, e.g. x2−2x−3 or 2x2+7x+5 or 2x2−x−15; or, expanding all three brackets at once, at least six of the eight products correct
  • M1 their quadratic multiplied by the remaining bracket, with at least four of the six products correct; FT their quadratic; or all eight products of a direct expansion correct
  • A1 2x3+x2−16x−15 cao

Question 2. Factorise each expression fully.

(a) 50x2−18y2 2 marks No calculator

Mark scheme
  • B2 2(5x−3y)(5x+3y) oe; B1 for 2(25x2−9y2) or (10x−6y)(5x+3y) or (5x−3y)(10x+6y)

(b) 3x2+10x−8 2 marks No calculator

Mark scheme
  • M1 (3x+a)(x+b) where ab=−8 or a+3b=10; or the middle term split correctly, e.g. 3x2+12x−2x−8 oe
  • A1 (3x−2)(x+4) oe

(c) 4x3−4x2−24x 3 marks No calculator

Mark scheme
  • B1 4x(x2−x−6) soi
  • M1 (x−3)(x+2) seen, or a correct factorisation of their three-term quadratic
  • A1 4x(x−3)(x+2) cao

(d) mx+nx+4my+4ny 2 marks No calculator

Mark scheme
  • M1 x(m+n)+4y(m+n) or m(x+4y)+n(x+4y)
  • A1 (m+n)(x+4y) oe

Question 3. A square tile has side (3x+2) cm, where x>0. A square of side (x+2) cm is cut from one corner of the tile. The area of the tile that is left is A cm².

(a) By expanding brackets, show that A=8x2+8x. 2 marks No calculator

Mark scheme
  • M1 (3x+2)2−(x+2)2 with both squares expanded correctly: 9x2+12x+4 and x2+4x+4; or the area split into rectangles, e.g. 2x(3x+2)+2x(x+2), with each product expanded correctly
  • A1 every term of the second expansion subtracted, reaching 8x2+8x with no errors seen (or the rectangle areas added correctly); nfww

(b) By factorising (3x+2)2−(x+2)2 as a difference of two squares, show that A=8x(x+1). 2 marks No calculator

Mark scheme
  • M1 [(3x+2)−(x+2)][(3x+2)+(x+2)] seen oe
  • A1 2x(4x+4) simplified to 8x(x+1) with no errors seen

How this is examined

  • Factorising fully when it takes more than one step: the common factor first, then the bracket: a Factorise question on an expression such as ax3+bx2+cx or k(a2x2−b2y2), where the full answer has three factors The common factor taken out correctly, e.g. 5x(x2+x−6), then the bracket factorised, e.g. 5x(x+3)(x−2). An answer that stops after the first step has not factorised fully, so it cannot earn the final mark.
  • Expanding three brackets: two first, then the third: an Expand and simplify part with three linear brackets, whose answer is a cubic with four terms A correct quadratic from the first two brackets, e.g. x2+x−6; then all six products from multiplying by the third bracket; then the like terms collected into the final four-term cubic.
  • Factorising ax2+bx+c when a is not 1: a two-mark Factorise on a three-term quadratic; the factors may then be needed in a later part of the same question Brackets of the right form, such as (2x+p)(x+q), whose numbers give either the constant term or the middle term earn the method mark (so does a correct split of the middle term). Only the pair that gives both, e.g. (2x−3)(x+5), earns the accuracy mark.
  • Proving a printed result by expanding: a Show (that) part in which the answer is given, e.g. an area that must equal a stated expression Every expansion written out in full, a bracket kept round anything being subtracted, and the working ending at exactly the printed expression. Writing the given answer with no expansions shown earns nothing, because nothing has been shown.
  • Recognising a difference of two squares or a perfect square on sight: a Factorise with two square terms and a minus sign, or three terms whose first and last terms are squares (ax−by)(ax+by) with both square roots correct; for a perfect square, (a+b)2 with the middle term checked as 2ab.
  • Collecting like terms with the sign in front of each term: a one- or two-mark Simplify with several types of term Each type of term collected with its own sign, e.g. −2xy−3xy=−5xy, and no like terms left in the final answer. One sign slip makes that term wrong, so full marks need every term right.

Words to know

Term
A single number, letter, or product of numbers and letters, together with the sign in front of it, e.g. −4xy.
Coefficient
The number that multiplies the letters in a term. In −4xy the coefficient is −4.
Like terms
Terms with exactly the same letters raised to exactly the same powers, such as 3a2b and −a2b.
Expand
Multiply out the brackets, so that the expression is written as a sum of terms.
Factorise
Write an expression as a product of factors. In an exam it means factorise fully, so no bracket can be factorised again.
Common factor
A number, letter or bracket that divides every term of an expression, e.g. 3x in 6x2+3x.
Difference of two squares
An expression of the form a2−b2, which factorises as (a−b)(a+b).
Perfect square
An expression of the form a2+2ab+b2, which factorises as (a+b)2.