Let $\vec f(\vec r) = (y,-x, zxy)$ and let $S$ be the surface $x^2+y^2+3z^2=1$ , $z≤0$, with unit normal vector $\vec n$ pointing in the positive $z$-direction. The value of the surface integral $$\iint_S(\nabla \times \vec f) \cdot \vec n\,\mathrm dS$$ is $n\pi$ where $n$ is an integer. What is the value of $n$?
what i know:
I know you need to use stokes theorem when calculating this. I have calculated the curl of the vector field as $(xz, -yz, -2)$. I dont know where to go from this, any help would be appreciated.
If you want to use Stokes' theorem, then there's no need to actually compute the curl of $\vec f$. The theorem lets you exchange integrating the curl of $\vec f$ over $S$ with the line integral of $\vec f$ over the boundary of $S$, which is the ellipse/circle $x^2+y^2=1$ in the plane $z=0$.
So you have
$$\begin{align} \iint_S(\nabla\times\vec f)\cdot\vec n\,\mathrm dS&=\oint_{\partial S}\vec f\cdot\mathrm d\vec r\\[1ex] &=\oint_{x^2+y^2\le1}(y,-x,xyz)\cdot\mathrm d\vec r\\[1ex] &=\int_0^{2\pi}(\sin t,-\cos t,0)\cdot(-\sin t,\cos t,0)\,\mathrm dt\\[1ex] &=-\int_0^{2\pi}\mathrm dt \end{align}$$
where we convert to polar coordinates $(x,y,z)=(\cos t,\sin t,0)$ in the third line. Determining the value of $n$ from this point is trivial.