2025-04-17 ·  2 min

Another way to derive the general solution to degree-two polynomials.

The symmetry of quadratic equations

In school, we learn to solve quadratic equations of the form ax2+bx+c=0ax^2 + bx + c = 0 using the discriminant. But we’re not always shown where the formula actually comes from.

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Which is a shame, because the proof is well within everyone’s reach.

Let’s go

The classical method involves “completing the square”, which I’ve never found particularly natural. Instead, we can arrive at the same result using a simple observation about the symmetry of the equation, and a standard algebraic identity.

First, let’s simplify by dividing through by aa (aa is non-zero, otherwise it’s not a quadratic equation):

x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0

Let β=ba\beta = \frac b a and γ=ca\gamma = \frac c a (think of them as scaled versions of bb and cc), and separate the constant term:

x2+βx=γx^2 + \beta x = -\gamma

The only awkward term here is the xx term. Without it, we could just take the square root. Factoring:

x(x+β)=γx(x+\beta) = -\gamma

If only the left-hand side were of the form (x)(x+)(x-\ldots)(x+\ldots), the xx term would vanish…

A change of variable for clarity

Why not try a change of variable? Setting y=x+β2y = x + \frac{\beta}{2}, so x=yβ2x = y - \frac{\beta}{2}, we get:

(yβ2)(y+β2)=γ\left(y - \frac{\beta}{2}\right)\left(y + \frac{\beta}{2}\right) = -\gamma

This is a difference of squares, which reduces to:

y2β24=γy^2 - \frac{\beta^2}{4} = -\gamma

We can now solve for yy and come back to xx afterwards.

y=±β24γy = \pm \sqrt{\frac{\beta^2}{4} - \gamma}

Since x=yβ2x = y - \frac{\beta}{2}:

x=β2±β24γx = - \frac{\beta}{2} \pm \sqrt{\frac{\beta^2}{4} - \gamma}

And there’s the formula

Recalling that β=ba\beta = \frac{b}{a} and γ=ca\gamma = \frac{c}{a}:

x=b2a±b24a2cax = - \frac{b}{2a} \pm \sqrt{\frac{b^2}{4a^2} - \frac{c}{a}}

Putting the contents of the square root over a common denominator:

x=b2a±b24ac4a2=b2a±b24ac2a\begin{align*} x &= - \frac{b}{2a} \pm \sqrt{\frac{b^2 - 4ac}{4a^2}} \\ &= - \frac{b}{2a} \pm \frac{\sqrt{b^2 - 4ac}}{2a} \end{align*}

Which gives us the general formula:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

I give maths lessons online — if this kind of approach helps you understand things better, feel free to have a look here!