What a quadratic equation is and why one formula covers all of them
A quadratic equation is any equation you can rearrange into the shape ax² + bx + c = 0 with a ≠ 0. The highest power of the unknown is two, and that single fact controls everything else: there are always exactly two roots when you count a repeated root twice and allow complex numbers, and the graph of y = ax² + bx + c is always a parabola.
The quadratic formula is not a separate trick to memorise alongside factoring and completing the square. It is completing the square, performed once on the general equation so that nobody ever has to perform it again. Start with ax² + bx + c = 0, divide by a, move the constant across, add (b/2a)² to both sides to make a perfect square, take the square root of both sides, and subtract b/2a. What drops out is x = (−b ± √(b² − 4ac)) / (2a). Because that derivation never assumed anything about the numbers except a ≠ 0, the result is valid for every quadratic that exists.
You reach for it constantly outside algebra class. Projectile height under constant gravity is quadratic in time, so finding when a ball lands means solving a quadratic. Break-even analysis with a linear price–demand curve gives quadratic revenue. Circuit resonance, kinematics, the intersection of a line and a circle, and least-squares fitting all reduce to the same three coefficients.
Reading the formula: what each part does
Split the formula into three pieces and each one has a clear job.
−b / 2a is the centre. On its own it is the axis of symmetry of the parabola and the x-coordinate of the vertex. Both roots sit the same distance either side of it, which is why the sum of the roots is always −b/a: the two offsets cancel.
√Δ / 2a is the half-distance between the roots. The larger the discriminant, the further apart the roots lie. When Δ = 0 the offset vanishes and the two roots collapse onto the vertex.
Δ = b² − 4ac is the decider. Its sign, not its size, tells you what kind of answer to expect before you compute anything:
- Δ > 0 — two distinct real roots; the parabola cuts the x-axis twice.
- Δ = 0 — one repeated real root; the parabola touches the axis and turns back.
- Δ < 0 — no real root; the roots are a complex conjugate pair p ± qi, where p = −b/2a and q = √(−Δ)/|2a|.
Two further identities are worth carrying in your head because they check your arithmetic in seconds. The roots always satisfy x₁ + x₂ = −b/a and x₁ · x₂ = c/a. These are Vieta's formulas, and they follow from multiplying out a(x − x₁)(x − x₂) and matching coefficients. If your two answers do not add to −b/a, you have made a sign error somewhere.
The vertex y-value comes from the same rearrangement: y = c − b²/4a. It is the minimum of the curve when a > 0 and the maximum when a < 0, because the sign of a decides which way the parabola opens.
Worked example: solving 2x² − 7x + 3 = 0 by hand
Take the calculator's default equation, 2x² − 7x + 3 = 0, so a = 2, b = −7 and c = 3.
- Compute the discriminant. Δ = (−7)² − 4(2)(3) = 49 − 24 = 25. It is positive, so expect two distinct real roots.
- Take its square root. √25 = 5. A perfect square here is a strong hint that the trinomial also factors over the integers.
- Build the denominator. 2a = 2 × 2 = 4.
- First root. x₁ = (−(−7) + 5) ÷ 4 = (7 + 5) ÷ 4 = 12 ÷ 4 = 3.
- Second root. x₂ = (7 − 5) ÷ 4 = 2 ÷ 4 = 0.5.
- Check with Vieta. Sum: 3 + 0.5 = 3.5, and −b/a = 7/2 = 3.5 ✓. Product: 3 × 0.5 = 1.5, and c/a = 3/2 = 1.5 ✓.
- Find the vertex. x = −b/2a = 7 ÷ 4 = 1.75. y = c − b²/4a = 3 − 49/8 = 3 − 6.125 = −3.125.
- Write the factored form. 2(x − 3)(x − 0.5), which clears to (x − 3)(2x − 1).
Substituting back is the final proof: 2(3)² − 7(3) + 3 = 18 − 21 + 3 = 0 ✓, and 2(0.5)² − 7(0.5) + 3 = 0.5 − 3.5 + 3 = 0 ✓.
Now change one number to see the discriminant work. Make it 2x² − 7x + 7 = 0. Then Δ = 49 − 56 = −7, negative, so the roots are complex: real part 7/4 = 1.75, imaginary part √7/4 ≈ 0.661438, giving 1.75 ± 0.661438i. The vertex is unchanged in x but sits at y = 7 − 49/8 = 0.875, above the axis — which is exactly why the curve never crosses it.
How to read the result
Start with the discriminant, not the roots. If your problem is physical — a time, a length, a quantity of stock — a negative discriminant usually means the situation you described cannot happen, not that you should reach for complex numbers. A ball thrown at 10 m/s never reaches 20 m, and the algebra says so by giving you Δ < 0.
Then check whether both roots are admissible. A quadratic from a word problem routinely produces one root that is physically meaningless: negative time, negative length, a discount above 100%. Solving the equation is not the same as answering the question, and marks are lost far more often at this step than in the arithmetic.
A perfect-square discriminant (0, 1, 4, 9, 16, 25, 36, 49 …) tells you the roots are rational, and therefore that the trinomial factors over the integers if a, b and c are integers. That is exactly the test the factoring trinomials calculator applies, and it is why 25 in the worked example above signalled a clean factorisation.
Finally, use the vertex to sanity-check the roots. The vertex x-value must lie exactly halfway between them. If it does not, one of your roots is wrong. And the sign of the vertex y-value must agree with the discriminant: with a > 0, a negative vertex y means the curve dips below the axis and two real roots exist.
Reference: discriminant, roots and graph for common cases
| Equation | Δ = b² − 4ac | Roots | Vertex | Graph |
|---|---|---|---|---|
| x² − 3x − 4 = 0 | 25 | 4 and −1 | (1.5, −6.25) | Cuts the axis twice |
| 2x² − 7x + 3 = 0 | 25 | 3 and 0.5 | (1.75, −3.125) | Cuts the axis twice |
| x² − 2x + 1 = 0 | 0 | 1 (repeated) | (1, 0) | Touches the axis |
| 4x² + 12x + 9 = 0 | 0 | −1.5 (repeated) | (−1.5, 0) | Touches the axis |
| x² + 2x + 5 = 0 | −16 | −1 ± 2i | (−1, 4) | Never meets the axis |
| x² + 1 = 0 | −4 | ±i | (0, 1) | Never meets the axis |
| −x² + 4x − 3 = 0 | 4 | 1 and 3 | (2, 1) | Opens downward, cuts twice |
| x² − 2 = 0 | 8 | ±√2 ≈ ±1.414214 | (0, −2) | Cuts the axis twice, irrational roots |
Rows with a perfect-square discriminant have rational roots and factor over the integers; the √2 row does not.
The formula fails silently when a = 0
Dividing by 2a is only legal when a ≠ 0. If you enter a = 0 this calculator does not divide by zero — it detects the degenerate case and solves the linear equation bx + c = 0 instead, reporting the single root x = −c/b and no vertex. Spreadsheets and hand-rolled code frequently do not, and return #DIV/0! or Infinity. If both a and b are zero the equation has no unknown left in it at all: it is either an identity (when c = 0) or a contradiction. The linear equation solver handles that whole family properly.
Mistakes that produce a wrong root
- Not rearranging to = 0 first. The formula reads coefficients off ax² + bx + c = 0. For 3x² = 5x − 2 you must first write 3x² − 5x + 2 = 0, so c = +2, not −2.
- Losing the sign of b. In x² − 3x − 4, b = −3, so −b = +3 and b² = +9. Squaring kills the sign; negating keeps it. Both appear in the formula, and mixing them up is the single most common error.
- Dividing only one term by 2a. The whole numerator, −b and ±√Δ together, sits over 2a. Writing −b ± √Δ/2a without brackets loses the first term's division.
- Reporting √Δ when Δ is negative. √(−16) is not −4. It is 4i, and the two roots become a conjugate pair.
- Rounding the discriminant before taking the root. With decimal coefficients, rounding Δ from 0.0004 to 0 turns two close roots into one repeated root.
- Keeping a root the problem forbids. Negative times, negative lengths and negative counts are still solutions of the equation but not answers to the question.
- Assuming a negative discriminant means you made a mistake. Complex roots are correct answers in circuit analysis, control theory and signal processing; only the physical context decides whether to discard them.
When to use a different method
The quadratic formula always works, but it is not always the fastest route.
Factoring beats it whenever the coefficients are small integers and the discriminant is a perfect square: x² − 5x + 6 = 0 gives up its roots 2 and 3 faster by inspection than by formula. Use the factoring calculator to check whether an integer factorisation exists at all.
Completing the square is slower for finding roots but is the method that hands you the vertex form y = a(x − h)² + k directly, which is what you want for graphing, for optimisation, and for integration substitutions later. The completing the square calculator shows that route step by step.
The square-root method handles the special case b = 0 in one line: ax² + c = 0 gives x = ±√(−c/a). Reaching for the full formula here wastes time. The square root calculator covers the arithmetic and the radical simplifier puts an irrational answer into exact surd form rather than a decimal.
For higher degrees the picture changes. Cubics have a general formula, but it is unpleasant enough that the cubic equation solver is the practical route; quartics have one that is worse still; and Abel and Ruffini proved in the early nineteenth century that no formula in radicals exists for the general quintic. Above degree two, numerical root-finding is the norm. If you need to reduce a higher-degree polynomial once you know one root, polynomial long division is the tool that peels it off.
A historical note that is more than trivia: Babylonian scribes were solving problems equivalent to quadratics around 1800 BCE by a procedure that is completing the square in words, and Brahmagupta stated an explicit rule including negative quantities in 628 CE. The formula you use today is a compressed record of that work.
Key terms
- Root (or zero)
- A value of x that makes the expression equal zero. Graphically, an x-intercept of y = ax² + bx + c.
- Discriminant
- The quantity b² − 4ac under the square root. Its sign determines whether the roots are two real, one repeated real, or a complex conjugate pair.
- Vertex
- The turning point of the parabola, at x = −b/2a. It is the minimum when a > 0 and the maximum when a < 0.
- Axis of symmetry
- The vertical line x = −b/2a about which the parabola is mirror-symmetric. Both roots lie the same distance from it.
- Vieta's formulas
- For a quadratic, x₁ + x₂ = −b/a and x₁·x₂ = c/a. A fast check on any pair of roots.
- Complex conjugate pair
- Two roots of the form p + qi and p − qi. Real coefficients force complex roots to come in such pairs.
