$$(a\neq 0)(ax^2+bx+c=0)$$
$$\Rightarrow$$
$$x^2+\frac{b}{a}x+\frac{c}{a}=0$$
$$\Rightarrow$$
$$x^2+\frac{b}{a}x+\frac{b^2}{4a^2}-\frac{b^2}{4a^2}+\frac{c}{a}=0$$
$$\Rightarrow$$
$$x^2+\frac{b}{a}x+\frac{b^2}{4a^2}=\frac{b^2-4ac}{4a^2}$$
$$\Rightarrow$$
$$\left(x+\frac{b}{2a}\right)^2=\frac{b^2-4ac}{4a^2}$$
$$\Rightarrow$$
$$x+\frac{b}{2a}=\frac{\sqrt{b^2-4ac}}{2a} \,\,\ \vee \,\,\ x+\frac{b}{2a}=-\frac{\sqrt{b^2-4ac}}{2a}$$
$$\Rightarrow$$
$$x=\frac{-b+\sqrt{b^2-4ac}}{2a} \,\,\ \vee \,\,\ x=\frac{-b-\sqrt{b^2-4ac}}{2a}$$