A solid unit ball has density , the squared distance from its center, so it is light near the center and densest at the surface. What is its total mass? In rectangular coordinates every inner bound of the triple integral is a square root, but the ball and the density both depend only on the distance from the center, which suggests coordinates built from that distance and two angles. This page sets up spherical coordinates, derives the volume of a small spherical cell from its three edge lengths, and finds the mass .
Key terms
Triple integral
Definition Let be a closed bounded solid whose boundary has zero volume, for example a solid bounded by finitely many smooth surfaces, and let be continuous on . Enclose in a box, set outside , cut the box into small boxes with volumes and pick a point in each. The triple integral of over is the limit of the Riemann sums
where is the largest diameter of the small boxes. Under these conditions the limit exists and does not depend on the choice of the points. When is described by bounds , and with continuous bounding functions, Fubini’s theorem lets the triple integral be computed as the iterated integral with those bounds. With it gives the volume of .
In plain words Cut the solid into tiny pieces, multiply the value of in each piece by the volume of the piece, and add. When is a density, each product is the mass of a piece, and the sum is the total mass.
Example The unit ball is described by
The innermost integral of gives the length of a vertical segment through the ball. The middle integral adds these lengths across the slice at a fixed , which is a disk of radius , and so it gives the area of that disk. Then
With the density in place of , the same bounds lead to a much longer calculation.
Spherical coordinates
Definition Spherical coordinates locate a point by its distance from the origin, its polar angle in and its azimuth in . The next card describes the two angles. The conversion is
and . Each point off the -axis has exactly one such triple, with and . On the -axis the azimuth can be anything, and at the origin both angles can be anything. This page writes for the distance from the origin. Many books call it and keep for the distance from the -axis.
In plain words The segment from the origin to has length . Tilting it by the angle away from the positive -axis gives it the height and a shadow in the -plane of length , which is never negative because for . The azimuth then splits the shadow into and exactly as polar coordinates do. Squaring and adding gives .
Example The unit ball is the coordinate box , , , where including repeats only a half-plane, a set of zero volume. The density becomes . The upper half of the ball is , , , and the squared distance from the -axis, , becomes .
Polar angle and azimuth
Definition The polar angle of a point other than the origin is the angle between the positive -axis and the segment from to , so and . It is on the positive -axis, in the -plane and on the negative -axis. The azimuth of a point off the -axis is the angle of its shadow in the -plane, measured counterclockwise from the positive -axis as in polar coordinates, so and . Some books, especially in physics, swap the names and use for the polar angle and for the azimuth. The formulas on this page assume the convention described here.
In plain words Picture a globe with its north pole on the positive -axis. The polar angle says how far the point is from the north pole, from at the north pole through at the equator to at the south pole. The azimuth says how far around the axis the point is, like longitude. Geographic latitude is , measured up from the equator.
Example Take . Its distance from the origin is , and gives . The polar angle is larger than because lies below the -plane. The shadow has length and lies in the first quadrant with , so . As a check, and .
Spherical volume element
Definition In spherical coordinates with the polar angle measured from the positive -axis, the volume element is
Its factor is the Jacobian determinant of the map ,
which is never negative for , so it equals its own absolute value. This is the three-dimensional case of the change of variables with the absolute Jacobian. Precisely, let be a closed bounded set of triples with , and in an interval of length at most , whose boundary has zero volume, let be its image, and let be continuous on . Then
with evaluated at on the right. The map fails to be one-to-one only at the origin, on the -axis and, when runs over a full turn, on the half-plane where its two end values meet. Those sets have zero volume, so they do not change the integral.
In plain words A small cell between and , and , and and is nearly a box with three perpendicular edges. The radial edge has length . The edge along a meridian is an arc of a circle of radius , with length about . The edge along a circle of latitude is an arc of a circle of radius , the distance from the -axis, with length about . The product of the three lengths is , and the curved shape of the cell changes its volume only by an amount that is small compared with this product as the steps shrink. The factor makes cells with the same angular steps thin near the poles and largest at the equator.
Example Let be the unit ball , including its interior, with density . Its mass is
The ball is the coordinate box , , , with measured down from the positive -axis and the azimuth, and the density is continuous and nonnegative. The density contributes and the volume element contributes , so is the iterated integral
The bounds are constants and the integrand is a function of times a function of , so the integral is the product of three single integrals,
Therefore
The two factors in play different roles. One is the density of the material, and the other is the size of the cell.
Radial density
Definition A density on a solid is radial about a point when its value at each point depends only on the distance from to , that is, when it equals for a function of one variable, where is that distance. With at the origin, a radial density is in spherical coordinates. For the ball of radius centered at the origin and a continuous function on , the angular integrals give the area of the unit sphere,
and the mass is
In plain words All material at the same distance from the center has the same density, so the ball can be cut into thin spherical shells. The shell between and has volume about and density about , and the mass adds up the shells. The shortcut needs a ball or a shell centered at the same point as the density.
Example The density is radial with , and the formula gives again. The density is also radial, with , and it is highest at the center. On the unit ball it gives the mass
The density is not radial. The points and are both at distance from the origin, but their densities are and .
Mass from density
Definition Let a solid with positive volume carry a continuous density , measured as mass per unit volume. A small piece of volume around a point has mass about , and the Riemann sums of add these masses, so the mass of is
The average density is . It lies between the smallest and the largest value of on , which gives a quick check on a computed mass.
In plain words Density says how much mass a unit of volume holds near a point. Integrating it over the solid adds up the masses of all the small pieces. Dividing the total by the volume gives the constant density that would produce the same mass.
Example For the ball , and , so the average density is . The density runs from at the center to on the surface, and it is less than inside, so , as found. The average is well above , the average of when the radius is chosen uniformly from , because the outer shells hold most of the volume. The outer half of the radius, , contains of the volume and of the mass. As another check, the densities and add to , and their masses and add to , the volume of the ball.
Check yourself
- The spherical shell has density . Find its mass.
Show the answer
The shell is , , , and the density is , which is continuous on the shell because the origin is not in it. The density cancels the of the volume element, so the mass is
The interval has length , the integral is and the integral is , so the mass is . Every thin shell of thickness carries the same mass , since its volume is multiplied by the density .
- A classmate computes the volume of the unit ball with running from to and from to , as the integral below, and gets . What went wrong?
Show the answer
The integral over is , so the result is , which cannot be the volume of a ball. These ranges do reach every point, since the triple with names the same point as , and apart from a set of zero volume each point is reached once. The trouble is the sign. For the Jacobian is negative, while the change of variables formula uses its absolute value, and equals its absolute value only when . With the convention and the volume is
which equals .
- Find the integral of over the unit ball , and check the answer with the symmetry of the ball and the mass found above.
Show the answer
In spherical coordinates , so on the box , , the integrand times the volume factor is . The bounds are constants and this is a function of times a function of , so the integral is the product of three single integrals,
The middle one comes from the substitution , with . It sends to and to and turns the integral into . The result is
The ball looks the same from every axis, so the integrals of , and over it are equal. Their sum is the integral of , which is , so each one is , in agreement.