ax^2+bx+c=a(x^2+bx/a)+c=a[x^2+2*x*b/(2a)+b^2/(4a^2)]+c-b^2/(4a^2)
=a(x+b/2a)^2+c-b^2/(4a^2)=0
然后去平方号即得