Finding the roots of a quadratic equation with leading coefficient greater than 1