Most quadratic expressions, such as 3x2+10x+3, are not perfect squares and not differences of squares, so the identities of the last lesson do not fit. The method that works for all of them that can be factorised is called splitting the middle term. It turns the three terms into four, and then grouping from the second lesson finishes the job.
The idea#
A quadratic expression in x has the form ax2+bx+c, where a, b, c are numbers and a=0. Here a is the coefficient of x2, b the coefficient of x (the middle term), and c the constant term.
To factorise ax2+bx+c:
- Multiply the first and last coefficients: work out a×c.
- Find two numbers whose product is a×c and whose sum is b.
- Split the middle term bx into two terms using those numbers.
- Group the four terms in pairs and take out common factors. A common bracket appears.
- Take out the common bracket.
Why it works#
Look at a simple case, x2+7x+12, where a=1. We need two numbers with product 1×12=12 and sum 7. They are 3 and 4.
x2+7x+12=x2+3x+4x+12=x(x+3)+4(x+3)=(x+3)(x+4)
Expanding (x+3)(x+4) gives x2+3x+4x+12: the two middle numbers add to give the middle term and multiply to give the last term. Splitting the middle term simply runs the expansion backwards.
Worked examples#
Example 1#
Factorise 3x2+10x+3.
Here a×c=3×3=9. List the pairs of factors of 9: 1×9 and 3×3. The pair that adds to 10 is 1 and 9, since 1+9=10.
3x2+10x+3=3x2+x+9x+3=x(3x+1)+3(3x+1)=(3x+1)(x+3)
Example 2: a negative middle term#
Factorise 4y2−8y+3.
Here a×c=4×3=12. The product is positive but the sum, −8, is negative, so both numbers must be negative. Factor pairs of 12: 1×12, 2×6, 3×4. The pair −2 and −6 works, since (−2)×(−6)=12 and −2−6=−8.
4y2−8y+3=4y2−2y−6y+3=2y(2y−1)−3(2y−1)=(2y−1)(2y−3)
In the second line, −3 was taken out of −6y+3, which leaves (2y−1). Taking out +3 would have left (−2y+1), which does not match.
Example 3: a negative last term#
Factorise 2x2−3x−2.
Here a×c=2×(−2)=−4. A negative product means the two numbers have opposite signs. Pairs with product −4: −1 and 4, 1 and −4, −2 and 2. The pair with sum −3 is 1 and −4.
2x2−3x−2=2x2+x−4x−2=x(2x+1)−2(2x+1)=(2x+1)(x−2)
Example 4#
Factorise 6x2+5x−6.
Here a×c=6×(−6)=−36. Pairs of factors of 36: 1×36, 2×18, 3×12, 4×9, 6×6. We need opposite signs with sum +5, and −4+9=5.
6x2+5x−6=6x2−4x+9x−6=2x(3x−2)+3(3x−2)=(3x−2)(2x+3)
A sign guide#
The signs of a×c and b tell you the signs of the two numbers before you start searching:
When the product is large#
If a×c is a big number, do not list every pair. Break it into primes, then build pairs from the primes.
Example 5#
Factorise 11x2−54x+63.
Here a×c=11×63=693. In primes, 693=11×7×9=11×3×3×7. We need two negative numbers adding to −54. Try grouping the primes: 77×9 gives sum 86, too big. 33×21 gives sum 54. So the numbers are −33 and −21.
11x2−54x+63=11x2−33x−21x+63=11x(x−3)−21(x−3)=(x−3)(11x−21)
Example 6: terms in the wrong order, negative leading term#
Factorise 28−31x−5x2.
First write the terms in descending powers of x: −5x2−31x+28. Here a×c=(−5)×28=−140. Since 140=5×4×7=35×4, and we need sum −31, the numbers are −35 and 4.
−5x2−31x+28=−5x2−35x+4x+28=−5x(x+7)+4(x+7)=(x+7)(−5x+4)
It is neater to write the answer as (x+7)(4−5x). Check: (x+7)(4−5x)=4x−5x2+28−35x=28−31x−5x2.
Be careful when you rewrite a factorisation with the brackets turned round. (x+7)(4−5x) is correct, but (7−x)(4−5x) is not: it expands to 28−39x+5x2. Changing the signs inside one bracket changes the product, unless you also change the signs inside the other bracket.
Practice#
Factorise.
- x2+9x+20
- x2−2x−15
- 5x2+13x+6
- 3x2−14x+8
- 10x2+x−3
- 6x2−13x+6
- −2x2−3x+2
- 7x−6−2x2
- 7x2−19x−6
- 12+x−6x2
Answers#
Show answers
- Product 20, sum 9: 4 and 5. (x+4)(x+5)
- Product −15, sum −2: −5 and 3. (x−5)(x+3)
- Product 30, sum 13: 10 and 3. 5x(x+2)+3(x+2)=(5x+3)(x+2)
- Product 24, sum −14: −12 and −2. 3x(x−4)−2(x−4)=(3x−2)(x−4)
- Product −30, sum 1: 6 and −5. 2x(5x+3)−1(5x+3)=(5x+3)(2x−1)
- Product 36, sum −13: −4 and −9. 2x(3x−2)−3(3x−2)=(3x−2)(2x−3)
- Product −4, sum −3: −4 and 1. −2x2−4x+x+2=−2x(x+2)+1(x+2)=(x+2)(1−2x)
- In order, −2x2+7x−6. Product 12, sum 7: 4 and 3. −2x(x−2)+3(x−2)=(x−2)(3−2x), which is the same as (2x−3)(2−x).
- Product −42, sum −19: −21 and 2. 7x(x−3)+2(x−3)=(x−3)(7x+2)
- In order, −6x2+x+12. Product −72, sum 1: 9 and −8. −3x(2x−3)−4(2x−3)=(2x−3)(−3x−4), which is neater as (3−2x)(3x+4).