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 = 339z2 9z2 9z2 y2 9z2 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ρdθdϕ.

Therefore, the mass of the star is

0302π0π(1 ρ2)ρ2 sin ϕdϕdθdρ =0302π (10 ρ2)ρ2( cos ϕ) ϕ=0ϕ=πdθdρ =0302π(10 ρ2)ρ22dθdρ =034π(10 ρ2)ρ2dρ = 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 rx θx w y r y θ y w z r z θ z 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 = x2 + y2 and plane z = 1.

Volume is

111x2 1x2 x2 +y21dzdydz

Easier to compute in cylindrical coordinates.

Cone is

0 θ 2π,0 r 1 r z 1

Volume of cone is

0102πr1rdzdθdr =0102π(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 = 121212x2 12x2 x2 +y2 1x2 y2 dzdydx

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 = x2 + y2, ϕ = π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

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