To reflect the function \( f(x) = x^2 - 1 \) over the y-axis, we replace \( x \) with \( -x \) in the function.
So, we compute:
\[ g(x) = f(-x) = (-x)^2 - 1 = x^2 - 1 \]
Therefore, the correct equation that identifies \( g(x) \) after reflecting \( f(x) \) over the y-axis is:
B. \( g(x) = x^2 - 1 \).