Using the quadratic roots formula