solve quadratics by taking the square root