We want a solution to ax^2+bx+c=0. Complete the square to get a[(x+b/2a)^2 -(b^2)/(4a^2)]+c=0. Expalding brackets and rearanging gets a(x+b/2a)^2=(b^2)/4a -c. Divide by a to get (x+b/2a)^2= b^2/4a^2 -c/a=(b^2-4ac)/4a^2. Then root each side tot get (x+b/2a)=+-(root(b^2-4ac))/2a. Then simply move over the b/2a to get x=-b/2a+- (root(b^2-4ac))/2a=(-b+-(root(b^2-4ac)))/2a.