To reflect the function \( f(x) = (x + 1)^2 \) over the y-axis, we replace \( x \) with \( -x \) in the function.
So, we calculate:
\[ g(x) = f(-x) = ((-x) + 1)^2 = (-x + 1)^2 \]
Thus, the equation for \( g(x) \) is:
\[ g(x) = (-x + 1)^2 \]
So the correct answer is:
a. \( g(x) = (-x + 1)^2 \).