Quadratic Formula
The quadratic formula gives the roots of any second-degree polynomial in one variable in closed form. It is the fundamental algebraic tool for solving when factoring by inspection isn’t practical.
The Formula
For real coefficients with , the quadratic formula gives the solutions of the quadratic equation :
The produces the two roots — one for each sign.
The formula always works as long as ; otherwise the equation isn’t quadratic but linear (, with the single root ). The expression under the square root has its own name and controls how many real roots exist.
The Discriminant
The discriminant of the quadratic is the quantity
It governs the nature of the roots:
- : two distinct real roots
- : one repeated real root (also called a double root),
- : two complex-conjugate roots, no real solutions
Geometrically, the graph of is a parabola, and the real roots are the points where it crosses the -axis. The three discriminant cases correspond to the parabola crossing the axis at two points, touching it at exactly one point (the vertex sits on the axis), or floating entirely above or below it.
For : , giving roots .
For : , giving the repeated root .
For : , no real roots — the parabola never crosses the -axis.
Derivation by Completing the Square
The formula isn’t pulled from thin air — it follows from a single algebraic manoeuvre: rewriting the quadratic so that appears inside one squared term, then taking square roots.
Derive by completing the square
Start from with . Divide through by :
Move the constant to the right-hand side:
Add to both sides so the left side becomes a perfect square:
The left side now factors as . Combine the right side over the common denominator :
Take square roots of both sides:
Solve for :
Vieta’s Formulas
The sum and product of the two roots can be read off directly from the coefficients — without going through the quadratic formula and its square root.
For the quadratic with roots , Vieta’s formulas relate the roots to the coefficients:
Equivalently, the polynomial factors as
These are useful as a quick sanity check after solving — the sum and product of the roots you found should match and — and as a way to construct a quadratic with prescribed roots without going through the full formula.
A quadratic with roots and leading coefficient :
which matches the first example above.