robertjford80 said:
I've given up on this problem. The book only had about 7 problems on these, and I understood about 5 of them, so that's enough to move on.
Let's try the method you used in your more recent thread:
finding a potential function pt 2
You had the partials of f(x,y,z) W.R.T. the variables, from the vector field components.
\displaystyle \frac{\partial f}{\partial x}=e^x\cos(y)+yz<br />
\quad\to\quad <br />
f(x,\,y,\,z)=e^x\cos(y)+xyz+\text{Some term not containing }x\text{ but including the constant, }C
\displaystyle \frac{\partial f}{\partial y}=xz-e^x\sin(y)<br />
\quad\to\quad <br />
f(x,\,y,\,z)=xyz+e^x\cos(y)+\text{Some term not containing }y\text{ but including the constant, }C
\displaystyle \frac{\partial f}{\partial z}=xy+z<br />
\quad\to\quad <br />
f(x,\,y,\,z)=xyz+\frac{z^2}{2}+\text{Some term not containing }z\text{ but including the constant, }C
So by inspection we have that \displaystyle f(x,\,y,\,z)=e^x\cos(y)+xyz+\frac{z^2}{2}+C\ .
I hope that makes more sense to you!