I am trying to evaluate $$\oint _C \frac{-ydx+xdy}{x^2+y^2}$$
clockwise around the square with vertices (−1,−1), (−1,1), (1,1), and (1,−1).
So from the question, $$\vec{F}=<\frac{-y}{x^2+y^2},\frac{x}{x^2+y^2}>$$
I first conducted the gradient test $\frac{\partial F_2}{\partial x}=\frac{\partial F_1}{\partial y}$ to see whether the field is conservative. And indeed, I found out that
$$\frac{\partial F_2}{\partial x}=\frac{\partial F_1}{\partial y}=\frac{y^2-x^2}{(x^2+y^2)^2}$$
Thus, $$\vec\nabla \times\vec F=0$$
In this case, since the domain(the square) is simply connected, I thought that the answer was: $$\oint _C \frac{-ydx+xdy}{x^2+y^2}=0$$
However, apparently this is wrong and the solution is
$$\oint _C \frac{-ydx+xdy}{x^2+y^2}=2\pi$$
I don't know which of my logic is flawed.. Please help!