Multivariable Calculus Chapter 7 of 9

Chapter 7: Triple Integrals and Change of Variables

Triple integrals in rectangular, cylindrical and spherical coordinates, and the Jacobian.

All chapters
On this page
7.1

Triple integrals

Imagine a solid object sitting somewhere in three dimensional space. We want to measure its total mass, or just its volume, when the density varies from point to point. We can picture this by slicing the solid into a giant grid of tiny rectangular boxes, much like a microscopic brick wall filling out the shape. For each tiny box, we multiply its volume by the density at some point inside it, and then we add up all these little pieces. As we make the grid finer and finer, the sum turns into a continuous accumulation, which we write as a triple integral.

Definition: Triple Integral

Let \(W\) be a bounded solid region in three dimensional space, and let \(f(x,y,z)\) be a function defined on \(W\). The triple integral of \(f\) over \(W\) is the limit of Riemann sums formed by partitioning a rectangular box containing \(W\) into tiny subboxes of volume \(\Delta V_i = \Delta x_i \Delta y_i \Delta z_i\), summing \(f(x_i, y_i, z_i) \Delta V_i\) over all subboxes inside \(W\), as the mesh size approaches zero. This is denoted by \[ \iint\int_W f(x,y,z) \, dV \] Provided the boundary of \(W\) is reasonably smooth and \(f\) is continuous on \(W\), this limit always exists.

When the region is a simple rectangular box where \(x\) runs from \(a\) to \(b\), \(y\) runs from \(c\) to \(d\), and \(z\) runs from \(r\) to \(s\), evaluating the triple integral simply means running three nested single variable integrals. For more general solids, the limits of integration for the inner variables will depend on the outer variables.

Example 7.1: Box Integral

Evaluate \(\int_0^1 \int_0^x \int_0^{x+y} 1\,dz\,dy\,dx\).

Solution.

First, integrate with respect to \(z\) from \(0\) to \(x+y\), treating \(x\) and \(y\) as constants.

The inner integral evaluates to \((x+y) - 0 = x+y\).

Next, integrate this result with respect to \(y\) from \(0\) to \(x\).

The middle integral is \(\int_0^x (x+y) \,dy = \left[ xy + \frac{1}{2}y^2 \right]_{y=0}^{y=x} = x^2 + \frac{1}{2}x^2 = \frac{3}{2}x^2\).

Finally, integrate this with respect to \(x\) from \(0\) to \(1\).

The outer integral is \(\int_0^1 \frac{3}{2}x^2 \,dx = \left[ \frac{1}{2}x^3 \right]_0^1 = \frac{1}{2}\).

7.2

Setting up the limits

To compute a triple integral over a general solid, you need to figure out where the walls are. A very reliable way to do this is to look straight down the \(z\) axis onto the \(xy\) plane, much like casting a shadow of the solid onto the floor. This shadow is a two dimensional region that gives you the outer two limits of integration.

Key formula: Shadow Method

To set up the limits for a solid \(W\), imagine standing above the \(xy\) plane and looking down at the shadow cast by the solid. The boundaries of this shadow provide the integration limits for the outer two variables, say \(x\) and \(y\). For any fixed point \((x,y)\) inside that shadow, imagine a vertical line shooting straight up through the solid. The bottom of the solid hits this line at some surface \(z = g_1(x,y)\), and the top exits at \(z = g_2(x,y)\). These functions become the lower and upper limits for the innermost integration variable \(z\).

If the solid is shaped in such a way that projecting onto the \(xy\) plane is messy, you can always change perspectives. You can cast a shadow onto the \(xz\) plane or the \(yz\) plane instead, and integrate with respect to the remaining variable first. The geometry of the solid dictates which projection makes the boundary equations easiest to describe.

7.3

Cylindrical coordinates

Some solids are built around a central vertical axis, like cylinders, cones, or bowls. In these cases, rectangular coordinates can force you to use clumsy square roots and trigonometric substitutions. It is much more natural to describe a point by looking at its position on the flat floor using polar coordinates, and then simply stating how high up it is.

Definition: Cylindrical Coordinates

Cylindrical coordinates \((r, \theta, z)\) relate to rectangular coordinates \((x,y,z)\) through the standard polar transformations \(x = r \cos\theta\) and \(y = r \sin\theta\), while the vertical coordinate \(z\) remains unchanged. The radial distance \(r\) is non-negative, and the angle \(\theta\) runs from \(0\) to \(2\pi\). The infinitesimal volume element in these coordinates stretches out, yielding \[ dV = r \, dz \, dr \, d\theta \]

The extra factor of \(r\) in the volume element comes from the expanding geometry of polar coordinates, where a small wedge gets wider as you move further out from the origin. Whenever you translate a triple integral into cylindrical coordinates, you must remember to multiply your integrand by \(r\) before integrating.

7.4

Spherical coordinates

When a solid has spherical symmetry, like a ball, a dome, or a region carved out by spheres, cylindrical coordinates are still not quite enough. Instead of measuring height from a floor, we measure distance directly from the center point, along with two angles.

Definition: Spherical Coordinates

Spherical coordinates \((\rho, \theta, \phi)\) locate a point in space using three measurements. The radial distance \(\rho\) is the straight line distance from the origin to the point, where \(\rho \ge 0\). The azimuth angle \(\theta\) is the same angle used in polar coordinates, spinning around the \(z\) axis from \(0\) to \(2\pi\). The polar angle \(\phi\) is measured downward from the positive \(z\) axis, running from \(0\) to \(\pi\). The coordinate conversions are \(x = \rho \sin\phi \cos\theta\), \(y = \rho \sin\phi \sin\theta\), and \(z = \rho \cos\phi\). The infinitesimal volume element is \[ dV = \rho^2 \sin\phi \, d\rho \, d\phi \, d\theta \]

Example 7.2: Sphere Volume

Find the volume of a ball of radius \(a\) using spherical coordinates.

Solution.

The volume is given by the triple integral of \(1\) over the region defined by \(0 \le \rho \le a\), \(0 \le \phi \le \pi\), and \(0 \le \theta \le 2\pi\).

Set up the integral as \(\int_0^{2\pi} \int_0^\pi \int_0^a \rho^2 \sin\phi \,d\rho \,d\phi \,d\theta\).

Integrate with respect to \(\rho\): \(\int_0^a \rho^2 \,d\rho = \left[ \frac{1}{3}\rho^3 \right]_0^a = \frac{1}{3}a^3\).

Substitute this back and integrate with respect to \(\phi\): \(\int_0^\pi \frac{1}{3}a^3 \sin\phi \,d\phi = \frac{1}{3}a^3 [-\cos\phi]_0^\pi = \frac{1}{3}a^3 (1 - (-1)) = \frac{2}{3}a^3\).

Finally, integrate with respect to \(\theta\): \(\int_0^{2\pi} \frac{2}{3}a^3 \,d\theta = \frac{2}{3}a^3 (2\pi) = \frac{4}{3}\pi a^3\).

7.5

Change of variables

Sometimes a region is tilted, stretched, or skewed in a way that makes all standard coordinate systems useless. In these situations, we invent a custom coordinate transformation tailored specifically to the shape of the solid. We want to map a simple region in a new set of variables, say \(u\) and \(v\) and \(w\), to our complicated region in \(x\), \(y\), and \(z\).

Theorem: Change of Variables Theorem

Let \(T\) be a one-to-one transformation mapping a region \(S\) in \(uvw\) space to a region \(W\) in \(xyz\) space, given by \(x = g(u,v,w)\), \(y = h(u,v,w)\), and \(z = k(u,v,w)\). Suppose these functions have continuous first order partial derivatives, and that their Jacobian determinant is nonzero inside \(S\). The Jacobian determinant of the transformation is defined as the determinant \[ J = \frac{\partial(x,y,z)}{\partial(u,v,w)} = \begin{vmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} & \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} & \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial u} & \frac{\partial z}{\partial v} & \frac{\partial z}{\partial w} \end{vmatrix} \] If \(f(x,y,z)\) is integrable on \(W\), then the triple integral changes according to the formula \[ \iint\int_W f(x,y,z) \, dx \, dy \, dz = \iint\int_S f(g(u,v,w), h(u,v,w), k(u,v,w)) \, |J| \, du \, dv \, dw \] where \(|J|\) is the absolute value of the Jacobian determinant.

Watch out: Absolute Value

Never forget the absolute value bars around the Jacobian determinant. A negative determinant merely indicates an orientation reversal, but a volume element must always be positive. Dropping the absolute value will lead to negative or incorrect answers.

Example 7.3: Ellipse Area

Find the area of the ellipse \(x^2/4 + y^2/9 \le 1\) using \(x = 2u\), \(y = 3v\).

Solution.

The area is given by the double integral \(\iint_W 1 \,dx\,dy\) over the elliptical region \(W\).

Substitute the transformation into the ellipse inequality: \((2u)^2/4 + (3v)^2/9 = u^2 + v^2 \le 1\), which defines a unit disk \(S\) in the \(uv\) plane.

Compute the partial derivatives to find the Jacobian matrix: \(\frac{\partial x}{\partial u} = 2\), \(\frac{\partial x}{\partial v} = 0\), \(\frac{\partial y}{\partial u} = 0\), and \(\frac{\partial y}{\partial v} = 3\).

Calculate the Jacobian determinant \(J = \begin{vmatrix} 2 & 0 \\ 0 & 3 \end{vmatrix} = (2)(3) - (0)(0) = 6\).

Apply the change of variables formula, using the absolute value \(|J| = 6\).

The integral becomes \(\iint_S 6 \,du\,dv\), integrated over the unit disk where \(u^2 + v^2 \le 1\).

Since the area of a unit disk is \(\pi\), the resulting value is \(6 \times \pi = 6\pi\).

7.6

Practice

Practice 1: try it first

Evaluate \(\iiint_B (x + z)\,dV\) over the unit cube.

Show the answer

\(1\)

Practice 2: try it first

Find the volume of the solid inside \(x^2 + y^2 = 1\) between \(z = 0\) and \(z = 2 - x\).

Show the answer

\(2\pi\)

Practice 3: try it first

Find the Jacobian of \(x = u^2 - v^2\), \(y = 2uv\).

Show the answer

\(4(u^2 + v^2)\)

Want a hint instead of an answer? Practise this chapter with the tutor.