Write the quadratic function in vertex form.

y = x^2 + 4x + 7

y = (x - 2)^2 + 3
y = (x - 2)^2-3
y = (x + 2)^2 - 3
y =(x + 2)^2 + 3