Triple Integrals
Learning Objectives
- Set up a triple integral over a box or over a solid bounded by surfaces, choosing the order of integration and writing each bound as a function of the variables outside it.
- State the conditions under which a triple integral can be evaluated in any order, and the conditions of the change-of-variables theorem in three dimensions.
- Compute a Jacobian and derive the factors (cylindrical) and (spherical), including the range of that makes the factor valid.
- Compute volume and mass, and estimate a volume by Monte Carlo sampling, noting how its error scales.
Context & Motivation
A triple integral adds up a quantity spread through a solid: the mass of a body whose density changes from point to point, the volume of a region too curved for slicing, or the position of its center of mass. With it gives volume, which is the same quantity that slicing computes in applications-area-volume-and-average-value, now without needing a cross-section formula.
The work has two parts: describing the solid, and choosing coordinates in which that description is simple. A ball is awkward in , since the bounds of depend on through a square root and the bounds of on both, but in spherical coordinates it is a box. The previous lesson, double-integrals-cartesian-and-polar, built the tools used here: iterated integrals, Fubini's theorem, and the Jacobian. This lesson extends each one by a dimension.
Core Theory
Triple integrals over boxes
For a box , split it into small boxes of volume , sample in each, and sum . The limit, if it exists, is , and it exists when is continuous on . Fubini's theorem then says that when is continuous on the closed box, the integral equals an iterated integral in any of the six orders of . As in two dimensions, the general version needs , and Tonelli covers . A function that fails these can give different iterated values in different orders, as the example in the previous lesson shows.
Solid regions
A solid is of type 1 if it lies between two surfaces above a plane region :
with continuous and a region of type I or II. For continuous on ,
The rule for bounds is that the innermost integral may depend on the two outer variables, the middle on the outermost one, and the outermost only on constants. Two applications use this directly. The volume of is . For a density the mass is , and the -coordinate of the center of mass is , with and alike.
Change of variables in three dimensions
If maps a solid onto , the Jacobian is
Change of variables. If is , one-to-one on the interior of , and has a nonzero Jacobian on the interior of , and if is continuous on , then
The determinant is the scaling factor of volume: a small box is sent, to first order, to a parallelepiped spanned by the three columns of the matrix, and the volume of that parallelepiped is the absolute value of the determinant times . As in two dimensions, the exceptional points where one-to-one or nonzero fails must form a set of zero volume.
Cylindrical coordinates
Keep and use polar coordinates in the -plane: , , . The Jacobian is , so . The map is one-to-one for and , and the Jacobian vanishes only on the axis , which has zero volume. This is the choice when the solid has an axis of symmetry, as in polar-coordinates but lifted into space.
Spherical coordinates
Let be the distance from the origin, the angle from the positive -axis, and the azimuth, as in polar coordinates:
The Jacobian with respect to is , so . The convention matters: this lesson, like OpenStax, uses for the angle from , whereas many physics texts swap the names and , so a formula from another source needs a check before use. The factor is nonnegative only because , and the map is one-to-one on , , . The Jacobian is zero at and on the -axis (), a set of zero volume.
If is allowed to run past , the map stops being one-to-one. With the signed factor integrates to over the ball, and the absolute value covers the ball twice, giving instead of .
Worked Examples
Example 1: a tetrahedron, in Cartesian coordinates
Let be the tetrahedron , . The bounds are , , . The volume is
For a density the mass is , and integrating with innermost and outermost also gives , as Fubini promises. The moment , so . With uniform density the centroid is at , so the density that grows with distance from the origin pushes the center of mass outward. All values match numerical triple quadrature.
Example 2: cylindrical coordinates
Find the volume between and . The surfaces meet where , so , and
A numerical triple integral in gives .
Example 3: spherical coordinates
For a ball of radius ,
If the density is , proportional to the distance from the center, the mass is .
Now the "ice cream cone": inside the unit sphere and above the cone . On the cone , so the cone is , and the solid is , , :
A Cartesian triple integral over gives . Dropping the Jacobian from the ball gives instead of (for ).
Example 4: Monte Carlo volume of a ball
When a region has no convenient description, sample it. Draw points uniformly in the cube (volume 8) and count the fraction that land inside the unit ball. Then estimates . The standard error is with , which is . One run (seed 2026) gave:
textN estimate abs error std error 10^3 4.2640 0.0752 0.1264 10^4 4.1808 0.0080 0.0400 10^5 4.1632 0.0256 0.0126 10^6 4.1878 0.0010 0.0040
A single run fluctuates around that scale: the error at is two standard errors. Averaged over 300 runs (seeds 0 to 299), the root-mean-square error at was , close to the predicted . The error shrinks like whatever the dimension, but the constant depends on the problem. A grid with 100 points per axis needs evaluations in three dimensions and in ten, while Monte Carlo can still be run in ten. There the unit ball fills only about of its bounding cube, and samples (seed 5) gave against the exact , a standard error of .
Common Misconceptions & Pitfalls
- "Spherical coordinates only need ." The volume element is . The reflects that a shell's area grows with the square of its radius, and the that circles of latitude shrink toward the poles. Cylindrical coordinates need the factor .
- "Any angle range will do." The map must be one-to-one on the interior. belongs in and in a window of length ; a larger range double-covers the solid.
- "Cylindrical and spherical coordinates mean the same angles everywhere." The geometric angles are the same, but the names differ among books: physics texts often call the angle from the -axis and the azimuth . Write down which angle is which before using a table of formulas.
- "The bounds of the outer integral can depend on the inner variables." An inner variable cannot appear in the limits of an outer integral. If a bound refers to , then must be integrated outside that integral, and the region has to be redescribed.
- "Monte Carlo converges faster than a grid because it is random." It converges at the rate , which is slow, and its advantage is that this rate does not worsen with the dimension (the constant in front can).
Summary
A triple integral is a limit of sums over small boxes. For a continuous integrand on a closed box, Fubini lets the six orders agree, and the general theorems need absolute integrability or a nonnegative integrand. Solids of type 1 are described by a base region and two surfaces. Under a map that is one-to-one on the interior with a nonzero Jacobian there, the integrand picks up the absolute value of the determinant: for cylindrical coordinates and for spherical coordinates, valid for . Volume and mass are the standard uses. When a region resists description, random sampling gives an estimate whose error falls like in any dimension.