see https://en.wikipedia.org/wiki/Quadratic_formula
take the quadratic equation ($ax^2 + bx + c = 0$)
Divide the quadratic equation by a, which is allowed because a is non-zero:
$$x^2 + \frac{b}{a} x + \frac{c}{a}=0.$$
Subtract $\frac c a$ from both sides of the equation, yielding:
$$x^2 + \frac{b}{a} x= -\frac{c}{a}.$$
The quadratic equation is now in a form to which the method of completing the square can be applied. Thus, add a constant to both sides of the equation such that the left hand side becomes a complete square:
$$x^2+\frac{b}{a}x+\left( \frac{b}{2a} \right)^2 =-\frac{c}{a}+\left( \frac{b}{2a} \right)^2,$$
which produces:
$$\left(x+\frac{b}{2a}\right)^2=-\frac{c}{a}+\frac{b^2}{4a^2}.$$
Accordingly, after rearranging the terms on the right hand side to have a common denominator, we obtain this:
$$\left(x+\frac{b}{2a}\right)^2=\frac{b^2-4ac}{4a^2}.$$
The square has thus been completed. Taking the square root of both sides yields the following equation:
$$x+\frac{b}{2a}=\pm\frac{\sqrt{b^2-4ac\ }}{2a}.$$
Isolating $x$ gives the quadratic formula:
$$x=\frac{-b\pm\sqrt{b^2-4ac\ }}{2a}.$$
The plus-minus symbol "$±$" indicates that both
$$x=\frac{-b + \sqrt {b^2-4ac}}{2a}\quad\text{and}\quad x=\frac{-b - \sqrt {b^2-4ac}}{2a}$$