\frac{\partial}{\partial y}(x^3y^2 + g(y)) = 2x^3y + g'(y) \implies\\
g'(y) = 0 \implies\\
g(y) = k