Gauss Theorem example Verify the Gauss theorem for the vector field $F(x)=\frac{x }{\|x\|},$ where $x \in W \subset \mathbb{R}^3$ and $$W=\left\{(x,y,z) \in \mathbb{R}^3 \left/ a^2\right.\leqslant x^2 + y^2 + z^2 \leqslant b^2\right\}$$ 
Thanks you very much!
 A: Gauss's Theorem states $$ \iiint_{\Omega} (\nabla \cdot \overrightarrow{F}) \space dV = \iint_{\partial \Omega} (\overrightarrow{F} \cdot \hat n) \space dS. $$
Verifying the theorem for the given function is just a matter of calculating the LHS integral and the RHS integral and checking that LHS = RHS. 
$$\begin{align} \nabla \cdot \overrightarrow{F} &= \nabla \cdot (\frac{\overrightarrow{x}}{\|x\|})  \\& = \frac{1}{\|x\|} (\nabla \cdot \overrightarrow{x}) + \overrightarrow{x} \cdot(\nabla \frac{1}{\|x\|})  \\&= \frac{3}{\|x\|} + \overrightarrow{x} \cdot (\frac{-\overrightarrow{x}}{{\|x\|}^3}) \\&= \frac{2}{\|x\|}  \end{align}$$
$$\begin{align} \iiint_{W} (\nabla \cdot \overrightarrow{F}) \space dV &= \iiint_{W} \frac{2}{\|x\|} \space dV  \\&= \int_0^{2 \pi} \int_0^{\pi} \int_a^b (\frac{2}{r})(r^2 \sin{\theta} \space dr d\theta d\phi) \\&= \int_0^{2 \pi} \int_0^{\pi} \int_a^b 2r \sin{\theta} \space dr d\theta d\phi \\&= (2\pi)( 2)(b^2 - a^2) \\&=4\pi(b^2 -a^2)   \end{align}$$
The surface integral is much less tedious since the unit normal vector to the surface of integration is $\hat n = \frac{\overrightarrow{x}}{\|x\|} = \overrightarrow{F}$ on the outer spherical surface and $\hat n = -\frac{\overrightarrow{x}}{\|x\|} = -\overrightarrow{F}$ on the inner surface. The integral is seen to reduce to just the difference of surface areas of the outer and inner spheres. Thus,
$$ \iint_{\partial W} (\overrightarrow{F} \cdot \hat n) \space dS = \iint_{\partial W}dS = 4\pi b^2 - 4\pi a^2 = 4\pi (b^2 - a^2).$$ 
A: I made it in spherical coordinates I use (r,v,u) for calculus:
$\ \int _a^b\int _0^{2\text{Pi}}\int _0^{\text{Pi}}(2)r*\text{Sin}[u]dudvdr$
$\ 4 \left(-a^2+b^2\right) \pi $
And then:
$\ \int _0^{\text{Pi}}\int _0^{2\text{Pi}}(\text{Sin}[u]*\text{Cos}[v]*\text{Sin}[u]*\text{Cos}[v]*b{}^{\wedge}2*\text{Sin}[u] +\text{Sin}[u]\text{Sin}[v]* \text{Sin}[u]\text{Sin}[v]*b{}^{\wedge}2*\text{Sin}[u]+\text{Cos}[u]\text{Cos}[u]*b{}^{\wedge}2*\text{Sin}[u])dvdu$
$\ = 4 b^2 \pi $
$\ \int _0^{\text{Pi}}\int _0^{2\text{Pi}}(-\text{Sin}[u]*\text{Cos}[v]*\text{Sin}[u]*\text{Cos}[v]*a{}^{\wedge}2*\text{Sin}[u] -\text{Sin}[u]\text{Sin}[v]* \text{Sin}[u]\text{Sin}[v]*a{}^{\wedge}2*\text{Sin}[u]-\text{Cos}[u]\text{Cos}[u]*a{}^{\wedge}2*\text{Sin}[u])dvdu $
$\ = -4 a^2 \pi $
Then:
$\ = 4 b^2 \pi -4 a^2 \pi $
Thanks to Davi and Michael
