Derivation of the quadratic equation

The simplest quadratic equation is: x2x^2

Translation in the y-direction gives: x2+Cx^2 + C

Translation in the x-direction gives: (xB)2+C\left(x - B\right)^2 + C

Finally, scaling gives: A(xB)2+CA\left(x - B\right)^2 + C

Solving this equation for 00 gives:

A(xB)2+C=0(xB)2=CAx=B±CA\begin{align*} A\left(x - B\right)^2 + C &= 0 \\ \left(x - B\right)^2 &= \frac{-C}{A} \\ x &= B \pm \sqrt{\frac{-C}{A}} \end{align*}

The “default” form of the quadratic equation is ax2+bx+cax^2 + bx +c, so let’s rewrite to this form:

A(xB)2+C=Ax22ABx+AB2+CA\left(x - B\right)^2 + C = Ax^2 - 2ABx + AB^2 + C

From this, we can deduce:

a=A    A=ab=2AB    B=b2ac=AB2+C    C=b24a+c\begin{align*} a = A &\implies A = a \\ b = -2AB &\implies B = \frac{-b}{2a} \\ c = AB^2 + C &\implies C = -\frac{b^2}{4a} + c \end{align*}

Combine these equations to get:

x=B±CA=b2a±b24a2ca=b2a±b24a24ac4a2=b±b24ac2a\begin{align*} x &= B \pm \sqrt{\frac{-C}{A}} \\ &= \frac{-b}{2a} \pm \sqrt{\frac{b^2}{4a^2} - \frac{c}{a}} \\ &= \frac{-b}{2a} \pm \sqrt{\frac{b^2}{4a^2} - \frac{4ac}{4a^2}} \\ &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \end{align*}