Triple integral change of variables examples

Spherical coordinates example

PIC

For spherical coordinates, the change of variables function is

(x,y,z) = T(ρ,θ)
where the components of T are given by
x = ρ sin ϕ cos θ
y = ρ sin ϕ sin θ
z = ρ cos ϕ.
We can compute that
∂-(x,y,z)
∂ (ρ,θ,ϕ) = |              |
|| ∂x-  ∂x- ∂x- ||
| ∂ρ   ∂θ  ∂ ϕ |
|| ∂y   ∂y   ∂y ||
|| ---  --- --- ||
| ∂ρ   ∂θ  ∂ ϕ |
|| ∂z-  ∂z- -∂z ||
|| ∂ρ   ∂θ  ∂ ϕ ||
|              |
= |                                      |
||sinϕ cos θ  - ρ sin ϕ cosθ ρ cosϕ cosθ ||
||sin ϕsinθ   ρ sin ϕ cosθ   ρ cosϕ sin θ ||
|   cosϕ          0          - ρsinϕ   |
= -ρ2 sin ϕ.

The change of variable factor is the absolute value of the determinant

|         |
||∂(x,-y,z)||
|∂(ρ, θ,ϕ)| = ρ2 sin ϕ.
This means that the map from spherical coordinates to rectangular coordinates changes volume by the factor ρ2 sin ϕ. For this reason, you need to do the above calculation only once. Now, you can just remember that the factor for spherical coordinates is ρ2 sin ϕ.

Now we’re ready for the example: find the mass of a star that is a ball of radius 3 centered at the origin if the density of the star is g(x,y,z) = 10 - x2 - y2 - z2.

If we try to compute the integral directly in rectangular coordinates, it isn’t so easy:

∫∫ ∫Sg(x,y,z)dxdydz
=       √----   √ -------
∫ 3∫   9-z2∫    9- z2- y2
      √----   √ -------
 -3  - 9-z2  -  9-z2-y2 (10 - x2 - y2 - z2)dxdydz
A mess.

We can find the mass of the star more easily in spherical coordinates.

The star density g(x,y,z) = 10 - x2 - y2 - z2 becomes g(T(ρ,θ)) = 10 - ρ2.

In spherical coordinates, the integral over ball of radius 3 is the integral over the region

0 ρ 3, 0 θ 2π, 0 ϕ π
The volume element is ρ2 sin ϕdθ.

Therefore, the mass of the star is

03 02π 0π(1 - ρ2)ρ2 sin ϕdθ
= 03 02π       2  2        ||ϕ=π
(10 - ρ )ρ (- cosϕ )ϕ=0 dθ
= 03 02π(10 - ρ2)ρ22dθ
= 034π(10 - ρ2)ρ2= 828π-
  5 520

Cylinderical coordinates example

PIC

For cylindrical coordinates, the change of variables function is

(x,y,z) = T(r,θ,w)
where the components of T are given by
x = r cos θ
y = r sin θ
z = w.
We can compute that
∂-(x,y,z)
∂ (ρ,θ,ϕ) = |               |
|| ∂x- ∂x-  -∂x  ||
|| ∂r   ∂θ  ∂w   ||
| ∂y   ∂y   ∂y  |
|| ---  --- ---  ||
|| ∂r   ∂θ  ∂w   ||
| ∂z-  ∂z- -∂z  |
|| ∂r   ∂θ  ∂w   ||
|               |
= ||                  ||
|cos θ  - r sin θ 0 |
||sin θ  r cosθ   0 ||
|  0       0     1 |
= r cos 2θ + r sin 2θ = r
Volume changes by |r| = r (just like area change for polar coordinates). Replace dxdydz by rdrdθdw.

Example: Find the volume of cone of height 1 and radius one. Bounded by surface z = ∘  -2----2-
   x +  y and plane z = 1.

Volume is

∫   ∫ √ ----∫
  1     1- x2  1
       √---- √ -----dzdydz
 - 1 -  1-x2   x2+y2

Easier to compute in cylindrical coordinates.

Cone is

0 θ 2π, 0 r 1
r z 1

Volume of cone is

01 02π r1rdzdθdr
= 01 02π(1 - r)rdθdr
= 012π(1 - r)rdr = π-
3

Ice cream cone revisited

Armed with the knowledge of how to change to spherical coordinates, we can now revisit the ice cream cone example.

Earlier we tried to find the volume of an ice cream cone

PIC

and discovered volume was

∫∫ ∫W dV = ∫ 1∕√2 ∫ √1-∕2--x2∫ √1--x2-y2
                            dzdydx
 - 1∕√2  -√1-∕2-x2 √x2+y2-

We need to describe the bounds in terms of spherical coordinates. Since the cone is symmetrical around the z axis, θ is easy. 0 θ 2π in the cone and the ranges of the other variables don’t depend on θ. Also, we see that 0 r 1, since a given line from the origin extends until it hits the sphere z = ∘  -----------
   1 - x2 - y2, which is a sphere of radius 1. Lastly, ϕ is determined by requiring that we are in the cone z ∘ --------
  x2 + y2. (To see this is exactly a condition on ϕ, look at the reading on spherical coordinates.) On the cone, z = ∘  -2----2-
   x +  y, ϕ = π4. Consquently, the condition on ϕ is 0 ϕ π4.

In summary, the ice cream cone is described by

0 θ 2π, 0 r 1, 0 ϕ π4

Changing to spherical coordinates, we calculate that the volume of the ice cream cone is

01 02π 0π4ρ2 sin ϕdϕdθ = 01 02π[cos(0) - cos(π4)]ρ2dθ
= 01 02π2 - √2--
-------
   2ρ2dθ
= 01π(2 -√ --
  2)ρ2
= π    √ --
2-----2
   3