Write the quadratic equation y=x^2-6x+7 in vertex form

The quadratic equation y=x^2-6x+7 in vertex form is:

y = (x-3)^2 - 2