Given the quadratic equation a x 2 + b x + c = 0 , the roots are given by x = b ± b 2 4 a c 2 a .