(a) Expressing the left hand side as an iterated integral,
with z z z as the innermost integration variable, we have
∭ V ∂ f ∂ z ( x , y , z ) d x d y d z = ∫ 0 1 d x ∫ 0 1 d y [ ∫ 0 1 d z ∂ f ∂ z ( x , y , z ) ] = ∫ 0 1 d x ∫ 0 1 d y [ f ( x , y , 1 ) − f ( x , y , 0 ) ] by the fundamental theorem of calculus = ∬ R [ f ( x , y , 1 ) − f ( x , y , 0 ) ] d x d y = ∬ R f ( x , y , 1 ) d x d y − ∬ R f ( x , y , 0 ) d x d y \begin{aligned}
\iiint _V\frac{\partial f}{\partial z}(x,y,z)\ \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z
&=\int_0^1\mathrm{d}x\int_0^1\mathrm{d}y\left[\int_0^1\mathrm{d}z\
\frac{\partial f}{\partial z}(x,y,z)\right] \\
&=\int_0^1\mathrm{d}x\int_0^1\mathrm{d}y\ \big[f(x,y,1)-f(x,y,0)\big] \\
&\text{by the fundamental theorem of calculus} \\
&=\iint _R\big[f(x,y,1)-f(x,y,0)\big]\ \mathrm{d}x\,\mathrm{d}y \\
&=\iint _R f(x,y,1)\ \mathrm{d}x\,\mathrm{d}y
- \iint _R f(x,y,0)\ \mathrm{d}x\,\mathrm{d}y
\end{aligned} ∭ V ∂ z ∂ f ( x , y , z ) d x d y d z = ∫ 0 1 d x ∫ 0 1 d y [ ∫ 0 1 d z ∂ z ∂ f ( x , y , z ) ] = ∫ 0 1 d x ∫ 0 1 d y [ f ( x , y , 1 ) − f ( x , y , 0 ) ] by the fundamental theorem of calculus = ∬ R [ f ( x , y , 1 ) − f ( x , y , 0 ) ] d x d y = ∬ R f ( x , y , 1 ) d x d y − ∬ R f ( x , y , 0 ) d x d y
(b) Define the vector field F ( x , y , z ) = f ( x , y , z ) k ^ \mathbf{F}(x,y,z) = f(x,y,z)\,\hat{\mathbf{k}} F ( x , y , z ) = f ( x , y , z ) k ^ . Then the divergence
of F \mathbf{F} F is ∇ ⋅ F ( x , y , z ) = ∂ f ∂ z ( x , y , z ) { \boldsymbol{\nabla} }\cdot\mathbf{F}(x,y,z) = \frac{\partial f}{\partial z}(x,y,z) ∇ ⋅ F ( x , y , z ) = ∂ z ∂ f ( x , y , z ) .
The boundary of the cube V V V is the union of six faces
S 1 = { ( x , y , z ) ∣ 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1 , z = 1 } with outward normal n ^ = k ^ S 2 = { ( x , y , z ) ∣ 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1 , z = 0 } with outward normal n ^ = − k ^ S 3 = { ( x , y , z ) ∣ 0 ≤ x ≤ 1 , 0 ≤ z ≤ 1 , y = 1 } with outward normal n ^ = ȷ ^ S 4 = { ( x , y , z ) ∣ 0 ≤ x ≤ 1 , 0 ≤ z ≤ 1 , y = 0 } with outward normal n ^ = − ȷ ^ S 5 = { ( x , y , z ) ∣ 0 ≤ y ≤ 1 , 0 ≤ z ≤ 1 , x = 1 } with outward normal n ^ = ı ^ S 6 = { ( x , y , z ) ∣ 0 ≤ y ≤ 1 , 0 ≤ z ≤ 1 , x = 0 } with outward normal n ^ = − ı ^ \begin{aligned}
S_1&=\big\{ \ (x,y,z)\ \big|\ 0\le x\le 1,\ 0\le y\le 1,\ z=1\ \big\}\quad
\text{with outward normal $\hat{\mathbf{n}}=\hat{\mathbf{k}}$} \\
S_2&=\big\{ \ (x,y,z)\ \big|\ 0\le x\le 1,\ 0\le y\le 1,\ z=0\ \big\}\quad
\text{with outward normal $\hat{\mathbf{n}}=-\hat{\mathbf{k}}$} \\
S_3&=\big\{ \ (x,y,z)\ \big|\ 0\le x\le 1,\ 0\le z\le 1,\ y=1\ \big\}\quad
\text{with outward normal $\hat{\mathbf{n}}=\hat{\boldsymbol{\jmath}}$} \\
S_4&=\big\{ \ (x,y,z)\ \big|\ 0\le x\le 1,\ 0\le z\le 1,\ y=0\ \big\}\quad
\text{with outward normal $\hat{\mathbf{n}}=-\hat{\boldsymbol{\jmath}}$} \\
S_5&=\big\{ \ (x,y,z)\ \big|\ 0\le y\le 1,\ 0\le z\le 1,\ x=1\ \big\}\quad
\text{with outward normal $\hat{\mathbf{n}}=\hat{\boldsymbol{\imath}}$} \\
S_6&=\big\{ \ (x,y,z)\ \big|\ 0\le y\le 1,\ 0\le z\le 1,\ x=0\ \big\}\quad
\text{with outward normal $\hat{\mathbf{n}}=-\hat{\boldsymbol{\imath}}$}
\end{aligned} S 1 S 2 S 3 S 4 S 5 S 6 = { ( x , y , z ) 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1 , z = 1 } with outward normal n ^ = k ^ = { ( x , y , z ) 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1 , z = 0 } with outward normal n ^ = − k ^ = { ( x , y , z ) 0 ≤ x ≤ 1 , 0 ≤ z ≤ 1 , y = 1 } with outward normal n ^ = ^ = { ( x , y , z ) 0 ≤ x ≤ 1 , 0 ≤ z ≤ 1 , y = 0 } with outward normal n ^ = − ^ = { ( x , y , z ) 0 ≤ y ≤ 1 , 0 ≤ z ≤ 1 , x = 1 } with outward normal n ^ = ^ = { ( x , y , z ) 0 ≤ y ≤ 1 , 0 ≤ z ≤ 1 , x = 0 } with outward normal n ^ = − ^
Observe that
F ⋅ n ^ = f k ^ ⋅ n ^ = { + f on S 1 − f on S 2 0 on S 3 , S 4 , S 5 , S 6 \begin{aligned}
\mathbf{F}\cdot\hat{\mathbf{n}} = f\,\hat{\mathbf{k}}\cdot\hat{\mathbf{n}} = \begin{cases} +f &\text{on $S_1$} \\
-f &\text{on $S_2$} \\
0 &\text{on $S_3$, $S_4$, $S_5$, $S_6$}
\end{cases}
\end{aligned} F ⋅ n ^ = f k ^ ⋅ n ^ = ⎩ ⎨ ⎧ + f − f 0 on S 1 on S 2 on S 3 , S 4 , S 5 , S 6
So the divergence theorem gives
∭ V ∂ f ∂ z ( x , y , z ) d x d y d z = ∭ V ∇ ⋅ F ( x , y , z ) d x d y d z = ∬ ∂ V F ⋅ n ^ d S = ∑ j = 1 6 ∬ S j F ⋅ n ^ d S = ∬ S 1 f d S − ∬ S 2 f d S = ∬ R f ( x , y , 1 ) d x d y − ∬ R f ( x , y , 0 ) d x d y \begin{aligned}
\iiint _V\frac{\partial f}{\partial z}(x,y,z)\ \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z
&=\iiint _V { \boldsymbol{\nabla} }\cdot\mathbf{F}(x,y,z)\ \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z \\
&= \iint _{\partial V} \mathbf{F}\cdot\hat{\mathbf{n}}\ \mathrm{d}S
=\sum_{j=1}^6 \iint _{S_j} \mathbf{F}\cdot\hat{\mathbf{n}}\ \mathrm{d}S\\
&=\iint _{S_1} f\ \mathrm{d}S
-\iint _{S_2} f\ \mathrm{d}S \\
&=\iint _R f(x,y,1)\ \mathrm{d}x\,\mathrm{d}y
- \iint _R f(x,y,0)\ \mathrm{d}x\,\mathrm{d}y
\end{aligned} ∭ V ∂ z ∂ f ( x , y , z ) d x d y d z = ∭ V ∇ ⋅ F ( x , y , z ) d x d y d z = ∬ ∂ V F ⋅ n ^ d S = j = 1 ∑ 6 ∬ S j F ⋅ n ^ d S = ∬ S 1 f d S − ∬ S 2 f d S = ∬ R f ( x , y , 1 ) d x d y − ∬ R f ( x , y , 0 ) d x d y