Sub topic 16
The Quadratic Formula
This chapter assumes you can solve linear equations, simplify square roots such as √50 = 5√2, and recognize a quadratic in standard form, ax² + bx + c = 0 with a ≠ 0. It also assumes you have seen completing the square, because the formula comes from it. Factoring is fast when it works. The quadratic formula works on every quadratic, so it is your fallback when the factors are not obvious.
The Formula
For ax² + bx + c = 0 with a ≠ 0:
x = (−b ± √(b² − 4ac)) / (2a)
The ± sign means you compute two values, one using plus and one using minus. Every quadratic has at most two real solutions, and the formula gives both.
Where It Comes From
The formula is completing the square done once, with letters in place of numbers. Start with ax² + bx + c = 0.
- Divide by a: x² + (b/a)x + c/a = 0.
- Move the constant: x² + (b/a)x = −c/a.
- Add (b/2a)² to both sides: x² + (b/a)x + b²/(4a²) = b²/(4a²) − c/a.
- The left side is a perfect square. The right side has the common denominator 4a²: (x + b/(2a))² = (b² − 4ac)/(4a²).
- Take square roots: x + b/(2a) = ±√(b² − 4ac) / (2a).
- Subtract b/(2a) from both sides to get the formula.
You do not need to reproduce this on the GRE. Knowing it explains why the expression b² − 4ac sits under the root, which the next chapter studies as the discriminant.
Using the Formula Step by Step
- Rewrite the equation so one side is 0.
- Identify a, b, and c, including their signs.
- Substitute with parentheses around each value.
- Simplify b² − 4ac first.
- Take the square root, simplify it, and finish both cases.
Example 1: two rational roots. Solve 2x² − 7x + 3 = 0. Here a = 2, b = −7, c = 3.
- b² − 4ac = (−7)² − 4(2)(3) = 49 − 24 = 25
- x = (7 ± 5) / 4
- x = 12/4 = 3 or x = 2/4 = 1/2
Because 25 is a perfect square, the equation also factors: (2x − 1)(x − 3) = 0.
Example 2: irrational roots. Solve x² + 4x − 1 = 0. Here a = 1, b = 4, c = −1.
- b² − 4ac = 16 + 4 = 20
- x = (−4 ± √20) / 2 = (−4 ± 2√5) / 2 = −2 ± √5
Factor the 2 out of the whole numerator before cancelling. Writing (−4 ± 2√5)/2 and cancelling only the 2 under 2√5 is a common mistake.
Example 3: rearranging first. Solve 3x² = 5x + 4. Move everything to one side: 3x² − 5x − 4 = 0, so a = 3, b = −5, c = −4.
- b² − 4ac = 25 + 48 = 73
- x = (5 ± √73) / 6
Since 73 is not a perfect square, the roots are irrational and the equation cannot be factored over the integers.
Checking the Formula in Code
The function below implements the formula and returns only the real solutions.
import math
def solve_quadratic(a, b, c):
# Real solutions of a*x**2 + b*x + c = 0, with a != 0.
d = b * b - 4 * a * c
if d < 0:
return []
r = math.sqrt(d)
return sorted({(-b - r) / (2 * a), (-b + r) / (2 * a)})
print(solve_quadratic(1, -5, 6)) # [2.0, 3.0]
print(solve_quadratic(1, -6, 9)) # [3.0]
print(solve_quadratic(1, 0, 1)) # []The set {...} removes duplicates, so a double root appears once. The empty list for x² + 1 = 0 reflects that the discriminant is negative and there are no real roots.
Reading the Formula Without Computing It
The formula has structure you can use. Write it as x = −b/(2a) ± √(b² − 4ac)/(2a). The first part, −b/(2a), is the midpoint of the two roots. The second part is the distance from that midpoint to each root. This gives two quick facts:
- The roots average to −b/(2a), so their sum is −b/a.
- When b² − 4ac = 0, the distance is zero and both roots equal −b/(2a).
The next chapters build on both facts.
Common Errors
- Sign of b. If b = −7, then −b = 7 and b² = 49. Writing −b as −7 or b² as −49 gives wrong answers. Use parentheses.
- Dividing only part of the numerator. The 2a divides the entire numerator, both −b and the radical.
- Forgetting the 2a is all in the denominator. The denominator is 2a, not 2 times only the root.
- Not moving terms first. The equation x² = 3x − 2 must become x² − 3x + 2 = 0 before you read off a, b, and c.
- Dropping the 4 in 4ac. The term is 4ac, not ac.
- Missing signs of c. When c is negative and a is positive, −4ac is positive, so the discriminant is larger than b² alone.
- Reducing a radical wrongly. √20 = 2√5, but you cannot cancel a number outside the root against a number inside it.
When to Use It on the GRE
The formula is reliable but slow. On the GRE, try factoring first when the coefficients are small integers. Use the formula when:
- the coefficients are large or fractional,
- factoring fails after a short attempt,
- the answer choices contain radicals, which signals irrational roots,
- you need exact roots, as in numeric entry.
Often you do not need the roots at all. If a question asks for the sum or product of the roots, or how many real solutions exist, use −b/a, c/a, or the discriminant instead of the full formula. Those shortcuts are covered in the following chapters.
If the answer must be a decimal, remember that √2 ≈ 1.414, √3 ≈ 1.732, and √5 ≈ 2.236. These let you estimate roots such as −2 + √5 ≈ 0.236 without a calculator, though the GRE provides one on-screen.
Checking Your Answers
Substitute each root back into the original equation. For x = 3 in 2x² − 7x + 3: 2(9) − 21 + 3 = 0. For a quick consistency check, use the root relationships. The roots of 2x² − 7x + 3 = 0 are 3 and 1/2. Their sum is 3.5, which equals −b/a = 7/2. Their product is 1.5, which equals c/a = 3/2.
The code below confirms this relationship for a different equation.
# x**2 - 5x + 6 = (x - 2)(x - 3), so the roots are 2 and 3
a, b, c = 1, -5, 6
roots = (2, 3)
assert sum(roots) == -b / a
assert roots[0] * roots[1] == c / a
print("sum =", -b / a, "product =", c / a)Summary Table
| Step | What to do | Watch for |
|---|---|---|
| 1 | Set one side equal to 0 | Moving terms changes their signs |
| 2 | Read a, b, c | Negative coefficients |
| 3 | Compute b² − 4ac | Parentheses around b |
| 4 | Take the square root | Simplify radicals fully |
| 5 | Divide the whole numerator by 2a | Cancel common factors only |
Exercise
Solve 2x² − 3x − 4 = 0 with the quadratic formula. Give both roots in simplest exact form.
Show answer
Here a = 2, b = −3, c = −4. The discriminant is (−3)² − 4(2)(−4) = 9 + 32 = 41. So x = (3 ± √41) / 4. Since 41 is not a perfect square, the roots are irrational and the expression cannot be simplified further.
Exercise
Solve x² − 6x + 4 = 0. Then check that the sum of your roots equals −b/a.
Show answer
With a = 1, b = −6, c = 4, the discriminant is 36 − 16 = 20 and √20 = 2√5. So x = (6 ± 2√5)/2 = 3 ± √5. The sum is (3 + √5) + (3 − √5) = 6, which equals −b/a = 6.
Exercise
Quantity A: the larger root of x² − 2x − 2 = 0. Quantity B: 2.5. Which quantity is greater?
Show answer
Here a = 1, b = −2, c = −2, so the discriminant is 4 + 8 = 12 and √12 = 2√3. Then x = (2 ± 2√3)/2 = 1 ± √3. The larger root is 1 + √3 ≈ 1 + 1.732 = 2.732, which is greater than 2.5. Quantity A is greater.