Write the quadratic equation y = x²-6x+7 in vertex form.

y =

y = (x-3)² - 2