completing the square to solve a quadratic equation