Given a smooth (i.e. $C^1$ continuous) closed parametric surface $(x,y,z) = S(u,v)$, how do I compute the volume $\mathcal{V}$ bounded by it?
After browsing through a couple of books, I'm sure it is related to the divergence theorem (Gauss theorem), or perhaps Fubini's theorem. But I couldn't a proper proof for the following steps:
$$\mathcal{V} = \iiint_V \, dV = \iiint_V \, dx \, dy \, dz = \iiint_V \, dz \, dx \, dy = \iiint_V \frac{\partial}{\partial z} \left( z \right) \, dz \, dx \, dy = \iint_A \left( \int \frac{\partial}{\partial z} \left( z \right) \, dz \right) \, dx \, dy = \iint_A z \, dx \, dy.$$
In addition, I stumbled upon the expression
$$\iint_S z \, \cos(\gamma) \, dS = \iint_A z \, dx \,dy,$$
where $\cos(\gamma)$ — referred to as a direction cosine — is the $z$-component of the normal vector $n$ to the surface $S$. I don't quite understand why the left- and right-hand side are equivalent?
Anyway, provided that the above expressions are correct, the last step would be to rewrite
$$\iint_A z \, dx \, dy = \iint_\Omega z \left( \frac{\partial x}{\partial u}\frac{\partial y}{\partial v} - \frac{\partial y}{\partial u}\frac{\partial x}{ \partial v} \right) \, du \, dv,$$
which I can compute.