Expand two brackets by multiplying every term by every term
To expand two brackets, multiply each term in the first bracket by every term in the second, then collect like terms.
The result, such as x2+7x+12,{x^2 + 7x + 12\text{,}}x2+7x+12, is a quadratic expression, and factorising turns it back into brackets.
Quadratic expression
An expression in which the highest power of the letter is 2, such as x2+7x+12.{x^2 + 7x + 12\text{.}}x2+7x+12.
It can have three kinds of term:
- The x2{x^2}x2 term, the product of the two x{x}x terms.
- The x{x}x term, the two middle products collected.
- The constant term, a number on its own.
The constant term comes from multiplying 3 by 4, never from adding them.
The x{x}x terms multiply, so x×x=x2,{x \times x = x^2\text{,}}x×x=x2, not 2x.{2x\text{.}}2x. Keep each sign with its term, using the rules in the guide Negative Numbers, so −2×(−4)=+8{-2 \times (-4) = +8}−2×(−4)=+8 and −2x+9x=7x,{-2x + 9x = 7x\text{,}}−2x+9x=7x, not 11x.{11x\text{.}}11x.
Expanding with a number in front of x
Expand and simplify (2x−3)(x−5).{(2x - 3)(x - 5)\text{.}}(2x−3)(x−5).
- The four products are 2x×x=2x2,{2x \times x = 2x^2\text{,}}2x×x=2x2, 2x×(−5)=−10x,{2x \times (-5) = -10x\text{,}}2x×(−5)=−10x, −3×x=−3x{-3 \times x = -3x}−3×x=−3x and −3×(−5)=+15.{-3 \times (-5) = +15\text{.}}−3×(−5)=+15.
- Collect the x{x}x terms. Starting at −10{-10}−10 and going down 3 more gives −10x−3x=−13x.{-10x - 3x = -13x\text{.}}−10x−3x=−13x.
- So (2x−3)(x−5)=2x2−13x+15.{(2x - 3)}{(x - 5)} = 2x^2 - 13x + 15\text{.}(2x−3)(x−5)=2x2−13x+15.
Squaring 3x{3x}3x squares the 3 as well as the x,{x\text{,}}x, so (3x)2=3x×3x=9x2.{(3x)^2 = 3x \times 3x = 9x^2\text{.}}(3x)2=3x×3x=9x2.
Wrong. Squaring each term gives (x+5)2=x2+25.{(x + 5)^2 = x^2 + 25\text{.}}(x+5)2=x2+25.
Right. A squared bracket is the bracket multiplied by itself, so (x+5)2=(x+5)(x+5)=x2+5x+5x+25=x2+10x+25.{(x + 5)^2} = {(x + 5)}{(x + 5)} = x^2 + 5x + 5x + 25 = x^2 + 10x + 25\text{.}(x+5)2=(x+5)(x+5)=x2+5x+5x+25=x2+10x+25.
Wrong. Expanding 20−(x+3)2{20 - (x + 3)^2}20−(x+3)2 without a bracket gives 20−x2+6x+9=29+6x−x2.20 - x^2 + 6x + 9 = 29 + 6x - x^2\text{.}20−x2+6x+9=29+6x−x2.
Right. The minus must reach every term of the expansion, so keep it in a bracket. 20−(x2+6x+9)=20−x2−6x−9=11−6x−x2.20 - {(x^2 + 6x + 9)} = 20 - x^2 - 6x - 9 = 11 - 6x - x^2\text{.}20−(x2+6x+9)=20−x2−6x−9=11−6x−x2.
In expand and simplify, write all four products before collecting like terms, as they earn a mark even after a sign slip.
Factorise x2+bx+c{x^2 + bx + c}x2+bx+c with two numbers that add to b{b}b and multiply to c{c}c
Factorising x2+bx+c{x^2 + bx + c}x2+bx+c reverses expanding. The two numbers in the brackets add to give b{b}b and multiply to give c.{c\text{.}}c.
Every pair multiplies to 24, but only 4 and 6 add to 10.
Expanding shows why:
(x+p)(x+q)=x2+(p+q)x+pq (x + p)(x + q) = x^2 + (p + q)x + pq (x+p)(x+q)=x2+(p+q)x+pqwhere p{p}p and q{q}q are the numbers in the brackets. Use it when the x2{x^2}x2 term has no number in front. Quadratics such as 2x2+7x+3{2x^2 + 7x + 3}2x2+7x+3 are factorised in the guide Factorising Harder Quadratics.
The signs of b{b}b and c{c}c fix the signs of the two numbers:
- If b{b}b and c{c}c are both positive, both numbers are positive.
- If b{b}b is negative and c{c}c is positive, both numbers are negative.
- If c{c}c is negative, one number is positive and one is negative.
Factorising with a negative constant term
Factorise x2−3x−18.{x^2 - 3x - 18\text{.}}x2−3x−18.
- The numbers multiply to give −18{-18}−18 and add to give −3.{-3\text{.}}−3.
- As the sum is negative, the larger factor takes the minus sign. 1{1}1 and −18{-18}−18 add to −17,{-17\text{,}}−17, 2{2}2 and −9{-9}−9 add to −7,{-7\text{,}}−7, and 3{3}3 and −6{-6}−6 add to −3.{-3\text{.}}−3.
- So x2−3x−18=(x+3)(x−6).x^2 - 3x - 18 = {(x + 3)}{(x - 6)}\text{.}x2−3x−18=(x+3)(x−6).
- Check by expanding, x2−6x+3x−18=x2−3x−18.x^2 - 6x + 3x - 18 = x^2 - 3x - 18\text{.}x2−6x+3x−18=x2−3x−18.
The −3{-3}−3 is the sum of the numbers, not one of them, so (x−3)(x+6){(x - 3)(x + 6)}(x−3)(x+6) is wrong. Nor is x(x−3)−18{x(x - 3) - 18}x(x−3)−18 factorised, as −18{-18}−18 is left outside the brackets.
Explaining an error
Jess says x2−2x−24=(x+6)(x−4)x^2 - 2x - 24 = {(x + 6)}{(x - 4)}x2−2x−24=(x+6)(x−4) because 6×(−4)=−24.{6 \times (-4) = -24\text{.}}6×(−4)=−24. Explain her error.
- The numbers must multiply to give −24{-24}−24 and add to give −2.{-2\text{.}}−2.
- 6+(−4)=2,{6 + (-4) = 2\text{,}}6+(−4)=2, not −2,{-2\text{,}}−2, so her signs are the wrong way round.
- The numbers are −6{-6}−6 and 4,{4\text{,}}4, so x2−2x−24=(x−6)(x+4).x^2 - 2x - 24 = {(x - 6)}{(x + 4)}\text{.}x2−2x−24=(x−6)(x+4).
To explain an error, say what the sum or product should be and what the student's numbers give. The correct factorisation alone does not explain it.
Factorise a difference of two squares as (a+b)(a−b){(a + b)(a - b)}(a+b)(a−b) (Higher)
A difference of two squares, such as x2−25,{x^2 - 25\text{,}}x2−25, factorises into two brackets even though it has no x{x}x term.
Difference of two squares
An expression in which one square is subtracted from another, written a2−b2.{a^2 - b^2\text{.}}a2−b2.
Writing each term as a square first shows which two square roots go in the brackets.
In general:
a2−b2=(a+b)(a−b) a^2 - b^2 = (a + b)(a - b) a2−b2=(a+b)(a−b)where a{a}a and b{b}b can be numbers, terms such as 3x{3x}3x or whole brackets. On two squared brackets it is often quicker than expanding both.
Two squared brackets
Simplify fully (x+6)2−(x+2)2.{(x + 6)^2 - (x + 2)^2\text{.}}(x+6)2−(x+2)2.
- This is a2−b2{a^2 - b^2}a2−b2 with a=x+6{a = x + 6}a=x+6 and b=x+2.{b = x + 2\text{.}}b=x+2.
- a+b=(x+6)+(x+2)=2x+8a + b = {(x + 6)} + {(x + 2)} = 2x + 8a+b=(x+6)+(x+2)=2x+8
- a−b=(x+6)−(x+2)=x+6−x−2=4,a - b = {(x + 6)} - {(x + 2)} = x + 6 - x - 2 = 4\text{,}a−b=(x+6)−(x+2)=x+6−x−2=4, as the minus reaches both terms.
- (a+b)(a−b)=(2x+8)×4=8x+32{(a + b)}{(a - b)} = {(2x + 8)} \times 4 = 8x + 32(a+b)(a−b)=(2x+8)×4=8x+32
Hence, or otherwise means use the factorisation just found or any correct method, such as expanding both brackets. Both 8(x+4){8(x + 4)}8(x+4) and 8x+32{8x + 32}8x+32 are accepted.
Ask "a square minus a square?" whenever squares are subtracted, even with numbers. So (x+3)2−25=(x+3+5)(x+3−5)=(x+8)(x−2),{(x + 3)^2} - 25 = {(x + 3 + 5)}{(x + 3 - 5)} = {(x + 8)}{(x - 2)}\text{,}(x+3)2−25=(x+3+5)(x+3−5)=(x+8)(x−2), and 532−472=100×6=600.53^2 - 47^2 = 100 \times 6 = 600\text{.}532−472=100×6=600.
Check your understanding of expanding and factorising quadratics
- Why is (x+4)2{(x + 4)^2}(x+4)2 not equal to x2+16?{x^2 + 16\text{?}}x2+16?
- How do you decide which factor pair of c{c}c to use when you factorise x2+bx+c?{x^2 + bx + c\text{?}}x2+bx+c?
- How can you check that a factorisation is correct?
What is (x−7)2{(x - 7)^2}(x−7)2 expanded and simplified?
Solution
x2−14x+49{x^2 - 14x + 49}x2−14x+49
What is n2−11n+28{n^2 - 11n + 28}n2−11n+28 factorised?
Solution
(n−4)(n−7){(n - 4)(n - 7)}(n−4)(n−7)