Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 7 · Algebra basics
GCSE Maths · Algebra Basics · Foundation · Lesson 7.7

GCSE Maths: Factorising x² + bx + c and the difference of two squares (Foundation)

Part of the GCSE Maths algebra basics chapter (Foundation). Chapter overview · Higher version of this lesson · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
7.7

Factorising x² + bx + c and the difference of two squares

Edexcel 1MA1: A4
Grade 4-7

An expression such as x2 + 5x + 6 is called a quadratic expression, because the highest power of x is 2. In Section 7.5 you expanded (x + 2)(x + 3) and got x2 + 5x + 6. Now we go backwards.

Look at how the answer was built. When you expand (x + p)(x + q) you get x2 + (p + q)x + pq. So the middle number is the sum of p and q, and the last number is their product.

x² + 5x + 6 = (x + 2)(x + 3)x3x²3xx2x62x + 3x + 2
The rectangle with area x2 + 5x + 6 has sides (x + 2) and (x + 3). The two numbers 2 and 3 multiply to give 6 and add to give 5.

The method for x2 + bx + c

Step 1. Find two numbers that multiply to c (the last number) and add to b (the middle number). List the factor pairs of c to find them.
Step 2. Write them in two brackets: (x + first number)(x + second number).
Step 3. Check by expanding.

Signs of the expressionWhat the two numbers areExample
b and c both positiveboth positivex2 + 7x + 12 = (x + 3)(x + 4)
b negative, c positiveboth negativex2 − 7x + 12 = (x − 3)(x − 4)
c negativeone positive and one negative; the bigger one has the sign of bx2 + x − 12 = (x − 3)(x + 4)
x2 − x − 12 = (x + 3)(x − 4)

Always check first for a common factor (Section 7.6): 2x2 + 10x + 12 = 2(x2 + 5x + 6) = 2(x + 2)(x + 3).

A perfect square happens when the two numbers are the same: x2 + 6x + 9 = (x + 3)(x + 3) = (x + 3)2.

The difference of two squares

You saw in Section 7.5 that (x + 4)(x − 4) = x2 − 16: the middle terms cancel. So going backwards, an expression of the form a2 − b2 (a square, minus a square) factorises as (a − b)(a + b).

a²xxx² − a² is the big square with thea² corner removed. Move the orange piece.xax − awidth = x + a, height = x − aarea = (x − a)(x + a)the same pieces, so the same area→
A picture of the rule: the big square with a small square removed has area x2 − a2. Cut off the orange strip and move it to the side to make a rectangle with sides (x − a) and (x + a).

To use it: (1) check there are two terms with a minus between them, (2) check both terms are squares, (3) square root each one, (4) write (a − b)(a + b). For example 4x2 − 25: the square root of 4x2 is 2x and the square root of 25 is 5, so the answer is (2x − 5)(2x + 5).

It is also a quick way to do arithmetic without a calculator: 512 − 492 = (51 − 49)(51 + 49) = 2 × 100 = 200.

Key ideas

  • Factorising x2 + bx + c: find two numbers that multiply to c and add to b. Then (x + number)(x + number).
  • Check for a common factor first, and check your answer by expanding.
  • Difference of two squares: a2 − b2 = (a − b)(a + b). It needs a minus and two squares.
  • x2 + 9 (a plus) cannot be factorised with this rule.
  • Square numbers to know: 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225.
Worked example 7.7.1
Factorise x2 + 7x + 12.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of x2 + 7x + 12 have no common factor other than 1, so there is nothing to take out.
  2. Factorise the quadratic. It has three terms, so we use the "two numbers" method. Follow every line carefully.
    Spot the pattern. This is a quadratic of the form x² + bx + c, with b = 7 and c = 12.
    We need two numbers that multiply to 12 (the last number) and add to 7 (the middle number). List the pairs that multiply to 12:
    1 × 12 = 12,   add: 1 + 12 = 13 ✗
    −1 × −12 = 12,   add: −1 + −12 = −13 ✗
    2 × 6 = 12,   add: 2 + 6 = 8 ✗
    −2 × −6 = 12,   add: −2 + −6 = −8 ✗
    3 × 4 = 12,   add: 3 + 4 = 7 ✓ this pair works
    Put the pair into two brackets: (x + 3)(x + 4).
    Check by expanding: x² + 4x + 3x + 12 = x2 + 7x + 12. ✓
  3. Write the answer. The brackets are the factors of the quadratic. We have checked by expanding that they multiply back to the original.
    x2 + 7x + 12 = (x + 3)(x + 4)

Check. Expand the answer: (x + 3)(x + 4) gives x2 + 7x + 12 again. ✓

Watch out. Always check by expanding. If you do not get the original expression back, the factorising is wrong. And check for a common factor first: it makes the numbers smaller.

Worked example 7.7.2
Factorise x2 − 9x + 20.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of x2 − 9x + 20 have no common factor other than 1, so there is nothing to take out.
  2. Factorise the quadratic. It has three terms, so we use the "two numbers" method. Follow every line carefully.
    Spot the pattern. This is a quadratic of the form x² + bx + c, with b = −9 and c = 20.
    We need two numbers that multiply to 20 (the last number) and add to −9 (the middle number). List the pairs that multiply to 20:
    1 × 20 = 20,   add: 1 + 20 = 21 ✗
    −1 × −20 = 20,   add: −1 + −20 = −21 ✗
    2 × 10 = 20,   add: 2 + 10 = 12 ✗
    −2 × −10 = 20,   add: −2 + −10 = −12 ✗
    4 × 5 = 20,   add: 4 + 5 = 9 ✗
    −4 × −5 = 20,   add: −4 + −5 = −9 ✓ this pair works
    Put the pair into two brackets: (x − 4)(x − 5).
    Check by expanding: x² − 5x − 4x + 20 = x2 − 9x + 20. ✓
  3. Write the answer. The brackets are the factors of the quadratic. We have checked by expanding that they multiply back to the original.
    x2 − 9x + 20 = (x − 5)(x − 4)

Check. Expand the answer: (x − 5)(x − 4) gives x2 − 9x + 20 again. ✓

Watch out. Always check by expanding. If you do not get the original expression back, the factorising is wrong. And check for a common factor first: it makes the numbers smaller.

Worked example 7.7.3
Factorise x2 + 2x − 15.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of x2 + 2x − 15 have no common factor other than 1, so there is nothing to take out.
  2. Factorise the quadratic. It has three terms, so we use the "two numbers" method. Follow every line carefully.
    Spot the pattern. This is a quadratic of the form x² + bx + c, with b = 2 and c = −15.
    We need two numbers that multiply to −15 (the last number) and add to 2 (the middle number). List the pairs that multiply to −15:
    1 × −15 = −15,   add: 1 + −15 = −14 ✗
    −1 × 15 = −15,   add: −1 + 15 = 14 ✗
    3 × −5 = −15,   add: 3 + −5 = −2 ✗
    −3 × 5 = −15,   add: −3 + 5 = 2 ✓ this pair works
    Put the pair into two brackets: (x − 3)(x + 5).
    Check by expanding: x² + 5x − 3x − 15 = x2 + 2x − 15. ✓
  3. Write the answer. The brackets are the factors of the quadratic. We have checked by expanding that they multiply back to the original.
    x2 + 2x − 15 = (x − 3)(x + 5)

Check. Expand the answer: (x − 3)(x + 5) gives x2 + 2x − 15 again. ✓

Watch out. Always check by expanding. If you do not get the original expression back, the factorising is wrong. And check for a common factor first: it makes the numbers smaller.

Worked example 7.7.4
Factorise x2 − 3x − 28.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of x2 − 3x − 28 have no common factor other than 1, so there is nothing to take out.
  2. Factorise the quadratic. It has three terms, so we use the "two numbers" method. Follow every line carefully.
    Spot the pattern. This is a quadratic of the form x² + bx + c, with b = −3 and c = −28.
    We need two numbers that multiply to −28 (the last number) and add to −3 (the middle number). List the pairs that multiply to −28:
    1 × −28 = −28,   add: 1 + −28 = −27 ✗
    −1 × 28 = −28,   add: −1 + 28 = 27 ✗
    2 × −14 = −28,   add: 2 + −14 = −12 ✗
    −2 × 14 = −28,   add: −2 + 14 = 12 ✗
    4 × −7 = −28,   add: 4 + −7 = −3 ✓ this pair works
    Put the pair into two brackets: (x + 4)(x − 7).
    Check by expanding: x² − 7x + 4x − 28 = x2 − 3x − 28. ✓
  3. Write the answer. The brackets are the factors of the quadratic. We have checked by expanding that they multiply back to the original.
    x2 − 3x − 28 = (x − 7)(x + 4)

Check. Expand the answer: (x − 7)(x + 4) gives x2 − 3x − 28 again. ✓

Watch out. Always check by expanding. If you do not get the original expression back, the factorising is wrong. And check for a common factor first: it makes the numbers smaller.

Worked example 7.7.5
Factorise x2 + 6x + 9.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of x2 + 6x + 9 have no common factor other than 1, so there is nothing to take out.
  2. Factorise the quadratic. It has three terms, so we use the "two numbers" method. Follow every line carefully.
    Spot the pattern. This is a quadratic of the form x² + bx + c, with b = 6 and c = 9.
    We need two numbers that multiply to 9 (the last number) and add to 6 (the middle number). List the pairs that multiply to 9:
    1 × 9 = 9,   add: 1 + 9 = 10 ✗
    −1 × −9 = 9,   add: −1 + −9 = −10 ✗
    3 × 3 = 9,   add: 3 + 3 = 6 ✓ this pair works
    Put the pair into two brackets: (x + 3)(x + 3).
    Check by expanding: x² + 3x + 3x + 9 = x2 + 6x + 9. ✓
  3. Write the answer. The brackets are the factors of the quadratic. We have checked by expanding that they multiply back to the original.
    x2 + 6x + 9 = (x + 3)2

Check. Expand the answer: (x + 3)2 gives x2 + 6x + 9 again. ✓

Watch out. Always check by expanding. If you do not get the original expression back, the factorising is wrong. And check for a common factor first: it makes the numbers smaller.

Worked example 7.7.6
Factorise x2 − 49.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of x2 − 49 have no common factor other than 1, so there is nothing to take out.
  2. Look at the expression. Count the terms and check for squares. A difference of two squares has exactly two terms, both are perfect squares (something multiplied by itself), and there is a minus between them.
    x2 − 49:   x2 is a square and 49 is a square, with a minus between them. ✓
  3. Remember the rule. It comes from expanding (a − b)(a + b) = a2 + ab − ab − b2 = a2 − b2. The two middle terms cancel. Going backwards:
    a2 − b2 = (a − b)(a + b)
  4. Find a and b by square rooting each term. The square root undoes the square. Take the square root of the number, and halve the power of each letter.
    x2 = (x)2, so a = x
    49 = (7)2, so b = 7
  5. Put a and b into the rule. One bracket has a minus, the other has a plus.
    (x − 7)(x + 7)

Check. Expand to check. (x − 7)(x + 7): x × x = x2; x × 7 = 7x and (−7) × x = −7x (these two cancel); (−7) × 7 = −49. Total: x2 − 49. ✓

Watch out. It only works with a minus between two squares. x2 + 9 cannot be factorised like this. Square root the number and the letter: 25x2 gives 5x, not 25x.

Worked example 7.7.7
Factorise 4x2 − 25.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Check for a common factor first. Always check this first. A common factor is a number or letter that divides into every term.
    The terms of 4x2 − 25 have no common factor other than 1, so there is nothing to take out.
  2. Look at the expression. Count the terms and check for squares. A difference of two squares has exactly two terms, both are perfect squares (something multiplied by itself), and there is a minus between them.
    4x2 − 25:   4x2 is a square and 25 is a square, with a minus between them. ✓
  3. Remember the rule. It comes from expanding (a − b)(a + b) = a2 + ab − ab − b2 = a2 − b2. The two middle terms cancel. Going backwards:
    a2 − b2 = (a − b)(a + b)
  4. Find a and b by square rooting each term. The square root undoes the square. Take the square root of the number, and halve the power of each letter.
    4x2 = (2x)2, so a = 2x
    25 = (5)2, so b = 5
  5. Put a and b into the rule. One bracket has a minus, the other has a plus.
    (2x − 5)(2x + 5)

Check. Expand to check. (2x − 5)(2x + 5): 2x × 2x = 4x2; 2x × 5 = 10x and (−5) × 2x = −10x (these two cancel); (−5) × 5 = −25. Total: 4x2 − 25. ✓

Watch out. It only works with a minus between two squares. x2 + 9 cannot be factorised like this. Square root the number and the letter: 25x2 gives 5x, not 25x.

Worked example 7.7.8
Factorise fully 2x2 − 32.

Key words. A factor of a term divides into it exactly. A common factor of several terms is a factor of all of them. To factorise an expression means to write it as a product, with brackets. It is the reverse of expanding.

Method. Factorising: (1) take out any common factor, (2) look at what is left: a difference of two squares or a quadratic with three terms, (3) check by expanding.

  1. Write the terms and think: what could divide into every one? Factorising is the opposite of expanding: we take a common factor outside a bracket. A common factor is a number or letter that divides exactly into every term. We want the highest common factor, so that nothing is left to take out.
    The terms are: 2x2, −32
  2. Find the highest common factor of the numbers. List the factors of each number (all the numbers that divide into it exactly). The biggest number that is in every list is the number part of the common factor.
    Factors of 2: 1, 2
    Factors of 32: 1, 2, 4, 8, 16, 32
    The biggest number that is in every list is 2.
  3. Find the letters that are in every term. A letter is part of the common factor only if it appears in every term. Then use the lowest power of it, because that is the most that divides into all of them (x divides into x2 and into x, but x2 does not divide into x).
    x: it is missing from at least one term (a missing letter has power 0), so it is not common.
  4. Write the highest common factor. Multiply the number part and the common letters together.
    HCF = 2
  5. Write the HCF outside a bracket. Inside the bracket put each term divided by the HCF. This is the reverse of expanding. Each division tells us what must be left inside the bracket.
    2x2 ÷ 2 = x2
    −32 ÷ 2 = −16
    So we can write 2(x2 − 16)
  6. Look at the bracket. Can it be factorised again? After taking out the HCF, the bracket might be a difference of two squares or a quadratic that factorises. A question that says "factorise fully" needs every possible factor taken out.
    The bracket is (x2 − 16) = x2 − 16.
  7. Look at the expression. Count the terms and check for squares. A difference of two squares has exactly two terms, both are perfect squares (something multiplied by itself), and there is a minus between them.
    x2 − 16:   x2 is a square and 16 is a square, with a minus between them. ✓
  8. Remember the rule. It comes from expanding (a − b)(a + b) = a2 + ab − ab − b2 = a2 − b2. The two middle terms cancel. Going backwards:
    a2 − b2 = (a − b)(a + b)
  9. Find a and b by square rooting each term. The square root undoes the square. Take the square root of the number, and halve the power of each letter.
    x2 = (x)2, so a = x
    16 = (4)2, so b = 4
  10. Put a and b into the rule. One bracket has a minus, the other has a plus.
    (x − 4)(x + 4)
  11. Write the full answer. Do not forget the common factor you took out at the start. It stays in front of the brackets.
    2x2 − 32 = 2(x − 4)(x + 4)

Check. Expand to check. (x − 4)(x + 4): x × x = x2; x × 4 = 4x and (−4) × x = −4x (these two cancel); (−4) × 4 = −16. Total: x2 − 16. ✓ Then multiply by 2: 2x2 − 32. ✓

Watch out. It only works with a minus between two squares. x2 + 9 cannot be factorised like this. Square root the number and the letter: 25x2 gives 5x, not 25x.

Worked example 7.7.9
Work out 512 − 492 without a calculator.

Method. Use the difference of two squares, a2 − b2 = (a − b)(a + b), to avoid awkward squaring.

  1. Spot the pattern. Two square numbers with a minus between them: this is a difference of two squares, a2 − b2. Using the rule saves us from squaring big or awkward numbers.
    512 − 492, with a = 51 and b = 49
  2. Use the rule a2 − b2 = (a − b)(a + b). The first bracket is the difference of the two numbers and the second is their sum.
    (a − b) = 51 − 49 = 2
    (a + b) = 51 + 49 = 100
  3. Multiply the two answers. These are easy numbers, which is why the rule helps.
    2 × 100 = 200

Check. Calculator check: 512 = 2601 and 492 = 2401, and 2601 − 2401 = 200. ✓

Watch out. Subtract and add the two numbers (not their squares): (a − b) and (a + b).

Watch out

The numbers must multiply to the last number and add to the middle number. Many students find a pair that multiplies correctly but forget to check the sum: 12 = 2 × 6 but 2 + 6 = 8, not 7. And with a minus in front of the last number, the two numbers have different signs. For the difference of two squares, the answer is two brackets with the same numbers but opposite signs; (x − 4)(x − 4) is wrong for x2 − 16.

Exercise 7G  Factorising x² + bx + c

Non-calculator
1
FFactorise each expression.
(a)x2 + 5x + 6
(b)x2 + 7x + 10
(c)x2 + 8x + 15
(d)x2 + 9x + 20
(e)x2 + 10x + 24
(f)x2 + 6x + 8
2
FFactorise each expression.
(a)x2 − 7x + 12
(b)x2 − 6x + 8
(c)x2 − 10x + 21
(d)x2 − 8x + 15
(e)x2 − 9x + 14
3
FFactorise each expression.
(a)x2 + 2x − 8
(b)x2 − x − 12
(c)x2 + 3x − 18
(d)x2 − 4x − 5
(e)x2 + 5x − 14
(f)x2 − 2x − 24
4
FFill in the missing numbers.
(a)x2 + 9x + 14 = (x + ?)(x + ?)
(b)x2 − 8x + 15 = (x − ?)(x − ?)
(c)x2 + x − 12 = (x + ?)(x − ?)
5
FFactorise each expression.
(a)y2 + 8y + 12
(b)a2 − a − 20
(c)p2 − 10p + 16
(d)m2 + 4m − 21
6
FThese are perfect squares. Factorise each one and write your answer as a squared bracket.
(a)x2 + 6x + 9
(b)x2 − 10x + 25
(c)x2 + 14x + 49
(d)y2 − 4y + 4
7
PSA rectangle has area (x2 + 8x + 15) cm2. (a) Factorise the expression to find the lengths of its two sides. (b) Write a simplified expression for the perimeter.
??area = x² + 8x + 15
(a)the lengths of the two sides
(b)the perimeter
8
PSThe area of a rectangular patio is (x2 + 7x + 12) m2. Its width is (x + 3) m. Find an expression for its length.
9
RZak factorises x2 + 5x + 6 as (x + 1)(x + 6). Show that Zak is wrong, and find the correct answer.
10
RExplain why x2 + 5x + 7 cannot be factorised into brackets with whole numbers.
11
RShow that x2 − x − 6 = (x − 3)(x + 2) by expanding the brackets.
12
F(a) Find two numbers that multiply to 12 and add to 7. (b) Use your answer to factorise x2 + 7x + 12.
(a)Find the two numbers.
(b)Factorise x2 + 7x + 12.

Exercise 7H  Difference of two squares and mixed factorising

Non-calculator
1
FFactorise each expression.
(a)x2 − 9
(b)x2 − 25
(c)y2 − 49
(d)a2 − 100
(e)p2 − 1
(f)x2 − 64
2
FFactorise each expression.
(a)4x2 − 9
(b)9y2 − 1
(c)16a2 − 25
(d)100x2 − 81
3
FUse the difference of two squares to work out each answer without a calculator.
(a)512 − 492
(b)992 − 12
(c)7.52 − 2.52
(d)10012 − 9992
4
FFactorise each expression fully. (Look for a common factor first.)
(a)2x2 − 8
(b)3x2 − 75
(c)5y2 − 20
(d)4a2 − 100
(e)7x2 − 7
5
FFactorise each expression.
(a)x2 − y2
(b)9a2 − 4b2
(c)25p2 − 16q2
(d)49m2 − n2
6
FFactorise each expression.
(a)25 − x2
(b)49 − 4y2
(c)1 − 9a2
7
PSA square of side 10 cm has a small square of side x cm cut from one corner. (a) Write an expression for the area that is left. (b) Factorise your expression.
(a)the area left
(b)factorise it
8
PSOne square has side 13 cm and another has side 7 cm. Work out the difference between their areas without a calculator.
9
RExplain why x2 + 16 cannot be factorised using the difference of two squares.
10
RRavi factorises x2 − 16 as (x − 4)(x − 4). Is he correct? Explain.
11
RIs x2 − 12 a difference of two squares? Explain your answer.
12
FFactorise each expression fully. Each one uses a different method.
(a)x2 + 9x
(b)x2 − x − 20
(c)x2 − 36
(d)3x2 + 6x
(e)y2 − 2y − 24
(f)2x2 − 50

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings