Solving the root equation of a quadratic equation