Sub topic 13
Common Mistakes and How to Check Your Answer
This chapter assumes you can already apply the quadratic formula, compute the discriminant b² − 4ac, and read its sign. It also assumes you know the sum and product of the roots from the previous chapter. Here you will learn where solutions usually go wrong and how to catch the error before you hand in the answer.
Why checking is cheap
A quadratic has a short solution path: set up, substitute, simplify. Each step has a few places where a sign or a factor goes missing. Checking costs less than solving, because you can test a candidate root directly without redoing the derivation.
Use three independent checks:
- Substitute each root into the original equation.
- Compare the sum and product of the roots with −b/a and c/a.
- Compare the number and type of roots with what the discriminant predicted.
A wrong answer rarely fails all three the same way. That is why the checks are worth doing together.
Mistakes in the setup
Most errors happen before the formula is used.
The equation is not in standard form. The formula needs ax² + bx + c = 0, with zero on one side. Suppose you are given x² = 3x + 4. Reading off a = 1, b = 3, c = 4 is wrong. Move every term to the left first: x² − 3x − 4 = 0, so a = 1, b = −3, c = −4. With the wrong values, the discriminant is 9 − 16 = −7 and you would report complex roots. With the right values it is 9 + 16 = 25 and the roots are 4 and −1.
A coefficient is missing or implicit. In x² − 5 = 0, the coefficient b is 0, not "missing". In x² − x + 1 = 0, the coefficient b is −1. In −x² + 2x = 0, the coefficient a is −1 and c is 0.
Dividing by the variable. Take x² = 3x. Dividing both sides by x gives x = 3 and silently drops the root x = 0. Write x² − 3x = 0 instead and solve that. Never divide by an expression that can be zero.
Forgetting a ≠ 0. If a is 0 the equation is linear and the formula divides by zero. This matters most when a depends on a parameter, as in kx² + 4x + 1 = 0. Treat k = 0 as a separate case.
Arithmetic and sign mistakes
The quadratic formula is
x = (−b ± √(b² − 4ac)) / (2a)
and nearly every arithmetic error comes from one of these items.
| Mistake | Example | What goes wrong | Fix |
|---|---|---|---|
| Writing −b as b | b = −4, you write 4 | The sum of the roots changes sign | Substitute with parentheses: −(−4) = 4 |
| Squaring a negative as negative | b = −4, you compute −16 | The discriminant is too small by 32 | Write (−4)² = 16 |
| Wrong sign in 4ac | a = 3, c = −2, you compute −4·3·2 as +24 and subtract it again | The discriminant is off by 48 | Compute 4ac = −24, then subtract: b² − (−24) |
| Dividing only part by 2a | (−b ± √d)/2a, you write −b ± √d/2a | Only the radical is divided | Divide the whole numerator, or keep it in parentheses |
| Taking √ of only part | √(b²) − 4ac | The root covers b² but not 4ac | Compute d = b² − 4ac first, then √d |
| Dropping the ± | You compute only one root | You miss a solution | Always produce two values, even if equal |
| Cancelling a term, not a factor | (4 ± 2√2)/2 → 4 ± √2 | Only one term was divided | Divide both: 2 ± √2 |
The most frequent error is the first row. A sign error in b flips the sign of the sum of the roots but leaves the product unchanged. A sign error in c flips the sign of the product but leaves the sum unchanged. Remember this, because it tells you which check will catch which error.
A worked example with a sign slip
Solve 3x² − 5x − 2 = 0, so a = 3, b = −5, c = −2.
The discriminant is d = (−5)² − 4(3)(−2) = 25 + 24 = 49, and √49 = 7. The roots are
x = (5 ± 7) / 6, so x = 2 or x = −1/3.
Now suppose you slip and use c = +2. Then d = 25 − 24 = 1, and the roots are (5 ± 1)/6, which is 1 and 2/3. Check them:
- Sum: 1 + 2/3 = 5/3, which equals −b/a = 5/3. The sum check passes.
- Product: 1 · 2/3 = 2/3, but c/a = −2/3. The product check fails.
The sum check alone would have let this error through. Use both.
Mistakes in interpretation
"Negative discriminant means no solution." It means no real solution. Over the complex numbers there are two roots, a conjugate pair p ± qi. State which number system the question uses. If the question asks for real roots, "no real roots" is the complete answer.
"Zero discriminant means one root." There is one distinct root, but it is a double root: x = −b/(2a) counted twice. When you check with Vieta's formulas, use the root twice. Its sum is 2 · (−b/(2a)) = −b/a, as expected.
Assuming a perfect-square discriminant is required. A discriminant that is not a perfect square is fine. It gives irrational real roots, such as 2 ± √2. A perfect-square discriminant (with integer coefficients) is a special case that gives rational roots.
Leaving radicals unsimplified. For x² − 4x + 2 = 0, d = 8 and the roots are (4 ± √8)/2. Since √8 = 2√2, they simplify to 2 ± √2. An unsimplified answer is not wrong, but a grader may not accept it, and it hides errors.
How to check your answer
The diagram shows a checking routine that works for any quadratic.
Check 1: substitute into the original equation
Always substitute into the equation as it was first written, not into your rearranged version. If you made a mistake while rearranging, checking against the rearranged form hides it.
For x² = 3x + 4 and the root x = −1: the left side is 1 and the right side is −3 + 4 = 1. For x = 4: the left side is 16 and the right side is 12 + 4 = 16. Both roots pass.
Check 2: sum and product
For ax² + bx + c = 0 with roots r₁ and r₂:
- r₁ + r₂ = −b/a
- r₁ · r₂ = c/a
For 3x² − 5x − 2 = 0 the roots 2 and −1/3 give a sum of 5/3, which is −b/a, and a product of −2/3, which is c/a.
Check 3: compare with the discriminant
Before solving, you already know what to expect. If d > 0 you need two distinct real roots. If d = 0 you need one repeated root. If d < 0 you need a complex conjugate pair, and the real parts of both roots must be equal. A "solution" that contradicts the discriminant has an error somewhere.
Check 4: sketch the parabola
The parabola y = ax² + bx + c opens upward when a > 0 and downward when a < 0. Its x-intercepts are the real roots, and the axis of symmetry is x = −b/(2a). The midpoint of the two real roots must lie on that axis. Real roots that are not symmetric about the axis show an error.
Automating the check
You can turn checks 1 and 2 into code. The function below always returns two roots, using complex arithmetic so that all three discriminant cases work. It compares with a tolerance, because floating-point values should not be compared with ==.
import cmath
def roots_of(a, b, c):
if a == 0:
raise ValueError("a must be nonzero")
d = b * b - 4 * a * c
r = cmath.sqrt(d)
return [(-b - r) / (2 * a), (-b + r) / (2 * a)]
def check(a, b, c, roots, tol=1e-9):
r1, r2 = roots
substitutes = all(abs(a * r * r + b * r + c) <= tol for r in roots)
sum_ok = abs((r1 + r2) + b / a) <= tol
product_ok = abs(r1 * r2 - c / a) <= tol
return substitutes, sum_ok, product_ok
good = roots_of(2, -4, -6)
print(good) # [(-1+0j), (3+0j)]
print(check(2, -4, -6, good)) # (True, True, True)
# Sign slip: using -b = -4 instead of +4
bad = [(-4 - 8) / 4, (-4 + 8) / 4]
print(bad) # [-3.0, 1.0]
print(check(2, -4, -6, bad)) # (False, False, True)The wrong roots fail substitution and the sum check, but they pass the product check. This matches the rule above: a sign error in b disturbs the sum and leaves the product unchanged. A test that checks only the product would accept the wrong answer.
Floating-point values
When coefficients are large or the roots are very different in size, a computed root can lose digits to cancellation. This happens when −b and the square root are nearly equal and you subtract them. Your substitution check may then show a residual that is small but not zero. Judge it against the size of the terms, not against zero. If the residual is small compared with |a r²|, |b r| and |c|, the root is acceptable. The numerical stability chapter shows how to compute the roots so the problem does not arise.
A short checklist
- Move everything to one side and list a, b, c with their signs.
- Compute d = b² − 4ac in one separate line.
- Predict the root type from d.
- Compute both roots with the whole numerator in parentheses.
- Simplify radicals and fractions.
- Check by substitution, then by sum and product.
Exercise
A student solves 2x² + 3x − 5 = 0 and gets x = 1 and x = 5/2. Use the sum and product checks to decide whether the answer is right. If it is wrong, find the correct roots and name the likely error.
Show answer
Here a = 2, b = 3, c = −5. The required sum is −b/a = −3/2 and the required product is c/a = −5/2. The student's roots have sum 1 + 5/2 = 7/2 and product 5/2. Both checks fail, with the wrong sign on each. The discriminant is 9 − 4(2)(−5) = 49, so the roots are (−3 ± 7)/4, which gives 1 and −5/2. The student found the root 1 correctly but gave the second root 5/2 in place of −5/2, a sign error when evaluating (−3 − 7)/4. The correct sum is 1 − 5/2 = −3/2 and the correct product is −5/2.
Exercise
Solve x² = 6x − 9 and say what the discriminant tells you. Then explain why a student who divides both sides by (x − 3) at the start would get an incomplete answer.
Show answer
In standard form, x² − 6x + 9 = 0, so a = 1, b = −6, c = 9. The discriminant is 36 − 36 = 0, so there is one repeated real root, x = 6/2 = 3. Check: 9 = 18 − 9 = 9. The sum 3 + 3 = 6 equals −b/a, and the product 9 equals c/a. Dividing by (x − 3) is allowed only if x ≠ 3, but 3 is the root. The division removes the only solution and leaves nothing, or an incorrect statement, to solve.