## Section12.6Derivation of the Quadratic Formula

The derivation of the quadratic equation relies on the process of completing the square. We being with the equation

\begin{equation*} ax^2+bx+c=0, a \neq 0\text{.} \end{equation*}

Before completing the square we need to isolate the constant and divide both sides by $a$ so that the coefficient on the squared term is $1\text{.}$

\begin{align*} ax^2+bx+c\amp=0\\ ax^2+bx+c\subtractright{c}\amp=0\subtractright{c}\\ ax^2+bx\amp=-c\\ \multiplyleft{\frac{1}{a}}(ax^2+bx)\amp=\multiplyleft{\frac{1}{a}}-c\\ x^2+\frac{b}{a}x\amp=-\frac{c}{a} \end{align*}

We now complete the square on the left side of the equation by adding the square of half the linear coefficient. This action is balanced by adding the same expression to the right side of the equation. We'll then go ahead and combine the terms on the right side of the equation.

We now factor the left side into its perfect square and complete the derivation using the square root method. Note that when we simplify $\sqrt{4a^2}$ we can simply state $2a\text{.}$ It's true that we don't know whether $a$ is a positive number or a negative number, but when we extract the roots we introduce the $\pm$ sign, so we will have two roots, one positive and one negative, regardless of whether $a$ is positive or negative (assuming that $b^2-4ac \neq 0$). If $b^2-4ac=0\text{,}$ then $\frac{b^2-4ac}{4a^2}=\frac{0}{2a}=0$ whether $a$ is positive or negative.