Return to Root Finding

# Quadratic Equation

The Quadratic Formula is a well known formula for finding the roots of a parabola described by , with and some real values. By plugging the values of and into the Quadratic Equation , one obtains the values for which the parabola intersects with the x-axis. This is the method for computing the roots of such a function, but I’m very bad in remembering the Quadratic Equation exactly. When I was a High School student I sometimes mixed up the signs and/or values, resulting in a lower math grade. Therefore I decided to figure out why the Quadratic Formula is as it is and how you can derive it in case you have no internet or math book with you. The derivation is quite straight-forward, but the important part is how to reason about the problem and working towards a solution.

# Derivation

The following figure shows such a parabola (or 2nd degree polynomial) with . It is important to note that a parabola is symmetric around some vertical axis at . This observation is essential for understanding the derivation. Furthermore, due to this symmetry, the distances between each root and the center are identical. In order to find the roots of the parabola, we need to find center first. At this center , the minimum (or maximum) of the parabola is located. Furthermore, we can clearly see that at this minimum the slope of the tangential line is zero (see ). But how can we find an for which the tangential is zero?

Using the derivative of a function, one can obtain the slope of this tangential line for some value of . Sounds complicated, but look closer to the plot above. Function is our tangential line of the parabola at and its slope is zero (due to ). Function is our parabola and its derivative which is zero exactly at center ! So, in order to compute , we need to solve for . Using some basic algebra one can find that fulfils this, which is correct according to the plot.

To be more general, function has a derivative . To find we solve for , which is .

Now we have found the center of a parabola, we continue with deriving a formula for computing and . Since the distances between the center and the roots are identical, we can also say , with the unknown distance between a root and the center. Furthermore, we known that for a root function . To find the roots, we substitute with and solve the equation for our unknown distance . Here the fun starts and you might recognize some parts of the Quadratic Equation.

First we substitute in with (we use a plus sign here, since it doesn’t matter for the derivation) and solve for . (For clarity, I show all steps in the derivation in order to make things clear.)             Now we have derived a function for computing the distance between a root and the center. In order to obtain and , we plug the formula for into the formula , which gives: ,

which is exactly the Quadratic Formula .