In our computation of the double integral, we considered only regions in the plan such that the "top" and "bottom" of the boundary could be described as functions of ''x''. We then pointed out that all regions could be broken up into such shapes, and we could just perform each evaluation separately. It should come as no surprise, then, that we consider 3D regions where the "top" and "bottom" of the surface enclosing the region can be described with functions of the form <math>z=g(x,y)</math>; in other words, every line which is parallel to the ''z''-axis and intersects our region ''R'' only intersects its surface boundary in at most two points.
+
+
Suppose ''R'' is such a region in space. Now, suppose that the "top" of the boundary is described by <math>z=g_1(x,y)</math>, and the "bottom", by <math>z=g_2(x,y)</math>. This is where it will get a bit tricky: for a given value of ''x'', let <math>h_1(x)</math> be the greatest value of ''y'' such that ''(x,y,z)'' is in ''R'' for any z, and <math>h_2(x)</math>, the least value of ''y''. Finally, let the minimum ''x'' value for a point in ''R'' be ''a'', and the maximum, ''b''.