Verify the divergenece theorem to $$\mathbf{F }=4xi-2y^2j+z^2k$$ for the region bounded by $x^2+y^2=4$ , $z=0$, $z=3$
I've already done the triple integral for the divergence $\iiint_R \operatorname{div}\bar F\;dV$ and the result I got is $84\pi$, but I'm having trouble solving it by surface integrals. I've defined $S_1$ as $x^2+y^2-4$ and the normal vector I got was $(2,2,0)$ but as I continue, the answer I keep getting is $4\pi$
Can you guys help me out with this?
This region is a cylinder with radius $2$ around the $z$ axis, and so it can be parameterized as $r(\theta, z) = (2\cos \theta, 2 \sin \theta, z)$, where $\theta \in [0, 2\pi]$ and $z\in [0,3]$. Then $$r_\theta = (-2\sin \theta, 2\cos \theta, 0)$$ $$r_z = (0,0,1)$$ $$\vec{N} = r_\theta \times r_z = (2\cos \theta, 2\sin \theta, 0)$$ (note that $\vec N$ points outwards). Now you need to evaluate $$I_1 = \int_{0}^{ 2\pi}\int_{0}^3 \vec{F}(r(\theta, z))\cdot \vec{N}\, dz\, d\theta$$ Now you need to integrate over the top and bottom on the integral. Since $z$ is constant, these integrals are equivalent to $$I_2=-\iint_S F(x,y,0)\, dA$$ $$I_3=\iint_S F(x,y,3)\, dA$$ where $S\subseteq \mathbb R^2$ is the disc centered at the origin with radius $2$. The negative sign in $I_2$ is due to the fact that the normal vector points outwards, which is downward on that part of the surface. Then your final answer is $I_1+I_2+I_3$, which should be equal to what you got using the divergence theorem.