MathCalcLab

Quadratic Equation Solver

Solve quadratic equations with real and complex solutions

Explore the parabola ax² + bx + c

Drag the a, b, c sliders. Watch the parabola shift, scale, and flip — and how its roots and vertex respond.

Quick presets

1.00
-3.003.00
-5.00
-10.0010.00
6.00
-10.0010.00

Predict what will happen

What happens to the parabola when a becomes negative?

Slide a from 1 to −1 with b = 0, c = 4.

Notice

For a ≠ 0, the discriminant Δ = b² − 4ac determines the roots: positive means two distinct real roots, zero means a double real root, and negative means no real roots.

Common mistake

Don't drop the sign of b in the formula. Use −b, not b. The ± is the square root, not the leading b.

Why it works

For a ≠ 0, the vertex lies at x = −b/(2a). When Δ ≥ 0, each real root is √Δ/(2|a|) from that axis.

Concept check

For a ≠ 0, if the discriminant b² − 4ac is positive, how many real roots does the equation have?

Results

Final Answer

\(x_1 = 3.0000\), \(x_2 = 2.0000\)

Step-by-step Solution

  1. Given equation: \(1.0000x^2 -5.0000x + 6.0000 = 0\)
  2. Using the quadratic formula: \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\)
  3. Calculate discriminant: \(\Delta = (-5)^2 - 4(1)(6) = 1\)
  4. Two real solutions: \(x_1 = 3.0000\), \(x_2 = 2.0000\)
Discriminant
\(\Delta = 1\)
Vertex
\((2.5000, -0.2500)\)

Theory & Formula

A quadratic equation is a polynomial equation of degree 2, with the general form ax² + bx + c = 0, where a ≠ 0.

The quadratic formula provides the solution(s) to any quadratic equation. The discriminant (b² - 4ac) determines the nature of the roots:

  • Δ > 0: Two distinct real roots
  • Δ = 0: One real root (double root)
  • Δ < 0: Two complex conjugate roots
\(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\)

Worked Examples

Two real roots

\(x^2 - 5x + 6 = 0 \rightarrow x_1 = 3, x_2 = 2\)

One real root (double)

\(x^2 - 4x + 4 = 0 \rightarrow x = 2\): One real root (double root)

Complex roots

\(x^2 + x + 1 = 0\): Two complex conjugate roots

External educational resource

Explore quadratics in PhET

Open PhET's Graphing Quadratics simulation to drag coefficients, see roots and vertex, and verify your intuition.

PhET Interactive Simulations, University of Colorado Boulder

Open in new tab
Quadratic Equation Solver | MathCalcLab | MathCalcLab