📐 Quadratic Equation Formula Solver
A quadratic equation solver for ax² + bx + c = 0: the discriminant step by step, real or complex roots, and the vertex of the parabola.
Quadratic Standard Form: ax² + bx + c = 0
What Quadratic Equation Formula Solver Does
The quadratic formula solves every equation of the form ax² + bx + c = 0, and the part that carries the meaning is the piece under the square root. The discriminant, b² − 4ac, tells you what kind of answer to expect before you have finished computing it: positive means two real roots, zero means one repeated root, negative means the parabola never crosses the x-axis and the roots are complex.
That is worth knowing because a negative discriminant is not an error. It is a complete answer — the curve sits entirely above or entirely below the axis — and a solver that reports "no solution" there is being imprecise. There are two solutions; they are just not real numbers.
The vertex is the other thing worth having. It sits at x = −b ÷ 2a, exactly halfway between the roots when they are real, and it is the maximum or minimum of the curve depending on the sign of a. For anything modeled with a quadratic — projectile height, profit against price — the vertex is usually the answer you actually wanted.
This shows all of it: the discriminant with its interpretation, both roots real or complex, the vertex, and which way the parabola opens.
How to Use Quadratic Equation Formula Solver
- Enter coefficients a, b, and constant c (where a ≠ 0)
- Review discriminant calculation and root classification
- Inspect root values x₁ and x₂ and vertex coordinates (h, k)
Formula Used by Quadratic Equation Formula Solver
The quadratic formula
x = (−b ± √(b² − 4ac)) ÷ 2a, with vertex at x = −b ÷ 2a
- b² − 4ac
- the discriminant — its sign determines the nature of the roots
- a ≠ 0
- if a is zero the equation is linear, not quadratic, and the formula divides by zero
Worked example
x² − 5x + 6 = 0
- Discriminant: (−5)² − 4×1×6 = 25 − 24 = 1
- Positive, so two distinct real roots
- x = (5 ± 1) ÷ 2 → 3 and 2
- Vertex: x = 5 ÷ 2 = 2.5, y = 6 − 25÷4 = −0.25
Result: Roots at 3 and 2, vertex at (2.5, −0.25) — the minimum, since a is positive so the parabola opens upward.
What the discriminant tells you
| b² − 4ac | Roots | The graph |
|---|---|---|
| Positive | Two distinct real roots | Crosses the x-axis twice |
| Zero | One repeated real root | Touches the x-axis at the vertex |
| Negative | Two complex conjugate roots | Never touches the x-axis |
How to Read Your Result
A negative discriminant is an answer, not a failure
The roots exist as complex conjugates — a pair of the form p ± qi. In a physical model that usually means the situation you described never occurs: a projectile that never reaches the height you asked about, for instance. The mathematics is telling you something rather than breaking.
The vertex is often the real question
Maximum profit, peak height, minimum cost — all of them are the vertex rather than a root. If a is positive the parabola opens upward and the vertex is a minimum; if a is negative it opens downward and the vertex is a maximum.
Check that a is not zero
With a of zero there is no x² term and the equation is linear — bx + c = 0, with the single solution −c ÷ b. The quadratic formula divides by 2a and fails. It is the most common way this calculation goes wrong when the coefficients come from somewhere else.
Limitations & Accuracy Notes
- Real coefficients only; complex inputs are not accepted, though complex roots are produced and displayed.
- Floating-point arithmetic, so results are shown to a fixed number of decimals rather than as exact surds — √2 appears as 1.4142, not as a radical.
- Very large or very small coefficients can lose precision, and subtracting nearly equal numbers in the formula is a known source of that.
- It does not factorize, complete the square, or show a step-by-step derivation.
- Higher-degree polynomials are outside its scope entirely.
Frequently Asked Questions
How does the quadratic discriminant determine root types?
What is the standard quadratic formula?
What does the discriminant tell me?
What if a equals zero?
Why do I get complex roots?
Should I factorize or use the formula?
Does it show the working?
Is my data stored?
References & Further Reading
- Wolfram MathWorld — Quadratic Formula — Derivation, the discriminant, and the numerical-stability caveat