The Quadratic Equation Solver finds the solutions of equations in the standard form ax² + bx + c = 0 and also reports the parabola’s vertex. It is useful when you need to know whether the equation has two distinct real roots, one repeated real root, or no real roots at all. The calculator first evaluates the discriminant, because that single value determines the type of solutions you can expect.
Use it only when a ≠ 0. If a = 0, the equation is not quadratic and a linear-method calculator is more appropriate. When the discriminant is non-negative, the calculator applies the quadratic formula to compute real roots and then derives the vertex coordinates for graphing and interpretation.
How This Calculator Works
Enter the coefficients a, b, and c from the quadratic equation ax² + bx + c = 0. The calculator computes the discriminant first:
D = b² - 4ac
If D > 0, the equation has two distinct real roots. If D = 0, it has one repeated real root. If D < 0, the roots are not real; in that case, the calculator can still show the discriminant and vertex, but real root values do not exist.
The vertex is found from the axis of symmetry, which is the line through the peak or trough of the parabola.
Formula
The calculator uses these standard quadratic relationships:
| Quantity | Expression | Meaning |
|---|---|---|
| Discriminant | D = b² - 4ac | Determines the type and number of roots |
| Root 1 | x₁ = (-b + √D) / (2a) | First real root when D ≥ 0 |
| Root 2 | x₂ = (-b - √D) / (2a) | Second real root when D ≥ 0 |
| Vertex x-coordinate | xᵥ = -b / (2a) | Horizontal coordinate of the parabola’s vertex |
| Vertex y-coordinate | yᵥ = a(xᵥ)² + b(xᵥ) + c | Function value at the vertex |
Variable definitions: a is the coefficient of x², b is the coefficient of x, and c is the constant term. The term D is the discriminant. The vertex coordinates are written as (xᵥ, yᵥ).
Example Calculation
- Start with the equation x² - 5x + 6 = 0. Here, a = 1, b = -5, and c = 6.
- Compute the discriminant: D = (-5)² - 4(1)(6) = 25 - 24 = 1.
- Because D > 0, the equation has two distinct real roots.
- Apply the quadratic formula: x₁ = (5 + √1) / 2 = 3 and x₂ = (5 - √1) / 2 = 2.
- Find the vertex x-coordinate: xᵥ = -(-5) / (2·1) = 2.5.
- Substitute back to get the vertex y-coordinate: yᵥ = 1(2.5)² - 5(2.5) + 6 = -0.25.
- The result is roots 2 and 3, with vertex (2.5, -0.25).
Where This Calculator Is Commonly Used
- Algebra practice, for factoring and solving polynomial equations.
- Graphing parabolas, where the roots and vertex help sketch the curve accurately.
- Physics and engineering, especially when modeling motion, optimization, or projectile paths.
- Business and economics, where quadratic models appear in revenue, cost, and profit analysis.
- Homework and exam checking, to verify manual calculations and confirm whether roots are real.
How to Interpret the Results
The discriminant is the quickest way to understand the equation’s behavior. A positive value means the parabola crosses the x-axis twice. A zero value means it just touches the x-axis at one point. A negative value means the parabola does not intersect the x-axis in the real plane.
The roots are the x-values where the parabola crosses the axis. The vertex is the turning point: if a > 0, the parabola opens upward and the vertex is a minimum; if a < 0, it opens downward and the vertex is a maximum. If the equation is not truly quadratic because a = 0, the calculator results should not be used as a quadratic solution.
Frequently Asked Questions
What does the discriminant tell me?
The discriminant D = b² - 4ac tells you how many real roots the quadratic has. If D > 0, there are two distinct real roots. If D = 0, there is one repeated real root. If D < 0, there are no real roots, although complex roots would exist mathematically.
Why do I need a ≠ 0?
A quadratic equation must include the x² term, so the coefficient a cannot be zero. If a = 0, the equation becomes linear rather than quadratic, and the quadratic formula no longer applies. In that case, a different solver is needed.
What if the discriminant is negative?
If the discriminant is negative, the square root in the quadratic formula is not a real number. That means the equation has no real x-intercepts. The calculator may still show the discriminant and vertex, but the real-root fields are not valid as real values.
Can a quadratic have one root repeated twice?
Yes. When D = 0, both formulas produce the same result because the plus and minus parts vanish. This is called a repeated or double root. Graphically, the parabola touches the x-axis at exactly one point and turns back without crossing it.
How is the vertex related to the roots?
The vertex lies on the axis of symmetry, which is exactly halfway between the two roots when the roots are real. Its x-coordinate is -b / (2a). The vertex helps describe the parabola’s shape and whether the equation has a maximum or minimum value.
Does this calculator show complex roots?
This calculator is designed to emphasize the discriminant, real roots, and vertex. If the discriminant is negative, the roots are not real and are therefore not presented as real-number solutions. For complex-number solutions, a dedicated complex quadratic solver would be more appropriate.
What is the fastest way to check my answer manually?
Substitute the proposed root back into the original equation. If the left-hand side becomes zero, the root is correct. You can also verify the discriminant first to know whether two, one, or no real solutions should be expected before doing the full calculation.
FAQ
What does the discriminant tell me?
The discriminant D = b² - 4ac tells you how many real roots the quadratic has. If D > 0, there are two distinct real roots. If D = 0, there is one repeated real root. If D < 0, there are no real roots, although complex roots would exist mathematically.
Why do I need a ≠ 0?
A quadratic equation must include the x² term, so the coefficient a cannot be zero. If a = 0, the equation becomes linear rather than quadratic, and the quadratic formula no longer applies. In that case, a different solver is needed.
What if the discriminant is negative?
If the discriminant is negative, the square root in the quadratic formula is not a real number. That means the equation has no real x-intercepts. The calculator may still show the discriminant and vertex, but the real-root fields are not valid as real values.
Can a quadratic have one root repeated twice?
Yes. When D = 0, both formulas produce the same result because the plus and minus parts vanish. This is called a repeated or double root. Graphically, the parabola touches the x-axis at exactly one point and turns back without crossing it.
How is the vertex related to the roots?
The vertex lies on the axis of symmetry, which is exactly halfway between the two roots when the roots are real. Its x-coordinate is -b / (2a). The vertex helps describe the parabola’s shape and whether the equation has a maximum or minimum value.
Does this calculator show complex roots?
This calculator is designed to emphasize the discriminant, real roots, and vertex. If the discriminant is negative, the roots are not real and are therefore not presented as real-number solutions. For complex-number solutions, a dedicated complex quadratic solver would be more appropriate.
What is the fastest way to check my answer manually?
Substitute the proposed root back into the original equation. If the left-hand side becomes zero, the root is correct. You can also verify the discriminant first to know whether two, one, or no real solutions should be expected before doing the full calculation.