Math
Quadratic Formula: How to Solve Any Quadratic Equation Step by Step
Learn the quadratic formula, understand the discriminant, and solve quadratic equations with worked examples and visual explanations.
The Quadratic Formula
Every quadratic equation of the form
has solutions given by the quadratic formula:
This single formula works for every quadratic equation — whether it has two real roots, one repeated root, or two complex roots.
Understanding the Discriminant
The expression under the square root is called the discriminant:
The discriminant tells you the nature of the roots before you even solve:
- — Two distinct real roots
- — One repeated real root (a perfect square)
- — Two complex conjugate roots
Worked Examples
Example 1: Two Real Roots
Solve .
Here , , . First, compute the discriminant:
Since , we get two distinct real roots:
Example 2: Repeated Root
Solve .
One repeated root:
This makes sense because .
Example 3: Complex Roots
Solve .
Since :
The roots are and .
Deriving the Formula: Completing the Square
Where does the quadratic formula come from? Start with the general equation and complete the square:
Divide both sides by :
Move the constant term:
Add to both sides to complete the square:
The left side is now a perfect square:
Take the square root of both sides:
Solve for :
Vieta’s Formulas
For a quadratic with roots and :
These relationships are useful for checking your answers. For Example 1 above: and . Both check out.
Vertex Form and the Parabola
A quadratic function graphs as a parabola. The vertex is at:
Notice that is exactly the midpoint of the two roots — the axis of symmetry of the parabola passes right between them.
When to Use the Quadratic Formula
The quadratic formula always works, but it’s not always the fastest method:
- Factoring is quicker when the roots are “nice” integers or simple fractions.
- Completing the square is useful when you need the vertex form.
- The quadratic formula is the reliable fallback when factoring isn’t obvious.