Answer
$f(x,y)=x^2 y+xy^{-2}+k$
Work Step by Step
The vector field $F(x,y)=ai+bj$ is known as conservative field throughout the domain $D$, when we have
$\dfrac{\partial a}{\partial y}=\dfrac{\partial b}{\partial x}$
$a$ and $b$ represents the first-order partial derivatives on the domain $D$.
From the given problem, we get $\dfrac{\partial a}{\partial y}=\dfrac{\partial b}{\partial x}=
2x-2y^{-3}$
Thus, the vector field $F$ is conservative.
Here, we have $f(x,y)=x^2 y+xy^{-2}+g(y)$
$\implies f_y(x,y)=x^2 -2xy^{-3}+g'(y)$
and $g(y)=k$; where $k$ is a constant.
Hence, we get $f(x,y)=x^2 y+xy^{-2}+k$