M4.9.5 Chapter 5
The quadratic formula
x² + 4x + 1 = 0 does not factorise with whole numbers. Can I still solve it every time?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Solve any quadratic equation with the formula
- Use b² − 4ac to say how many solutions there are
- Form and solve a quadratic from an area problem
Some quadratics do not factorise with whole numbers. Completing the square always works, but it takes many steps each time. The quadratic formula does all of that work once, for every quadratic.
Write any quadratic as ax² + bx + c = 0. The number a is in front of x², the number b is in front of x, and c stands alone. These are the coefficients. Read each one with its sign.
The solutions of ax² + bx + c = 0 are x = (−b ± √(b² − 4ac)) ÷ (2a). The sign ± means two answers: one with a plus and one with a minus. The whole top is divided by 2a. Here is why the formula is true.
Draw it first
Where the formula comes from, part one
1 Start with any quadratic, ax² + bx + c = 0, where a is not 0.
2 Multiply both sides by 4a. Every term is multiplied, so the equation becomes 4a²x² + 4abx + 4ac = 0.
3 Add b² to both sides, then take away 4ac from both sides. The left side is now 4a²x² + 4abx + b², and the right side is b² − 4ac.
4 The left side is a perfect square. Check it with a grid as in chapter 1: (2ax + b)(2ax + b) = 4a²x² + 2abx + 2abx + b². So (2ax + b)² = b² − 4ac.
Now take the square root of both sides. This works only when b² − 4ac is 0 or more, because no real number squared is below 0. A positive number has two square roots, so write ±.
Draw it first
Where the formula comes from, part two
1 We have (2ax + b)² = b² − 4ac.
2 Take the square root of both sides, which needs b² − 4ac to be 0 or more. There are two square roots, so write ±.
3 Take b from both sides and divide by 2a. That is the formula.
To use the formula, first read off a, b and c. Then work out the part under the root, b² − 4ac, on its own. Last, put everything in.
Worked example
Solve x² + 3x − 10 = 0 with the formula.
- Read off the numbers: a = 1, b = 3 and c = −10.
- Work out b² − 4ac = 3 × 3 − 4 × 1 × (−10) = 9 + 40 = 49.
- The square root of 49 is 7.
- Use the formula: x = (−3 + 7)/2 or x = (−3 − 7)/2.
- So x = 4/2 = 2 or x = −10/2 = −5.
- Check with x = 2: 2 × 2 + 3 × 2 − 10 = 4 + 6 − 10 = 0.
Answer: x = 2 or x = −5
This quadratic also factorises: (x + 5)(x − 2) = 0 gives the same answers. The formula also works when factorising does not, and it is quicker than completing the square.
Take care when b is negative. The formula starts with −b, and −(−4) is +4. The part b² is the square of b, so (−4)² = 16, which is positive.
Worked example
Solve x² − 4x − 3 = 0. Give the answers to 2 decimal places.
- Read off the numbers: a = 1, b = −4 and c = −3.
- Work out b² − 4ac = (−4) × (−4) − 4 × 1 × (−3) = 16 + 12 = 28.
- The square root of 28 is about 5.2915.
- Use the formula. Since b = −4, −b = 4. So x = (4 + 5.2915)/2 or x = (4 − 5.2915)/2.
- Work out each one: x = 9.2915/2 ≈ 4.65, or x = −1.2915/2 ≈ −0.65.
Answer: x ≈ 4.65 or x ≈ −0.65
In every example so far a = 1, so the bottom of the formula was 2. When a is not 1, the bottom is 2a, which changes. Here is one with a = 2.
Worked example
Solve 2x² + 3x − 2 = 0 with the formula.
- Read off the numbers: a = 2, b = 3 and c = −2.
- Work out b² − 4ac = 9 − 4 × 2 × (−2) = 9 + 16 = 25.
- The square root of 25 is 5.
- The bottom of the formula is 2a, and 2a = 2 × 2 = 4.
- So x = (−3 + 5)/4 or x = (−3 − 5)/4.
- Work out each one: x = 2/4 = 0.5 or x = −8/4 = −2.
- Check with x = 0.5: 2 × 0.25 + 1.5 − 2 = 0.
Answer: x = 0.5 or x = −2
The part under the root is called the discriminant, D = b² − 4ac. It tells you how many solutions there are before you finish. Take three quadratics that differ only in the last number.
Here are their graphs. A solution is a place where the curve meets the x axis. First D = 4. The square root of 4 is 2, so the formula gives two different answers.
When D = 0, the square root is 0, so plus and minus give the same answer. The curve just touches the x axis.
When D is below 0, the formula needs the square root of a negative number. No real number squared makes a negative, so there is no real solution. The curve stays above the x axis.
Worked example
How many solutions does 2x² + 3x + 5 = 0 have?
- Read off the numbers: a = 2, b = 3 and c = 5.
- Work out b² − 4ac = 3 × 3 − 4 × 2 × 5 = 9 − 40 = −31.
- The discriminant is below 0, so the formula needs the square root of a negative number. There is no such real number, so there is no real solution.
Answer: No real solution. The discriminant is −31.
Quadratic equations come from area problems. A rectangle is 3 m longer than it is wide, and its area is 28 m². Call the width x metres. Then the length is x + 3 metres.
Worked example
A rectangle is 3 m longer than it is wide. Its area is 28 m². How long and wide is it?
- Let x be the width in metres. The length is x + 3 metres.
- Area = length × width, so x(x + 3) = 28.
- Expand and make one side 0: x² + 3x − 28 = 0.
- Use the formula with a = 1, b = 3 and c = −28. Then b² − 4ac = 9 + 112 = 121, and the square root of 121 is 11.
- So x = (−3 + 11)/2 = 4, or x = (−3 − 11)/2 = −7.
- A width cannot be negative, so x = 4. The rectangle is 4 m wide and 7 m long.
- Check the area: 4 × 7 = 28.
Answer: The rectangle is 4 m wide and 7 m long.
See it three ways
With things
Draw the curve y = x² − 6x + 5 from a table of values. Read where it crosses the x axis.
As a picture
In words
The curve crosses the x axis at 1 and 5, so those are the solutions. The formula gives the same: b² − 4ac = 36 − 20 = 16, and the square root of 16 is 4.
In symbols
x = (6 ± 4)/2, so x = 5 or x = 1.
Try it
Solve x² + 4x + 1 = 0 and test it
You need: paper, a pencil and a calculator.
- Read off a = 1, b = 4 and c = 1. Work out b² − 4ac = 16 − 4 = 12.
- Use the formula with √12 ≈ 3.4641: x = (−4 + 3.4641)/2 ≈ −0.27, or x = (−4 − 3.4641)/2 ≈ −3.73.
- Put each answer back into x² + 4x + 1 and write what you get.
What you will see: Both answers give a value very close to 0. They are not exactly 0 only because the answers are rounded.
A wrong idea many people have
When b = −6, b² = −36.
Why it feels right: The minus sign seems to stay in front of the number, so the square looks negative too.
The test that breaks it: Work out (−6) × (−6). A negative times a negative is positive, so it is 36.
What is true: The square of a negative number is positive. In the formula, b² is the square of the whole of b, sign included. With b = −6, b² = 36.
A wrong idea many people have
x = −b ± √(b² − 4ac) / 2a: only the root is divided by 2a.
Why it feels right: Written on one line, the division seems to belong to the last part only.
The test that breaks it: Take x² − 2x − 8 = 0. Dividing only the root gives 2 ± 6/2 = 2 ± 3, so x = 5. But 5 × 5 − 2 × 5 − 8 = 7, not 0.
What is true: The whole top, −b ± √(b² − 4ac), is divided by 2a. For this equation x = (2 ± 6)/2, so x = 4 or x = −2.
A wrong idea many people have
A quadratic always has two solutions, because of the ±.
Why it feels right: The formula has a plus or minus, so it seems that every quadratic gives two answers.
The test that breaks it: Try x² + 1 = 0. This needs x² = −1, but no real number squared makes −1. The formula has D = −4, with no real square root.
What is true: The ± gives two answers only when the discriminant is above 0. When D = 0 there is one answer, and when D is below 0 there is no real solution.
Key words
- coefficient
- the number in front of a letter, such as the 5 in 5x, with its sign.
- discriminant
- the number b² − 4ac, which tells you how many solutions a quadratic has.
Back to your guess
The answer is A: Yes. One formula uses the three numbers in the equation.
One formula solves every quadratic. It comes from completing the square on the letters a, b and c, so it works for any numbers. Trying whole numbers is slow, and it misses answers that are not whole.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
What are a, b and c in 3x² − 4x + 7 = 0?
See the answer
a = 3, b = −4, c = 7
The number in front of x² is 3. The number in front of x is −4. The number on its own is 7.
How many solutions does x² + 2x + 5 = 0 have?
See the answer
None. The discriminant is −16, below zero.
Here a = 1, b = 2 and c = 5. So b² − 4ac = 4 − 20 = −16. No real number squared makes −16, so there is no real solution.
How many solutions does x² − 6x + 9 = 0 have?
See the answer
One. The discriminant is 0.
Here a = 1, b = −6 and c = 9. So b² − 4ac = 36 − 36 = 0. The formula gives x = 6/2 = 3, a single answer.
Which equation has two different solutions?
See the answer
x² + 4x + 2 = 0
Here b² − 4ac = 16 − 8 = 8, which is above 0, so there are two solutions.
Solve x² − 2x − 15 = 0 with the formula.
See the answer
x = 5 or x = −3
Here b² − 4ac = 4 + 60 = 64 and its square root is 8. So x = (2 + 8)/2 = 5 or x = (2 − 8)/2 = −3.
Solve 2x² − 5x + 3 = 0 with the formula.
A rectangle is 5 m longer than it is wide, and its area is 24 m². Let x be the width in metres. Which equation is right?
See the answer
x² + 5x = 24
The length is x + 5 and the width is x. Area = x(x + 5) = x² + 5x, and the area is 24.
- If you chose A: The length is x + 5, not 5x. And area is a product, width × length, not a sum. Go to M4.9.5.
- If you chose B: The area is x(x + 5). Expanding gives x² + 5x, not x² + 5. Go to M4.9.1.
- If you chose D: That adds the four sides, which is the perimeter. Area is length times width. Go to M4.9.5.
A rectangle is 5 m longer than it is wide, with area 24 m². Its width x m solves x² + 5x − 24 = 0, which has the answers x = 3 and x = −8. What is the width?
See the answer
x = 3 m
The width cannot be negative, so x = 3. The length is 3 + 5 = 8 m, and 3 × 8 = 24.
From an earlier chapter
Solve (x + 1)² = 16.
See the answer
x = 3 or x = −5
Take the square root of both sides: x + 1 = 4 or x + 1 = −4. Take 1 from each side: x = 3 or x = −5.
- If you chose B: 16 has two square roots, 4 and −4. Then x + 1 = −4 gives x = −5 as well. Go to M4.9.4.
- If you chose C: You took x + 1 = 16, which skips the square root. First take the square root of both sides. Go to M4.9.4.
- If you chose D: Take 1 from both sides: x + 1 = 4 gives x = 3, not −3. The 1 is taken away. Go to M4.9.4.
The length of a rectangle is 3 m more than its width. Its area is 40 m². How wide is it, in metres?
See the answer
5 m
Let x be the width. Then x(x + 3) = 40, so x² + 3x − 40 = 0. The formula gives x = (−3 ± 13)/2, so x = 5 or x = −8. The width is 5 m.
Work out b² − 4ac for 2x² + 3x − 5 = 0.
See the answer
49
Here a = 2, b = 3 and c = −5. So b² − 4ac = 9 − 4 × 2 × (−5) = 9 + 40 = 49.
Keep it
Copy this into your exercise book.
Read off a, b and c with their signs. Work out b² − 4ac first. Then x = (−b ± √(b² − 4ac)) ÷ (2a). Above 0: two answers. At 0: one. Below 0: no real answer.
Draw: Three curves: one crossing the x axis twice, one touching it, one above it.