\boldsymbol{F}(x,y)=\frac{1}{x^2 + y^2}\begin{bmatrix}
-y\\
x
\end{bmatrix}
-y\\
x
\end{bmatrix}
and we have a circle of any radius r
\varphi (t)=\begin{bmatrix}
r\ cos (t)\\
r\ sin (t)
\end{bmatrix}, 0\leq t\leq 2\pi
r\ cos (t)\\
r\ sin (t)
\end{bmatrix}, 0\leq t\leq 2\pi
Then I get that the line integral of F over phi is always two pi.
\int_{\varphi }^{ }F\cdot ds = 2\pi
I also checked the line line integral of F over a positively oriented square connecting (1, -1), (1, 1), (-1, 1), (-1,-1) and it was also 2pi.
Then I checked a bunch of random triangles (containing the origin) and they all worked out to be 2pi.
But F=\bigtriangledown \psi where \psi(x,y)=-\arctan (x/y) (right? unless I've made some error).
So I know that the line integral of F over any closed path should be zero except when the region contained inside the path contains the origin because that region is not simply connected (since F is undefined at the origin) so green's theorem doesn't work. (Because if we applied green's theorem we would get zero right? since the integrand would be zero by equality of mixed partials?) I haven't learned why the region needs to be simply connected, only that it does.
When I computed a not closed path, say a line segment connecting (1, -1) to (1, 1) by saying that
\int_{\varphi }^{ }F\cdot ds=\int_{a}^{b}F(\varphi (t))\cdot \varphi '(t)dt=\int_{a}^{b}\bigtriangledown \psi (\varphi (t))\cdot \varphi '(t)dt=\int_{a}^{b}\frac{d}{dt}(\psi (\varphi (t))))dt=\psi (\varphi (b))-\psi (\varphi (a))
I get -pi/2, whereas direct computation gives me pi/2. So F is not the gradient here or something? What is causing this weirdness? Is there any easy way to see why the line integral is always 2pi? This has me very confused.
