Derive the Quadratic Formula

One of the most important skills an algebra student learns is the quadratic formula, or <math>x = \frac{-b \pm \sqrt{b^{2}-4ac}}{2a}.</math> With the quadratic formula, solving any quadratic equation of the form <math>ax^{2} + bx + c = 0</math> becomes a simple matter of substituting the coefficients <math>a, b, c</math> into the formula. While simply knowing the formula is often enough for many, understanding how it's derived (in other words, where it comes from) is another thing entirely. The formula is derived via "completing the square" that has other applications in math as well, so it is recommended that you be familiar with it.

Steps

  1. Start with the standard form of a general quadratic equation. While any equation with an <math>x^{2}</math> term in it qualifies as quadratic, the standard form sets everything to 0. Remember that <math>a,b,c</math> are coefficients that can be any real number, so don't substitute any numbers in for them - we want to work with the general form.
    • <math>ax^{2} + bx + c = 0</math>
    • The only condition is that <math>a \neq 0,</math> because otherwise, the equation reduces to a linear equation. See if you can find general solutions for the special cases where <math>b = 0</math> and where <math>c = 0.</math>
  2. Subtract <math>c</math> from both sides. Our goal is to isolate <math>x.</math> To start, we move one of the coefficients to the other side, so that the left side only consists of terms with <math>x</math> in it.
    • <math>ax^{2} + bx = -c</math>
  3. Divide both sides by <math>a</math>. Note that we could've switched this and the previous step, and still arrived at the same place. Remember that dividing a polynomial by something means that you divide each of the individual terms. Doing so makes it easier for us to complete the square.
    • <math>x^{2} + \frac{b}{a}x = \frac{-c}{a}</math>
  4. Complete the square. Recall that the goal is to rewrite an expression <math>x^{2} + 2\Box x + \Box^{2}</math> as <math>(x + \Box)^{2},</math> where <math>\Box</math> is any coefficient. It may not immediately be obvious to you that we can do this. To see it more clearly, rewrite <math>\frac{b}{a}x</math> as <math>2\frac{b}{2a}x</math> by multiplying the term by <math>\frac{2}{2}.</math> We can do this because multiplying by 1 does not change anything. Now we can clearly see that in our case, <math>\Box = \frac{b}{2a},</math> so we are only missing the <math>\Box^{2}</math> term. Therefore, in order to complete the square, we add that to both sides - namely, <math>\left(\frac{b}{2a}\right)^{2} = \frac{b^{2}}{4a^{2}}.</math> Then, of course, we factor.
    • <math>\begin{align}x^{2} + 2\frac{b}{2a}x + \frac{b^{2}}{4a^{2}} &= \frac{b^{2}}{4a^{2}} - \frac{c}{a} \\

\left(x + \frac{b}{2a}\right)^{2} &= \frac{b^{2}}{4a^{2}} - \frac{c}{a}\end{align}</math>

    • Here, it is clear why <math>a \neq 0,</math> since <math>a</math> is in the denominator, and you cannot divide by 0.
    • If you need to, you can expand the left side to confirm that completing the square works.
  1. Write the right side under a common denominator. Here, we want both denominators to be <math>4a^{2},</math> so multiply the <math>\frac{-c}{a}</math> term by <math>\frac{4a}{4a}.</math>
    • <math>\begin{align}\left(x + \frac{b}{2a}\right)^{2} &= \frac{b^{2}}{4a^{2}} - \frac{4ac}{4a^{2}} \\

&= \frac{b^{2} - 4ac}{4a^{2}}\end{align}</math>

  1. Take the square root of each side. However, it is essential that you recognize that in doing so, you are actually doing two steps. When you take the square root of <math>d^{2},</math> you do not get <math>d.</math> You actually get its absolute value, <math>|d|.</math> This absolute value is critical in getting both roots - simply putting square roots over both sides will only get you one of the roots.
    • <math>\left| x + \frac{b}{2a}\right| = \sqrt{\frac{b^{2} - 4ac}{4a^{2}}}</math>
    • Now, we can get rid of the absolute value bars by putting a <math>\pm</math> on the right side. We can do this because the absolute value does not distinguish between positive and negative, so they are both valid. This tidbit is why the quadratic equation always gets you two roots.
      • <math>x + \frac{b}{2a} = \pm\sqrt{\frac{b^{2} - 4ac}{4a^{2}}}</math>
    • Let's simplify this expression a bit further. Since the square root of a quotient is the quotient of the square roots, we can write the right side as <math>\frac{\pm\sqrt{b^{2} - 4ac}}{\sqrt{4a^{2}}}.</math> Then we can take the square root of the denominator.
      • <math>x + \frac{b}{2a} = \frac{\pm\sqrt{b^{2} - 4ac}}{2a}</math>
  2. Isolate <math>x</math> by subtracting <math>\frac{b}{2a}</math> from both sides.
    • <math>x = \frac{-b}{2a}\pm \frac{\sqrt{b^{2} - 4ac}}{2a}</math>
  3. Write the right side under a common denominator. This nets the quadratic formula, the formula that solves any quadratic equation in standard form. This works for any <math>a, b, c</math> and outputs an <math>x</math> that can be real or complex. To confirm that this process works, simply follow the steps of this article in reverse order to recover standard form.
    • <math>x = \frac{-b \pm \sqrt{b^{2}-4ac}}{2a}</math>


Tips

  • It is interesting to note that the quadratic formula holds for complex coefficients as well, though you may have to do a little more simplifying for the final answer, and the roots will no longer come in conjugate pairs. Problems with quadratic expressions are nevertheless almost always given with real coefficients.

Related Articles

Sources and Citations