Find the potential function for the vector field $$\frac{16x}z\hat{\mathbf i}+\frac{18y}z\hat{\mathbf j}+\left(1-\frac{8x^2 +9y^2}{z^2}\right)\hat{\mathbf k}$$ which has no constant terms.
So far I have $$f = \frac8z x^2 +\frac9z y^2 +g(z).$$ The $z$ term kinda messes things up and I'm not really able to get any further.