About the Quadratic Equation Solver
Enter a, b and c for ax² + bx + c = 0 and get the discriminant, the nature of the roots, the roots themselves and the parabola's vertex. Students use it to check algebra homework, and physics students use it to find when a thrown object lands. When the discriminant is negative, the roots come back as a complex conjugate pair rather than an error.
How to use the Quadratic Equation Solver
- Rearrange your equation so one side is zero, in the form ax² + bx + c = 0.
- Enter the coefficients in a (x²), b (x) and c (constant), including minus signs. Decimals are allowed.
- Read Discriminant (D) and Nature to see what kind of roots to expect.
- Read the roots (x₁ and x₂, or a single x) and the Vertex, all rounded to eight significant digits.
Worked example: 2x² − 7x + 3 = 0
With a = 2, b = -7 and c = 3: D = (-7)² - 4 x 2 x 3 = 49 - 24 = 25, so there are two real roots. x₁ = (7 + 5) / 4 = 3 and x₂ = (7 - 5) / 4 = 0.5. Vertex x = 7 / 4 = 1.75, and y = 3 - 49 / 8 = -3.125, so the vertex is (1.75, -3.125).
| Equation | D | Nature | Roots | Vertex |
|---|---|---|---|---|
| 2x² − 7x + 3 = 0 | 25 | two real roots | 3, 0.5 | (1.75, -3.125) |
| x² − 6x + 9 = 0 | 0 | one repeated real root | 3 | (3, 0) |
| x² + 2x + 5 = 0 | -16 | two complex roots | -1 + 2i, -1 − 2i | (-1, 4) |
Reading the output
x = (-b ± √D) / (2a), where D = b² - 4ac. When D is negative, √D is imaginary, so the tool reports the real part -b / (2a) and the imaginary part √(-D) / (2a) separately. For x² + 2x + 5, D = -16, so the roots are -2 / 2 ± (√16 / 2)i = -1 ± 2i. The vertex (-b / (2a), c - b² / (4a)) is the parabola's turning point: a minimum when a is positive and a maximum when a is negative.
A physics case: a ball thrown upward at 20 m/s from 1.5 m has height -4.9t² + 20t + 1.5. Solving for zero gives t = 4.155303 s (the negative root is discarded), and the vertex (2.0408163, 21.908163) is the peak at about 2.04 s and 21.9 m. The physics calculator covers the related motion formulas.
When the answer looks wrong
- If a is 0 the tool stops with a message, because bx + c = 0 is linear. Its single root is -c / b.
- Forgetting to move every term to one side. For x² = 3x + 10, enter a = 1, b = -3, c = -10 to get roots 5 and -2.
- Decimal coefficients can hide a repeated root. For x² + 0.2x + 0.01 (exactly (x + 0.1)²), floating-point rounding gives D = 6.9388939e-18 instead of 0, so you see two real roots of -0.099999999 and -0.1. Treat a tiny discriminant as zero.
The quadratic formula: derivation and use
The formula is derived by completing the square on ax^2 + bx + c = 0. Divide by a, move c/a to the right, add (b/2a)^2 to both sides, take the square root, and solve for x. The result is x = (-b +/- sqrt(b^2 - 4ac)) / 2a.
The formula always works for any quadratic with real coefficients. When the discriminant is negative, it returns complex numbers. Complex roots come in conjugate pairs: if one root is p + qi, the other is p - qi.
The discriminant tells the story
Before computing roots, the discriminant (b^2 - 4ac) tells you what kind of roots to expect. Positive: two distinct real roots (parabola crosses x-axis twice). Zero: one repeated root (tangent to x-axis). Negative: two complex roots (no x-intercepts).
In physics, a negative discriminant often means no physical solution — for example, a projectile that cannot reach a given height. The sign of the discriminant is often more informative than the roots themselves.
Quadratic Equation Solver: frequently asked questions
- What is the quadratic formula?
- x = (-b plus or minus sqrt(b^2 - 4ac)) divided by (2a), where a, b, c are coefficients of ax^2 + bx + c = 0. The discriminant (b^2 - 4ac) determines how many real roots exist.
- What is the discriminant?
- The discriminant is b^2 - 4ac. If positive: two distinct real roots. If zero: one repeated real root (parabola tangent to x-axis). If negative: two complex conjugate roots (parabola does not cross x-axis).
- What is the vertex of a parabola?
- The vertex is at x = -b/(2a) and y = c - b^2/(4a). If a > 0, the parabola opens upward and the vertex is the minimum. If a < 0, it opens downward and the vertex is the maximum.
- Can I solve a quadratic if a = 0?
- If a = 0, the equation becomes linear (bx + c = 0), not quadratic. The quadratic formula is undefined when a = 0. A linear equation with b not equal to 0 has one solution: x = -c/b.