Solving Quadratics by Factorising
On this page
How to solve a quadratic equation by factorising it into brackets and setting each bracket equal to zero, including equations with no number on its own, a difference of two squares, and using the solutions in a problem.
What solving a quadratic equation means
Quadratic equations have an x^2 term and no higher power of x, such as x^2-x-12=0. To solve one means to find the values of x that make it true.
Most quadratic equations have two solutions. Here they are x=4 and x=-3. Try x=4: 4^2-4-12=16-4-12=0, so it works.
In the exam you are usually asked to solve an equation such as x^2+3x-10=0, for 3 marks, near the end of a paper. You can get a mark just for the correct brackets, so always write them down. If a question says hence, use your answer to the part before.
Why brackets help
If two numbers multiply to give 0, at least one of them must be 0. For example, if 7\times n=0, then n must be 0
Brackets work in the same way. If (x-4)(x+6)=0, then either the first bracket is 0 or the second bracket is 0. So either x-4=0 or x+6=0
Solve each one: x-4=0 gives x=4, and x+6=0 gives x=-6. So the solutions are x=4 or x=-6
Notice that each solution has the opposite sign to the number in its bracket: (x-4) gives 4, and (x+6) gives -6. To check, put each solution into its bracket. It should make 0
Worked example 1: Solving when the brackets are given
Solve (x+9)(x-2)=0
- The brackets multiply to give 0, so either x+9=0 or x-2=0
-
Your turn. Solve x+9=0
Subtract 9 from both sides: x=-9
- Add 2 to both sides of x-2=0: x=2
- Check: -9+9=0 and 2-2=0, so each solution makes its bracket 0
- Answer: x=-9 or x=2
Factorise, then solve
Most questions give the quadratic multiplied out, in the form x^2+bx+c=0. You factorise it into two brackets first, then solve each bracket.
- Check that one side of the equation is 0
- Find two numbers that multiply to give c and add to give b.
- Write the equation as two brackets equal to 0
- Set each bracket equal to 0 and solve it.
If the two numbers are p and q, then
x^2+bx+c=(x+p)(x+q)
where p\times q=c and p+q=b. The solutions are x=-p and x=-q
Sometimes both brackets are the same. x^2-8x+16=(x-4)(x-4), so x^2-8x+16=0 has only one solution, x=4
Worked example 2: Two negative solutions
Solve x^2+8x+12=0
- Find two numbers that multiply to give 12 and add to give 8
- Factor pairs of 12: 1\times12, 2\times6 and 3\times4. Only 2+6=8
- So the equation is (x+2)(x+6)=0
-
Your turn. Solve (x+2)(x+6)=0. Write down both solutions, separated by a comma.
x+2=0 gives x=-2, and x+6=0 gives x=-6
- Both numbers in the brackets are positive, so both solutions are negative.
- Answer: x=-2 or x=-6
Worked example 3: Solutions with different signs
Solve x^2-3x-40=0
- Find two numbers that multiply to give -40 and add to give -3
- -40 is negative, so one number is positive and one is negative. The pair 5 and 8 has a difference of 3
-
Your turn. The sum, -3, is negative, so the bigger number is the negative one. Write down the two numbers that multiply to give -40 and add to give -3, separated by a comma. They are not the solutions yet.
The numbers are -8 and 5, because -8\times5=-40 and -8+5=-3
- So the equation is (x-8)(x+5)=0
- x-8=0 gives x=8, and x+5=0 gives x=-5. The solutions have the opposite signs to the two numbers.
- Answer: x=8 or x=-5
When there is no number on its own
In x^2+5x=0 there is no number on its own. Both terms contain x, so take x out as a common factor: x(x+5)=0
Now the two things multiplied are x and x+5. So x=0 or x+5=0, which gives x=0 or x=-5
Don't divide both sides by x. That leaves x+5=0, and you lose the solution x=0
Worked example 4: Taking out x
Solve x^2-12x=0
- Both terms contain x, so take out x: x(x-12)=0
- Either x=0 or x-12=0
-
Your turn. Write down both solutions of x^2-12x=0, separated by a comma.
x=0, or x-12=0 gives x=12
- Check x=12: 12^2-12\times12=144-144=0
- Answer: x=0 or x=12
When there is no x term
In x^2-25=0 there is no x term, and 25 is a square number. This is a difference of two squares, which factorises as (x+5)(x-5)
So x+5=0 or x-5=0, which gives x=-5 or x=5. Both work, because 5^2=25 and (-5)^2=25 too.
In general, for a positive number k,
x^2-k^2=(x+k)(x-k)
so the solutions of x^2-k^2=0 are x=k and x=-k. Don't forget the negative one.
Worked example 5: A difference of two squares
Solve x^2-49=0
- There is no x term and 49=7^2, so this is a difference of two squares.
- So the equation is (x+7)(x-7)=0
-
Your turn. Write down both solutions, separated by a comma.
x+7=0 gives x=-7, and x-7=0 gives x=7
- Check: 7^2=49 and (-7)^2=49, so both make x^2-49=0
- Answer: x=7 or x=-7
Solutions on a graph and in problems
The solutions of x^2+bx+c=0 are where the graph of y=x^2+bx+c crosses the x-axis, because y=0 all along the x-axis.
Solving gives the same values: x^2-x-6=(x+2)(x-3)=0, so x=-2 or x=3. If a question asks you to solve, give the values of x, not coordinates.
In a problem, x often stands for a length, an age or a number of people. These can't be negative, so if one solution is negative, reject it and use the other. Then answer the question that was asked.
Worked example 6: Using a solution in a problem
A photo is x cm wide. Its height is 4 cm more than its width. The area of the photo is 60 cm^2
This gives the equation x^2+4x-60=0
Work out the height of the photo.
- Find two numbers that multiply to give -60 and add to give 4: they are 10 and -6
- So (x+10)(x-6)=0, which gives x=-10 or x=6
- A width can't be negative, so reject x=-10. The width is 6 cm.
-
Your turn. The height is 4 cm more than the width. Work out the height, in cm.
Height =6+4=10 cm
- Check: 6\times10=60, the area in the question.
- Answer: 10 cm
Common mistakes
- Stopping once you have factorised. (x-8)(x+5)=0 is not the answer; set each bracket equal to 0 and write down the values of x.
- Getting the signs of the solutions wrong. (x-8)(x+5)=0 gives x=8 or x=-5, not x=-8 or x=5; check that each value makes its bracket 0.
- Giving only one solution. Trying numbers might find x=8 but miss x=-5; factorise to find both.
- Solving it like a linear equation. Adding or subtracting terms on both sides can't get x on its own when there is an x^2 term; factorise instead.
- Dividing both sides by x. In x^2-12x=0 this loses x=0; take out x as a common factor instead.
- Forgetting the negative solution. x^2-49=0 has two solutions, x=7 and x=-7
More on this topic: Solving Quadratics by Factorising worksheet with full solutions