Where Does the Quadratic Formula Come From?

A Derivation of the Quadratic Formula


Every student of mathematics will eventually come across the quadratic formula in some algebra class. A student will probably see something along the lines of:

The solutions to the equation ax2+bx+c=0,ax^2+bx+c=0, where a0,a \neq 0, are x=b±b24ac2a.x = \dfrac{-b \pm \sqrt{{b^2-4ac}}}{2a}.

But where does this equation even come from? Most students don’t see a proof in their algebra classes (and may never come across one for the rest of their math careers), but in this post, we’ll go through exactly that.

Consider the quadratic ax2+bx+c,ax^2+bx+c, where a0.a \neq 0. We can assume that a0,a \neq 0, since if a=0,a = 0, then ax2+bx+c=bx+c,ax^2+bx+c = bx+c, which is no longer a quadratic (it is now linear). It is very important to state that a0,a \neq 0, since the derivation of the quadratic formula will use divisions by aa (recall that you can divide by a number as long as it is not 0). An important concept that the proof requires is completing the square, which is covered in this post. Now, here we go!

We first start with our initial problem:

ax2+bx+c=0ax^2+bx+c=0

Next, we’ll factor out an aa from the first two terms (The ax2ax^2 and bxbx terms). The reason we do this is to set ourselves up for completing the square. When we complete the square, we want to work with an x2x^2 term with a coefficient of 1.1. It may seem a bit odd to factor out an aa from a term that doesn’t even have an a,a, but it’s actually still possible! It’s very similar to rewriting 33 as 232.2 \cdot \frac{3}{2}.

a(x2+bax)+c=0a\left(x^2+ \dfrac{b}{a}x \right) + c = 0

If you’re unsure, you can always distribute back the aa and check that it indeed matches the equation that we started with!

Now, we’ll be completing the square. Remember that when completing the square, you take the coefficient of the xx term, half it, and then square it. In this case, the coefficient of the xx term is ba.\frac{b}{a}. If we take half of this, we get b2a.\frac{b}{2a}. Finally, if we square this term, we get b24a2.\frac{b^2}{4a^2}. We’re now going to add this to the inside of the parenthesis.

However, remember that you’re not allowed to just add a value to one side of the equation! Doing so will cause the equation to become invalid. If you add a value to one side of an equation, you must at the same value to the other side. Be careful, though! We’re not just adding b24a2;\frac{b^2}{4a^2} ; we’re actually adding ab24a2=b24aa \cdot \frac{b^2}{4a^2} = \frac{b^2}{4a} because of the aa that we factored out in the previous step. We now have the following:

a(x2+bax+b24a2)+c=b24aa\left(x^2+ \dfrac{b}{a}x + \dfrac{b^2}{4a^2} \right) + c = \dfrac{b^2}{4a}

Since we just completed the square, we can factor! We’re also going to be subtracting cc from both sides.

a(x+b2a)2=b24aca \left(x+\dfrac{b}{2a} \right)^2 = \dfrac{b^2}{4a} - c

Again, if you’re unsure, you can distribute (x+b2a)2\left(x+\frac{b}{2a} \right)^2 and check that it matches the corresponding portion from the previous step.

Next, we’re going to express the right side as a single fraction. We can do so by multiplying cc by 4a4a=1.\frac{4a}{4a}=1. Remember that multiplying by 11 doesn’t change the value of something!

a(x+b2a)2=b24ac4aa \left(x+\dfrac{b}{2a} \right)^2 = \dfrac{b^2-4ac}{4a}

Now, we’ll divide by aa on both sides. Recall that we have no issues with aa as a denominator since we know that a0.a \neq 0.

(x+b2a)2=b24ac4a2\left(x+\dfrac{b}{2a} \right)^2 = \dfrac{b^2-4ac}{4a^2}

Next, we’ll take the square root of both sides. Remember that when taking the square root, you must consider plus or minus.

x+b2a=±b24ac4a2x+ \dfrac{b}{2a} = \pm \sqrt{\dfrac{{b^2-4ac}}{4a^2}}

We can simplify further by using the following property for square roots: αβ=αβ.\sqrt{\frac{\alpha}{\beta}} = \frac{\sqrt{\alpha}}{\sqrt{\beta}}.

x+b2a=±b24ac4a2x+ \dfrac{b}{2a} = \pm \dfrac{\sqrt{{b^2-4ac}}}{\sqrt{4a^2}}

Now, we’ll simplify 4a2.\sqrt{4a^2}. We’ll be using the property that αβ=αβ.\sqrt{\alpha\beta} = \sqrt{\alpha}\sqrt{\beta}.

4a2=4a2=2a2.\sqrt{4a^2} = \sqrt{4}\sqrt{a^2}=2\sqrt{a^2}. You might be tempted to say that a2=a,\sqrt{a^2}=a, but this is actually not the case! It turns out that a2=a.\sqrt{a^2} = |a|. For instance, if we consider a=2,a=-2, then a2=(2)2=4=2.\sqrt{a^2} = \sqrt{(-2)^2} = \sqrt{4} = 2.

If we now come back to where we left off, we have the following:

x+b2a=±b24ac2ax+ \dfrac{b}{2a} = \pm \dfrac{\sqrt{{b^2-4ac}}}{2|a|}

Because of the ±\pm , we can actually get rid of the absolute value around the a.a. This is because ±a={a,a}=±a.\pm|a| = \{a,-a\} = \pm a. Don’t worry too much if this step is a bit confusing. All we need to know is that we can get rid of the absolute value.

We’re now left with the following:

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

We’re almost there! The next step is to subtract b2a\frac{b}{2a} from both sides.

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

Since both fractions have the same denominator, we can easily combine them, and we’ll have the quadratic formula!

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

The proof is now complete!