By now, defining this should be a simple matter for the student. Since for a function of three variables, the domain is three dimensional space, we'll be considering regions in space and dividing it into cubes, just as we divided two dimensional regions into squares before.
+
+
So we divide ''R'' into ''n'' cubic subregions <math>R_k, 1\leq k\leq n</math>, and in each region pick a point <math>(x_k,y_k,z_k)\in R_k</math>. Just like before, it may be that all the <math>R_k</math> might not cover all of our original region ''R''; but as the size of our cubes decreases, they approximate the region better and better - in the limit, they will cover the whole thing.
+
+
The Riemann sum for a function ''f'' is then simple enough to construct, using <math>V</math> to note the volume of one of our squares: <math>S= \sum_{k=1}^n f(x_k,y_k,z_k)V</math>. If we use <math>dV=dxdydz</math> to note we are differentiating with respect to volume, we can define our triple integral: