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