Compute $f$ so that $F=\nabla f$ for $$F(x,y,z)=(yz+x-y, xz-x+z, xy+y-z)$$
I need to see the method of finding this that is not using the theorem about the star shaped set. The method that is like integrating all three parts of $F$ and then comparing them. I cant get a correct answer.
Integrating you get: $$f(x,y,z) = xyz +x^2/2-yx +C_1(y,z)$$ $$f(x,y,z) = xyz +yz - yx +C_2(x,z)$$ $$f(x,y,z) = xyz +yz - z^2/2 +C_3(x,z)$$ So: $$f(x,y,z) = xyz +yz-xy+x^2/2-z^2/2 +C$$