Completing the square to write a quadratic from standard form to vertex form