4 / 6 · Intermediate
The quadratic formula
Al-Khwarizmi solved x² + 10x = 39 around 800 by completing a square. The quadratic formula is the same steps done once for every a, b and c.
Jump to the 11 practice questionsYou will learn
- Complete the square, with a picture
- Pick the fastest method for an equation
Before this: Solving by factoring
1Explain
A square drawn around 800
MacTutor notes that the Babylonians, about 1800 BC, are often said to have solved quadratic equations, but they had no idea of an equation. What they had was a step-by-step recipe for problems we would write as quadratics, and the recipe is essentially completing the square, with answers that were always positive because they were usually lengths. Brahmagupta (598 to 665) gave an almost modern method that admitted negative quantities. Al-Khwarizmi, writing around 800 without zero or negatives, sorted quadratics into six types, gave a rule for each with a numerical example such as x² + 10x = 39, and proved each rule by completing a square geometrically, much like the picture below.
2Explain
Add 25 and x² + 10x becomes a square
In x² + 10x = 39, adding 25 to both sides creates a square. Many quadratics do not factor with whole numbers. The method that always works is completing the square. Start with x² + 10x = 39. The left side is almost a perfect square: (x + 5)² = x² + 10x + 25, so it is missing 25. Add 25 to both sides to keep the equation balanced: x² + 10x + 25 = 64. Now the left side is (x + 5)², so (x + 5)² = 64. Take square roots: x + 5 = 8 or x + 5 = −8, which gives x = 3 or x = −13.
The geometric picture: a square of side x and two 5-by-x strips make x² + 10x. Adding the small 5-by-5 corner completes a square of side x + 5 with area 39 + 25 = 64.
3Explore
Build the square
Set b and the side x. The two strips are b/2 by x; the dashed green corner, (b/2)², is what completes the square. With b = 10 and x = 3 the L-shape is 39.
4Problem
x² + 10x = 39
What is the positive solution of x² + 10x = 39?
Hint
(x + 5)² = 64.
Solution
Answer: 3
Add 25: (x + 5)² = 64, x + 5 = ±8, x = 3 or −13.
5Problem
Complete x² + 6x
What number completes the square for x² + 6x?
Hint
(6/2)².
Solution
Answer: 9
Half of 6 is 3 and 3² = 9: x² + 6x + 9 = (x + 3)².
6Explain
The same steps with letters give the formula
Do the same steps with letters. Start from ax² + bx + c = 0, divide by a, move c/a across, add (b/(2a))² to both sides, and take square roots. The result is the quadratic formula: x = (−b ± √(b² − 4ac)) / (2a). The ± sign means two answers, one with plus and one with minus. To use it, first write the equation in standard form so you can read a, b and c with their signs. Watch b. In x² − 2x − 3 = 0, b = −2, so −b = 2.
7Problem
Under the root
In the quadratic formula, what is under the square root?
Hint
The discriminant.
Solution
Answer: b² − 4ac
x = (−b ± √(b² − 4ac)) / (2a).
8Problem
b in 3x² − 5x + 2
In 3x² − 5x + 2 = 0, what is b?
Hint
Keep the sign.
Solution
Answer: −5
b is the coefficient of x, sign included: −5.
9Explore
A worked example
Worked example: x² − 2x − 3 = 0 has a = 1, b = −2, c = −3. Then b² − 4ac = 4 + 12 = 16 and √16 = 4, so x = (2 ± 4)/2, which is 3 or −1. Factoring gives the same result, (x − 3)(x + 1) = 0. Now try 2x² + 3x − 1 = 0, which does not factor nicely: b² − 4ac = 9 + 8 = 17, so x = (−3 ± √17)/4. As decimals, x ≈ 0.281 or x ≈ −1.781. The formula hands you exact answers with a square root, and a calculator turns them into decimals when you need them.
Set a, b and c: the panel works out b² − 4ac and the formula, and the green dots are the x-intercepts, the same numbers.
10Problem
x² − 2x − 3 = 0
What is the larger solution of x² − 2x − 3 = 0?
Hint
(2 ± 4)/2.
Solution
Answer: 3
b² − 4ac = 4 + 12 = 16, x = (2 ± 4)/2 = 3 or −1.
11Problem
2x² + 3x − 1 = 0
What is the larger solution of 2x² + 3x − 1 = 0, to two decimal places?
Hint
(−3 + √17)/4.
Solution
Answer: 0.28
x = (−3 + √17)/4 = (−3 + 4.123)/4 ≈ 0.28.
12Problem
x² + 4x + 1 = 0
What is the larger solution of x² + 4x + 1 = 0, to two decimal places?
Hint
(−4 + √12)/2.
Solution
Answer: −0.27
b² − 4ac = 16 − 4 = 12, x = (−4 + √12)/2 = −2 + √3 ≈ −0.268.
13Problem
2x² − 7x + 3 = 0
What is the smaller solution of 2x² − 7x + 3 = 0? Write it as a fraction.
Hint
(7 ± 5)/4.
Solution
Answer: 1/2
b² − 4ac = 49 − 24 = 25, x = (7 ± 5)/4 = 3 or 2/4 = 1/2.
14Explain
Pick a method
Which method should you pick? If the equation has no x term, such as 5x² = 20, isolate x² and take square roots: x² = 4, x = ±2. If it factors quickly, factor. Otherwise use the formula, which never fails. In the lab, set a, b and c to any equation and the panel substitutes them into the formula step by step; the green dots on the x-axis are the solutions.
15Problem
5x² = 20
What is the positive solution of 5x² = 20?
Hint
x² = 4.
Solution
Answer: 2
x² = 4, so x = ±2 by the square root property.
16Problem
x² − 6x + 9 = 0
Solve x² − 6x + 9 = 0.
Hint
(x − 3)² = 0.
Solution
Answer: 3
b² − 4ac = 36 − 36 = 0, so x = 6/2 = 3, a double root. It is (x − 3)².
17Explain
Which method to use
| The equation | Method | Example |
|---|---|---|
| Has no x term | Isolate x² and take square roots | 5x² = 20 → x = ±2 |
| Factors quickly | Factor | x² − 2x − 3 = 0 → (x − 3)(x + 1) = 0 |
| Anything else | Quadratic formula or completing the square | 2x² + 3x − 1 = 0 |
18Problem
3x² = 27
Which method solves 3x² = 27 fastest?
Hint
There is no x term.
Solution
Answer: Isolate x² and take square roots
There is no x term, so divide by 3 to get x² = 9 and take square roots: x = ±3.
19Explore
The general lab
Drag to turn. Scroll or pinch to zoom.
20Explain
Common mistakes
In x² − 4x − 5 = 0, putting −b = −4 into the formula and getting 1 and −5.
b is −4, so −b is +4. Then b² − 4ac = 16 + 20 = 36 and x = (4 ± 6)/2, which is 5 or −1. Put 5 back in: 25 − 20 − 5 = 0.
Dividing only the square root by 2a: x = −b ± √(b² − 4ac)/(2a).
The fraction bar runs under the whole top, −b included. For 2x² + 4x − 6 = 0, b² − 4ac = 16 + 48 = 64, so x = (−4 ± 8)/4 = 1 or −3. Dividing only the 8 gives −4 ± 2, that is −2 or −6, and neither satisfies the equation.
Solving (x + 2)² = 9 as x + 2 = 3, so x = 1 and nothing else.
Both 3 and −3 square to 9. x + 2 = ±3 gives x = 1 or x = −5. Check the second one: (−5 + 2)² = (−3)² = 9.
21
Summary
- Completing the square: add (b/2)² to x² + bx.
- Quadratic formula: x = (−b ± √(b² − 4ac)) / (2a).
- Read a, b and c with their signs from standard form.
- No x term: use square roots. Easy factors: factor. Otherwise: the formula.