Solving quadratics using square roots