I'm not sure on how to compute this integral using Gauss's divergence theorem. Can someone please explain.
$\iint_S \vec{F} \cdot \vec{n}\quad dS$
$\vec{n}$ is outward normal and S is exterior surface of the cylinder $x^2 + y^2 ≤ 1, 0 ≤ z ≤ 1 \quad$ and $\quad \vec{F} (x, y, z) = (x^2y, z − xy^2, z^2)$
The theorem you wrote is incorrect. it should be $$\iiint_V\nabla .\vec{F}dV=\iint_S\vec{F}.\hat ndS$$ where i suggest you evaluate the lhs so you do not need to calculate $\hat n$