Changing variables in triple integrals works exactly the same way as for double integrals. Cylindrical and spherical coordinate substitutions are special cases of this general method.
Suppose [latex]G[/latex] is a region in [latex]uvw[/latex]-space that maps to region [latex]D[/latex] in [latex]xyz[/latex]-space (Figure 6) by a one-to-one [latex]C^1[/latex] transformation [latex]T(u,v,w) = (x,y,z)[/latex] where:
[latex]x = g(u,v,w)[/latex]
[latex]y = h(u,v,w)[/latex]
[latex]z = k(u,v,w)[/latex]
Figure 6. A region [latex]G[/latex] in [latex]uvw[/latex]-space mapped to a region [latex]D[/latex] in [latex]xyz[/latex]-space.
Any function [latex]F(x,y,z)[/latex] defined on [latex]D[/latex] can be expressed as a function [latex]H(u,v,w)[/latex] defined on [latex]G[/latex]:
This determinant measures how the transformation scales volumes.
The Jacobian is commonly denoted simply as [latex]\dfrac{\partial(x,y,z)}{\partial(u,v,w)}[/latex].
Just as with two variables, you can arrange the [latex]3 \times 3[/latex] determinant in two equivalent ways:
By output variables: Rows for [latex]x[/latex], [latex]y[/latex], [latex]z[/latex] derivatives
By input variables: Columns for [latex]u[/latex], [latex]v[/latex], [latex]w[/latex] derivatives
Both give the same result when you compute the determinant.
With the transformation and Jacobian defined, we can state the theorem for changing variables in triple integrals.
change of variables for triple integrals
Let [latex]T(u,v,w) = (x,y,z)[/latex] where [latex]x = g(u,v,w)[/latex], [latex]y = h(u,v,w)[/latex], and [latex]z = k(u,v,w)[/latex] be a one-to-one [latex]C^1[/latex] transformation with a nonzero Jacobian that maps region [latex]G[/latex] in [latex]uvw[/latex]-space into region [latex]D[/latex] in [latex]xyz[/latex]-space. If [latex]F[/latex] is continuous on [latex]D[/latex], then:
[latex]\hspace{3cm}\begin{align} \underset{R}{\displaystyle\iiint}F(x,y,z)dV&=\underset{G}{\displaystyle\iiint}F(g(u,v,w), \ h(u,v,w), \ k(u,v,w))\Bigg|\frac{\partial(x,y,z)}{\partial(u,v,w)}\Bigg|du \ dv \ dw \\ &=\underset{G}{\displaystyle\iiint}H(u,v,w)|J(u,v,w)|du \ dv \ dw \end{align}[/latex].
In other words, when changing variables from [latex](x,y,z)[/latex] to [latex](u,v,w)[/latex]:
[latex]dV = dx \, dy \, dz = | \dfrac{\partial(x,y,z)}{\partial(u,v,w)} | du \, dv \, dw[/latex]
Cylindrical and Spherical Coordinates
The coordinate systems you’ve already used are special cases of this general theorem:
We’ll verify these formulas using the change of variables theorem.
Derive the formula in triple integrals for
cylindrical and
spherical coordinates.
For cylindrical coordinates, the transformation is [latex]T(r,\theta,z)=(x,y,z)[/latex] from the Cartesian [latex]r\theta{z}[/latex]–plane to the Cartesian [latex]xyz[/latex]-plane (Figure 7). Here [latex]x=r\cos\theta[/latex], [latex]y=r\sin\theta[/latex], and [latex]z=z[/latex]. The Jacobian for the transformation is
[latex]\hspace{1.5cm}\large{\begin{align}J(r,\theta,z)&=\frac{\partial(x,y,z)}{\partial(r,\theta,z)}=\begin{vmatrix}\frac{\partial{x}}{\partial{r}}&\frac{\partial{x}}{\partial{\theta}}&\frac{\partial{x}}{\partial{z}} \\ \frac{\partial{y}}{\partial{r}}&\frac{\partial{y}}{\partial{\theta}}&\frac{\partial{y}}{\partial{z}} \\ \frac{\partial{z}}{\partial{r}}&\frac{\partial{z}}{\partial{\theta}}&\frac{\partial{z}}{\partial{z}}\end{vmatrix} \\&=\begin{vmatrix}\cos\theta&-r\sin\theta&0 \\ \sin\theta&r\cos\theta&0 \\ 0&0&1\end{vmatrix}=r\cos^2\theta+r\sin^2\theta=r(\cos^2\theta+\sin^s\theta)=r \end{align}}[/latex]. We know that [latex]r\geq0[/latex], so [latex]|J(r,\theta,z)|=r[/latex]. Then the triple integral is
[latex]\large{\underset{D}{\displaystyle\iiint}f(x,y,z)dV=\underset{G}{\displaystyle\iiint}f(r\cos\theta,r\sin\theta,z)r \ dr \ d\theta \ dz}[/latex].
Figure 7. The transformation from rectangular coordinates to cylindrical coordinates can be treated as a change of variables from region [latex]G[/latex] in [latex]r\theta{z}[/latex]-space to region [latex]D[/latex] in [latex]xyz[/latex]-space.
For spherical coordinates, the transformation is [latex]T(\rho,\theta,\varphi)=(x,y,z)[/latex] from the Cartesian [latex]p\theta\varphi[/latex]–plane to the Cartesian [latex]xyz[/latex]–plane (Figure 8). Here [latex]x=\rho\sin\varphi\cos\theta[/latex], [latex]y=\rho\sin\varphi\sin\theta[/latex], and [latex]z=\rho\cos\varphi[/latex]. The Jacobian for the transformation is
Expanding the determinant with respect to the third row:
[latex]\hspace{2cm}\begin{align} &=\cos\varphi\begin{vmatrix}-\rho\sin\varphi\sin\theta&\rho\cos\varphi\cos\theta \\ \rho\sin\varphi\sin\theta&\rho\cos\varphi\sin\theta\end{vmatrix}-\rho\sin\varphi\begin{vmatrix}\sin\varphi\cos\theta&-\rho\sin\varphi\sin\theta \\ \sin\varphi\sin\theta&\rho\sin\varphi\cos\theta\end{vmatrix} \\ &=\cos\varphi(-\rho^2\sin\varphi\cos\varphi\sin^2\theta-\rho^2\sin\varphi\cos\varphi\cos^2\theta)-\rho\sin\varphi(\rho\sin^2\varphi\cos^2\theta+\rho\sin^2\varphi\sin^2\theta) \\ &=-\rho^2\sin\varphi\cos^2\varphi(\sin^2\theta+\cos^2\theta)-\rho^2\sin\varphi\sin^2\varphi(\sin^2\theta+\cos^2\theta) \\ &=-\rho^2\sin\varphi\cos^2\varphi-\rho^2\sin\varphi\sin^2\varphi \\ &=-\rho^2\sin\varphi(\cos^2\varphi+\sin^2\varphi)=-\rho^2\sin\varphi\end{align}[/latex] Since [latex]0\leq\varphi\leq\pi[/latex], we must have [latex]\sin\varphi\geq0[/latex]. Thus [latex]|J(\rho,\theta,\varphi)|=|-\rho^2\sin\varphi|=\rho^2\sin\varphi[/latex].
Figure 8. The transformation from rectangular coordinates to cylindrical coordinates can be treated as a change of variables from region [latex]G[/latex] in [latex]\rho\theta\varphi[/latex]-space to region [latex]D[/latex] in [latex]xyz[/latex]-space.
[latex]\large{\displaystyle\int_0^3\displaystyle\int_0^4\displaystyle\int_{y/2}^{(y/2)+1}\left(x+\frac{z}3\right)dx \ dy \ dz}[/latex]
in [latex]xyz[/latex]-space by using the transformation
[latex]\large{u=(2x-y)/2, \ v=y/2,\text{ and }w=z/3}[/latex].
Then integrate over an appropriate region in [latex]uvw[/latex]-space
As before, some kind of sketch of the region [latex]G[/latex] in [latex]xyz[/latex]-space over which we have to perform the integration can help identify the region [latex]D[/latex] in [latex]uvw[/latex]-space (Figure 9). Clearly [latex]G[/latex] in [latex]xyz[/latex]-space is bounded by the planes [latex]x=y/2[/latex], [latex]x=(y/2)+1[/latex], [latex]y=0[/latex],[latex]y=4[/latex], [latex]z=0[/latex], and [latex]z=4[/latex]. We also know that we have to use [latex]u=(2x-y)/2[/latex], [latex]v=y/2[/latex] and [latex]w=z/3[/latex] for the transformations. We need to solve for [latex]x[/latex], [latex]y[/latex], and [latex]z[/latex]. Here we find that [latex]x=u+v[/latex], [latex]y=2v[/latex], and [latex]z=3w[/latex].
Using elementary algebra, we can find the corresponding surfaces for the region [latex]G[/latex] and the limits of integration in [latex]uvw[/latex]-space. It is convenient to list these equations in a table.
Equations in [latex]xyz[/latex] for the region [latex]D[/latex]
Corresponding equations in [latex]uvw[/latex] for the region [latex]G[/latex]
Limits for the integration in [latex]uvw[/latex]
[latex]x=y/2[/latex]
[latex]u+v=2v/2=v[/latex]
[latex]u=0[/latex]
[latex]x=y/2[/latex]
[latex]u+v=(2v/2)+1=v+1[/latex]
[latex]u=1[/latex]
[latex]y=0[/latex]
[latex]2v=0[/latex]
[latex]v=0[/latex]
[latex]y=4[/latex]
[latex]2v=4[/latex]
[latex]v=2[/latex]
[latex]z=0[/latex]
[latex]3w=0[/latex]
[latex]w=0[/latex]
[latex]z=3[/latex]
[latex]3w=3[/latex]
[latex]w=1[/latex]
Figure 9. The region [latex]G[/latex] in [latex]uvw[/latex]-space is transformed to region D in [latex]xyz[/latex]-space.
Now we can calculate the Jacobian for the transformation: