# Trouble with a simple Line Integral.

Let $\gamma$ be a smooth Jordan curve in $\mathbb{R}^2\setminus\{(0,0)\}$ from $(1,0)$ to $(1,0)$, winding about the origin once in the clockwise direction. Compute:

$$\int_{\gamma}\frac{y}{x^2+y^2}dx-\frac{x}{x^2+y^2}dy$$

I figured this problem suggested to use the Fundamental Theorem of Line Integrals, so if $\gamma(t)=\langle x(t),y(t)\rangle$, then it seems natural to want to write

where $f(x,y)=\frac{-1}{2(x^2+y^2)}$. Then the fundamental theorem would imply that the line integral evaluates to $0$, since the gradient is obviously continuous on $\gamma$.

But - the last inequality is wrong, insofar as the order is wrong. But I thought it might be more useful to show you where I'm stuck, and demonstrate I thought about this before posting.

Sincerely,

Someone who hasn't had to take a line integral in five years.

-
Does not seems that $\nabla f$ corresponds to the given differential form. – enzotib Sep 11 '12 at 5:39

The fundamental/divergence/Green's/Stokes' theorem does not apply if your function has singularity inside the domain. In this case, there is a singularity at $(0, 0)$, and your curve does go around the singularity.
You just have to parametrize the curve and integrate along the curve. Integrate along a unit circle parameterized by $\theta$ seems like an easy thing to do. – Tunococ Sep 11 '12 at 5:34
Perhaps you should write your function in the complex form $f(z) dz$, where $dz=dx+idy$. Then use the residue theorem, as this function looks like it's holomorphic outside of zero, so you only have to calculate its residue in 0.