Every quadratic equation of the form $y = ax^2 + bx + c$ can be solved for its roots — the $x$-values where the parabola crosses the $x$-axis. To find those roots, we set $y = 0$ and solve:
The quadratic formula gives us the roots directly — but it isn't pulled from thin air. It comes from a technique called completing the square, applied to the general equation above. Here is the full derivation, one careful step at a time.
Subtract $c$ from both sides to isolate the terms containing $x$:
We need the coefficient of $x^2$ to be $1$ before we can complete the square:
The coefficient of the linear term $x$ is $\dfrac{b}{a}$. This number is the key to completing the square.
Divide the coefficient by $2$ and square the result:
We are exploiting the algebraic identity $(x + d)^2 = x^2 + 2dx + d^2$. If we set $2d = \tfrac{b}{a}$, then $d = \tfrac{b}{2a}$, and the "missing piece" to complete the perfect square is $d^2 = \tfrac{b^2}{4a^2}$.
Whatever we add to one side, we must add to the other to keep the equation balanced:
Combine the two fractions on the right using a common denominator of $4a^2$:
So the equation becomes:
The left side is now a perfect square trinomial — it factors as a binomial squared:
Expand $\left(x + \tfrac{b}{2a}\right)^2 = x^2 + 2 \cdot x \cdot \tfrac{b}{2a} + \left(\tfrac{b}{2a}\right)^2 = x^2 + \tfrac{b}{a}\,x + \tfrac{b^2}{4a^2}$. ✓
The square root undoes the square on the left. On the right, we must include $\pm$ because both a positive and negative value could have been squared to produce the right side:
Both $(+3)^2 = 9$ and $(-3)^2 = 9$. Whenever we take a square root in an equation, we account for both possibilities with $\pm$.
Subtract $\dfrac{b}{2a}$ from both sides:
Both terms share the denominator $2a$, so we write them as one fraction:
The expression under the square root, $\,\Delta = b^2 - 4ac\,$, is called the discriminant. It tells you what kind of roots the equation has before you even solve it:
| Discriminant | Meaning | Roots |
|---|---|---|
| $b^2 - 4ac > 0$ | Positive under the radical | Two distinct real roots |
| $b^2 - 4ac = 0$ | Zero under the radical | One repeated real root |
| $b^2 - 4ac < 0$ | Negative under the radical | Two complex conjugate roots |
Solve $\;2x^2 - 4x - 3 = 0$.
Here $a = 2$, $b = -4$, $c = -3$. Plug into the formula:
So the two roots are $\;x = \dfrac{2 + \sqrt{10}}{2} \approx 2.58\;$ and $\;x = \dfrac{2 - \sqrt{10}}{2} \approx -0.58$.