A vector field is given by \displaystyle\mathbf{v}=x^{2}\mathbf{i}+{\frac{1}{2}}y^{2}\mathbf{j}+{\frac{1}{2}}z^{2}\mathbf{k}.
(a) Find div v.
(b) Evaluate \textstyle{\int_{V}} div v dV where V is the unit cube 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1.
(a) div v = 2x + y + z.
(b) We seek \int_{V}(2x+y+z)\,\mathrm{d}V where V is the given unit cube. The small element of volume dV is equal to dz dy dx. With appropriate limits of integration the integral becomes
This is a triple integral of the kind evaluated in Section 27.6.2:
\int_{x=0}^{x=1}\int_{y=0}^{y=1}\int_{z=0}^{z=1}(2x+y+z)\,\mathrm{d}z\,\mathrm{d}y\,\mathrm{d}x=\int_{x=0}^{x=1}\int_{y=0}^{y=1}\left[2x z+y z+{\frac{z^{2}}{2}}\right]_{0}^{1}\mathrm{d}y\,\mathrm{d}x\\ =\int_{x=0}^{x=1}\int_{y=0}^{y=1}\left(2x+y+{\frac{1}{2}}\right)\mathrm{d}y\,\mathrm{d}x\\ =\int_{x=0}^{x=1}\left[2x y+{\frac{y^{2}}{2}}+{\frac{y}{2}}\right]_{0}^{1}\mathrm{d}x\\ =\int_{x=0}^{x=1}{2x+1dx} \\ =[x^{2} + x ]^{1}_{0}= 2