completing the square and quadratic formula