I found the following problem in a textbook (translated):
Evaluate $$\int_\gamma \frac{-y}{x^2+y^2}dx + \frac{x}{x^2+y^2}dy + \ln{(z^4+z^2+1)}dz$$ where $\;\gamma\;$ is given by the intersection between the cone $x^2+y^2=z^2$, and the plane $x+y+10z=10$. The orientation is chosen to be so that the curve goes one revolution around the $z$-axis clockwise (seen from above)
I am thinking to use stokes theorem. I evaluate the curl to be $(0,0,0)$ and the line integral becomses $0$. I know this is incorrect, what am I missing? I also see that the vector field is undefined along the $z$-axis.
As the vector field is not defined at any point on z-axis, it will be easiest to choose surface of the cone between $z = 1 - \frac{1}{10} (x + y)$ and say $z = 2$ [any value of $z (\ne 0)$ which intersects the cone and is clear from the other plane $x+y+10z = 10$ within the bounds of the cone]. Now our surface has two boundaries.
So by Stokes theorem we have,
$\displaystyle \iint_S (\nabla \times \vec F) \cdot \hat {n} \ dS = 0 = \int_{C2} \vec F \ dr - \int_{C1} \vec F \ dr$
$\displaystyle - \int_{C1} \vec F \ dr = - \int_{C2} \vec F \ dr$
where $C1$ is the curve given by intersection of $x+y+10z = 10$ and $z^2 = x^2+y^2$. $C2$ is intersection of plane $z = 2, z^2 = x^2+y^2$.
We parametrize curve $C2$ as $ \ r(t) = (2 \cos t, 2 \sin t, 2)$
$r'(t) = (-2\sin t, 2 \cos t, 0)$
$\vec F (r(t))= (- \frac{2 \sin t}{4}, \frac{2 \cos t}{4}, \ln (21))$
$\displaystyle - \int_{C2} \vec F \ dr = - \int_0^{2\pi} \vec F(r(t)) \cdot r'(t) \ dt = - 2\pi$