Definition
What a quadratic equation is
A quadratic equation in one variable has a nonzero squared term and no higher power of that variable after simplification. Its solutions are the values that make the equation true. Real solutions occur where the corresponding parabola meets the horizontal axis.
- Standard form
- ax² + bx + c = 0, with a nonzero
- Root type
- The sign of the discriminant determines it
- Vertex
- The lowest or highest point of the parabola
The quadratic formula
Any equation that can be written as ax² + bx + c = 0, with a not zero, is quadratic. The formula gives the solutions directly and works every time, unlike factoring, which only works neatly for some equations.
This calculator uses a numerically stable version of the formula so that results stay accurate even when b is very large compared with a and c.
A worked example
Solve x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6. The discriminant is (−5)² − 4 × 1 × 6 = 1. The roots are (5 + 1) ÷ 2 = 3 and (5 − 1) ÷ 2 = 2.
The vertex is at x = 5 ÷ 2 = 2.5, where the equation equals 2.5² − 12.5 + 6 = −0.25. The parabola opens upward because a is positive, with its lowest point at (2.5, −0.25).
Reading the result
Two real roots mean the parabola crosses the x-axis twice. One real root means it just touches the axis. Complex roots mean it never meets the axis, so the equation has no real-number solution.
Quadratics appear in physics for the path of a thrown object, in business for profit and revenue, and in geometry for area problems.
Checking your answer
Substitute each root back into the equation: it should give zero, or a number very close to zero for decimal answers. The sum of the roots equals −b ÷ a and their product equals c ÷ a, which is a quick check.
Seeing what the roots mean
The roots are where the curve y = ax² + bx + c crosses the x-axis. Two real roots mean it crosses twice, one repeated root means it just touches the axis at its lowest or highest point, and complex roots mean it never reaches the axis. The vertex is that turning point, the minimum if a is positive and the maximum if a is negative.
You can check the result by plotting the equation: type the expression into the graphing calculator and look for where the line crosses zero.
Step-by-step example
Solve x² − 5x + 6 = 0 with coefficients a = 1, b = −5 and c = 6.
| Step | Result |
|---|---|
| Discriminant | 1 |
| Smaller root | 2 |
| Larger root | 3 |
| Vertex x-coordinate | 2.5 |
| Vertex y-coordinate | −0.25 |
Formulas used
ax² + bx + c = 0
x = (−b ± √(b² − 4ac)) ÷ 2a
- x
- unknown or root
- a
- coefficient of x²
- b
- coefficient of x
- c
- constant term
Example: x² − 5x + 6 = 0: the discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 and x = 2.
D = b² − 4ac
D > 0: two real roots D = 0: one repeated root D < 0: two complex roots
- D
- discriminant
- a
- coefficient of x²
- b
- coefficient of x
- c
- constant term
Example: x² + 2x + 5 = 0: D = 4 − 20 = −16, so there are no real roots; they are −1 ± 2i.
x = −b ÷ 2a
y = a x² + b x + c at that x
- x
- horizontal coordinate of the vertex
- y
- vertical coordinate of the vertex
- a
- coefficient of x²
- b
- coefficient of x
- c
- constant term
Example: For x² − 5x + 6: vertex at x = 2.5, y = −0.25.
When the answer can mislead
- Move every term to the same side and combine like powers before reading the coefficients.
- Enter zero for a missing linear or constant term so the other coefficients stay in the correct positions.
- A double root touches the horizontal axis once even though its algebraic multiplicity is two.
Questions
How do you solve a quadratic equation?
Use the quadratic formula: x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving 2 and 3.
What is the discriminant?
It is b² − 4ac, the part under the square root. If it is positive there are two real roots. If it is zero there is one repeated root. If it is negative there are no real roots, only two complex ones.
What are complex roots?
When the discriminant is negative the square root involves i, where i² = −1. The roots come as a pair, such as −1 + 2i and −1 − 2i. The parabola never crosses the x-axis in that case.
Why can a not be zero?
If a is zero, there is no x² term, so the equation is linear rather than quadratic. It has a single solution, x = −c ÷ b, which you can find without the formula.
What is the vertex of a parabola?
It is the turning point. Its x-coordinate is −b ÷ 2a and the y-coordinate is the value of the equation there. It sits on the axis of symmetry, halfway between the two roots when they exist.
Embed this calculator
Cite this calculator
Quadratic Equation Calculator. CalculatorLab. https://calculatorlab.site/calculators/quadratic-equation-calculator/. Last updated . Accessed .