Show that $\textbf F$ is a gradient field by giving a scalar function $f$ on $\Omega^+$ such that $\nabla f=\textbf F$.
$\textbf F = (\frac{-y}{x^2+y^2},\frac{x}{x^2+y^2},0)$, $\Omega^+ = \{(x,y)|x,y>0\}$.
My attempt:
We must have that $\frac{\partial f}{\partial x} = \frac{-y}{x^2+y^2}$, so I obtained that $f = -arctan(x/y)+g(y,z)$.
Also $\frac{\partial f}{\partial y} = \frac{x}{x^2+y^2}$, so I got that $f = arctan(y/x)+h(x,z)$.
And $\frac{\partial f}{\partial z} = 0$ tells us that $f$ is in terms of $x$ and $y$.
But now I am stuck. How is it possible that $-arctan(x/y)+g(y,z)=arctan(y/x)+h(x,z)$?