Contents / Calculus / Multiple Integrals
Chapter 12
Multiple Integrals
Double and triple integrals, polar, cylindrical and spherical coordinates, and change of variables.
Introduction
A single integral adds up a quantity along an interval: chop into pieces, multiply the value of on each piece by its length, add, and take a limit. A double integral does the same over a region of the plane, a triple integral over a solid. The recipe — chop, multiply, add, take the limit — does not change at all. What changes is the geometry: a region of the plane is a far more varied object than an interval, so the central skill of this chapter is describing a region by inequalities in the right order, and the second skill is choosing coordinates in which that description is simple.
The pay-off is large. Volumes, masses, centres of mass, moments of inertia, surface areas and joint probabilities all become double or triple integrals, and each is computed by the same machine: reduce to iterated single integrals and use the Fundamental Theorem of Calculus one variable at a time. Along the way you will meet the two most useful coordinate changes in mathematics — polar and spherical — and the theorem that explains both of them, the change of variables formula with its Jacobian factor.
You will need comfortable single-variable integration (substitution, parts, the standard antiderivatives) and the partial derivatives of the previous chapter; nothing else.
12.1Double integrals over rectangles
Let be a closed rectangle and let be a function of two variables defined on . Divide into subintervals of equal width and into subintervals of width . The lines through the division points cut into subrectangles , each of area . In each subrectangle choose a sample point . If , the box with base and height has volume , and adding these boxes gives the double Riemann sum
an approximation to the volume of the solid that lies under the graph of and above . Refining the grid improves the approximation; the limit is the double integral.
Definition 12.1 (Double integral over a rectangle). The double integral of over the rectangle is
provided the limit exists and has the same value for every choice of sample points. A function for which the limit exists is called integrable on .
The definition has the same shape as the single-variable one, and the same theorem governs existence: every function continuous on is integrable, and so is every bounded function whose discontinuities lie on finitely many smooth curves. The proof belongs to real analysis and rests on the uniform continuity of a continuous function on a closed bounded set; for this chapter the practical rule is that every function you are asked to integrate is integrable.
When the integral is the volume of the solid under the graph and above . When takes both signs the integral is a signed volume: the part of the solid above the -plane counts positively and the part below counts negatively, exactly as a single integral counts area below the axis as negative.
Intuition. A rectangular field receives rain, and the depth of water that fell is centimetres at the point : heavier near a hill, lighter in its shadow. To find the total volume of rain, a surveyor cannot measure at every point, so she marks the field into a grid, reads the depth at the centre of each cell, multiplies by the cell's area, and adds. That sum is a double Riemann sum, and the finer her grid the closer she is to the exact volume .
The surveyor's procedure — sample each cell at its centre — is the two-variable Midpoint Rule.
Method 12.2 (Midpoint Rule for double integrals). With the midpoint of the -th subinterval of and the midpoint of the -th subinterval of ,
Example 12.3 (A midpoint estimate). Use the Midpoint Rule with to estimate , where .
Solution.
- The subintervals are in and in , so and the midpoints are , , , .
- Evaluate at the four centres: , , , .
- The sum of the four values is , so the estimate is .
The exact value, computed later in this section, is ; the estimate is within about one percent with only four sample points. The integral is negative because on all of , so the whole solid lies below the -plane.□
Double integrals inherit the algebraic properties of single integrals, and for the same reason: each property holds for every Riemann sum, so it survives the limit.
Proposition 12.4 (Properties of the double integral). Let and be integrable on and let be a constant. Then
If on then . If on then
where is the area of the rectangle; in particular .
Proof. For the first two, the Riemann sum of is the sum of the Riemann sums of and with the same sample points, and the Riemann sum of is times that of ; take limits. For monotonicity, every Riemann sum of is at least the corresponding sum of , and limits preserve non-strict inequalities. The last statement is monotonicity applied to the constant functions and , whose Riemann sums are and for every grid.∎
Nobody evaluates a double integral from the definition. The working method is to integrate one variable at a time, and the theorem that licenses it is the most important in the chapter.
Definition 12.5 (Partial integration and iterated integrals). For defined on , the partial integral of with respect to is
computed by holding fixed and integrating in as in one variable; the result is a function of alone. Integrating that in turn gives the iterated integral
The iterated integral is defined in the same way with the roles of the variables exchanged.
The rule for reading an iterated integral is: work from the inside out, and the innermost differential names the variable of the innermost integral. In the is inside, so the -integration with limits and is done first, treating as a constant.
Example 12.6 (An iterated integral in both orders). Evaluate and .
Solution.
- In the first, is the inner variable. Holding fixed,
- Now integrate the result in :
- In the second, is inner: , and then .
Both orders give . That is not a coincidence.□
Theorem 12.7 (Fubini's Theorem). If is continuous on the rectangle , then
More generally the conclusion holds whenever is bounded on , is discontinuous only on finitely many smooth curves, and both iterated integrals exist.
Proof. Here is the geometric argument for ; the general case is the same argument applied to the positive and negative parts of separately, and the fully rigorous version, which controls the interchange of two limits in the Riemann sum, is a theorem of real analysis.
The double integral is the volume of the solid under the graph. Slice by the plane . The cross-section is the plane region under the curve for , so its area is
The slicing principle for volumes — the one that gives volumes of revolution — says that a solid whose cross-sectional area perpendicular to the -axis is has volume . Hence
Slicing by planes instead gives the other iterated integral. Both equal , so both equal .∎
Fubini's Theorem is two statements in one. First, the double integral, defined as a limit of sums, can be computed by two ordinary integrations. Second, the two possible orders give the same answer, so you may choose whichever is easier — and as the next examples show, the difference can be between a two-line computation and two rounds of integration by parts.
Example 12.8 (The exact value behind the midpoint estimate). Evaluate for .
Solution.
- Integrate in first, holding fixed:
- Then integrate in :
- Sanity check: the other order gives , and . The midpoint estimate was close.
Example 12.9 (Choosing the easier order). Evaluate , where .
Solution.
- Integrating in first means , which needs integration by parts, and the result must then be integrated in by parts again. Try first instead.
- With held fixed, has antiderivative in , so
- Now
The integral is : over this rectangle the surface encloses as much volume below the -plane as above it.□
Example 12.10 (A volume). Find the volume of the solid bounded by the elliptic paraboloid , the planes and , and the three coordinate planes.
Solution.
- The solid lies above the square and under the graph of , which is positive on (its smallest value there is ). So .
- Integrate in first:
- Then in :
- Sanity check: the height ranges from to over a base of area , so must lie between and . It does.
One special case is worth stating on its own, because it turns many double integrals into a product of two single integrals.
Corollary 12.11 (Product of single integrals). If on , with and continuous, then
Proof. By Fubini's Theorem the integral is . In the inner integral is a constant, so it comes out: the inner integral is . Now is a number, so it comes out of the outer integral too.∎
Example 12.12 (Using the product form). Evaluate over .
Solution.
- The integrand is a product of a function of and a function of , and the region is a rectangle, so the corollary applies.
- and .
- The double integral is .
The product form also makes averages quick. The average value of over a rectangle (or any region) is
the constant height of the box that would hold the same volume. For instance, the average of over is .
Pitfall. The limits belong to the differentials, not to the order in which you happen to see them. In the inner integral is in from to and the outer in from to ; the numbers and never go with . Attaching the wrong limits to the wrong variable is the commonest way to lose a whole question, and it is invisible in the arithmetic afterwards. Say to yourself, every time: innermost differential, innermost limits.
12.2Double integrals over general regions
Most regions are not rectangles: the base of a solid is a triangle, a disk, the space between two parabolas. The definition extends by a simple trick. Enclose the region in a rectangle, extend the function by zero, and integrate over the rectangle.
Definition 12.13 (Double integral over a general region). Let be a bounded region of the plane and a rectangle containing . Define on by for in and otherwise. Then
whenever the right-hand side exists.
The extended function may jump at the boundary of , but if the boundary consists of finitely many smooth curves and is continuous on , the discontinuities of live on those curves and is integrable. The choice of does not matter, because is zero on whatever part of lies outside . The volume interpretation survives unchanged: for , is the volume of the solid under the graph of and above , and the properties of the previous section — linearity, monotonicity, the bounds — carry over word for word. One property is new. If is the union of two regions and that overlap only along a boundary curve, then
which lets you cut an awkward region into pieces that are each easy to describe.
Easy to describe means one of two shapes.
Definition 12.14 (Type I and type II regions). A region is of type I if it lies between the graphs of two continuous functions of :
It is of type II if it lies between the graphs of two continuous functions of :
A type I region is one that a vertical line sweeps out cleanly: for each in the vertical line at enters at height and leaves at height . A type II region is the same with horizontal lines. Many regions — disks, triangles — are both, and then you have a choice of order; some are only one, and some are neither and must be cut.
Theorem 12.15 (Iterated integrals over type I and type II regions). If is continuous on a type I region , then
If is continuous on a type II region , then
Proof. Take the type I case. Choose a rectangle containing and let be extended by zero. By the definition and Fubini's Theorem,
Fix in . Along the vertical segment , the function is zero for and for , and equals in between, so
Substituting this for the inner integral gives the formula. The type II case is identical with horizontal segments.∎
Notice the shape of the result: the inner limits are functions of the outer variable, and the outer limits are constants. That is always the case, and it is the quickest check that an iterated integral over a general region has been set up correctly.
Intuition. Think of a type I region as a piece of land surveyed by walking north along every line of longitude . On each walk the surveyor records where she crosses into the property, , and where she leaves it, . The inner integral is what she collects on one walk; the outer integral adds up all the walks from to . If the property is easier to survey walking east along lines of latitude, that is a type II description, and the order of integration swaps.
Example 12.16 (A region between two parabolas). Evaluate , where is the region bounded by the parabolas and .
Solution.
- The parabolas meet where , that is . Between those values , so the region is type I:
- Inner integral in :
- Expanding, .
- The odd powers integrate to zero over , so
- Sanity check: the region has area , and the integrand lies between and on ; the answer is comfortably inside .
Example 12.17 (Volume of a tetrahedron by a double integral). Find the volume of the tetrahedron bounded by the planes , , and .
Solution.
- The solid lies under the plane and above its shadow in the -plane. That shadow is bounded by the lines , and (where the plane meets ): a triangle with vertices , and .
- Sweeping vertically: for , the line at enters at and leaves at . So
- Inner integral:
Since and , the first two terms combine to , and the last two give . The total is . 4. Then . 5. Sanity check: a tetrahedron has volume . The base triangle has area (base along from to , apex at ), and the apex of the solid is at height , so .□
Example 12.18 (A region that is type II but not conveniently type I). Evaluate , where is bounded by the line and the parabola .
Solution.
- Solve simultaneously: gives , so or ; the intersection points are and .
- As a type I region would need to be split at , because its lower boundary is the parabola's lower branch for and the line for . Sweeping horizontally avoids this: for the horizontal line at height enters at and leaves at . So is type II:
- Inner integral in :
- Outer integral:
The freedom to choose the order is more than a convenience. Sometimes the inner antiderivative in one order does not exist in closed form — , , — while the other order is elementary.
Method 12.19 (Reversing the order of integration).
- Read the region off the limits as inequalities: for they are and .
- Sketch from those inequalities, marking the corner points.
- Describe the same region the other way: find the overall range of , and for each the entering and leaving values of as functions of .
- Rewrite the iterated integral with the new limits and the differentials in the new order.
Example 12.20 (An order that cannot be done becomes one that can). Evaluate .
Solution.
- As written, the inner integral has no elementary antiderivative, so this order is impossible.
- The limits say and : the triangle with vertices , , , above the line .
- Sweeping horizontally: runs from to , and for each the horizontal line enters the triangle at and leaves at . So
- The inner integral is now trivial, since is constant in : it equals . That factor of is exactly what makes the substitution work:
- Sanity check: on the triangle lies between and , and the triangle has area , so the integral lies between and .
Setting turns a double integral into an area.
Proposition 12.21 (Area as a double integral). For a bounded region with a piecewise-smooth boundary,
Proof. The integral of over is the volume of the solid cylinder with base and height , and a cylinder's volume is base area times height.∎
For a type I region this reads , the familiar area-between-curves formula, so the proposition is not new information. Its value is conceptual: it says that area, mass and probability are all the same kind of object, and in polar coordinates and after a change of variables it produces area formulas that are not obvious at all.
Example 12.22 (Area between a parabola and a line). Find the area of the region bounded by and .
Solution.
- The curves meet where , at and , and between them .
- As a double integral, .
Pitfall. The outer limits of an iterated integral must be numbers. If you find yourself writing with a in the outermost limit, the region has been described backwards: the answer would be a function of , not a number. Equally, an inner limit that depends on the inner variable itself, such as , is meaningless. The dependence always runs outward: inner limits may involve the outer variable, never the reverse.
12.3Double integrals in polar coordinates
A disk described in Cartesian coordinates is , and integrals over it fill up with square roots. In polar coordinates the same disk is , , a rectangle in the -plane. The price of that simplicity is a factor in the area element, and it is important to see exactly where the factor comes from.
Recall that polar coordinates are related to Cartesian coordinates by
A polar rectangle is a region of the form , the part of an annulus cut out by two rays. Divide into subintervals of width and into subintervals of width . The circles and the rays cut into polar subrectangles . These are not congruent: the ones far from the origin are wider. The area of a sector of angle and radius is , so the area of , a difference of two sectors, is
where is the midpoint radius. Taking the sample point in each subrectangle, the Riemann sum for becomes
which is an ordinary Riemann sum for the function over the ordinary rectangle in the -plane. Letting proves the following.
Theorem 12.23 (Change to polar coordinates in a double integral). If is continuous on the polar rectangle with and , then
Proof. The derivation above: the area of a polar subrectangle is , so the polar Riemann sums for are the Cartesian Riemann sums for over , and the two limits coincide.∎
In words: replace and by and , use polar limits, and replace by . The factor is not optional and not decorative; it is the area of a polar cell, and without it the integral of over a disk of radius would come out as instead of .
The theorem extends, exactly as the type I formula extended Fubini, to regions bounded by two polar curves. If
then
With this recovers the area formula for polar curves, , since .
Intuition. Cut a pizza into the usual wedges, then cut each wedge across into an inner piece and an outer piece. The outer pieces are bigger, even though both have the same angular width and the same radial thickness. A polar cell at radius has arc length and thickness , so its area is about : the factor records that the outer pieces are worth more.
Example 12.24 (A polynomial over half an annulus). Evaluate , where is the region in the upper half-plane between the circles and .
Solution.
- In polar coordinates .
- Substitute and add the factor :
- Inner integral: .
- Outer integral, using :
The term contributes nothing because the region is symmetric under and is odd in ; the polar computation shows this as .□
Example 12.25 (A sector of an annulus). Evaluate over the quarter-annulus .
Solution.
- The region is , , and .
- With the factor the integrand becomes , which is a product of a function of and a function of over a rectangle in the -plane, so the product corollary applies:
- Sanity check: is at most on (at , ) and the region has area , so the integral cannot exceed ; also throughout, so the answer must be positive. Both hold.
Example 12.26 (Volume under a paraboloid). Find the volume of the solid bounded by the paraboloid and the plane .
Solution.
- The paraboloid meets the plane on the circle , so the solid sits over the unit disk and .
- In polar coordinates and :
- Sanity check: the solid is inscribed in the cylinder of radius and height , volume , and contains the cone of the same base and height, volume . Indeed ; the paraboloid holds exactly half the cylinder.
Example 12.27 (A region between two circles). Find the area of the region that lies inside the circle and outside the circle .
Solution.
- The curve is the circle of radius centred at , traced for . It meets where , so at .
- For the ray at angle enters the region at and leaves at . So
- Using , the integrand is , so
- Sanity check: the circle has area , and the unit disk removes less than half of it, so the answer should be a little more than . It is.
Example 12.28 (A Gaussian over a disk). Evaluate , where is the disk .
Solution.
- The integrand depends only on and the region is a disk: polar coordinates are compulsory. The disk is , .
- Write the integral as . The integral contributes the factor .
- For the integral substitute , ; the factor that polar coordinates supplied is precisely what the substitution needs:
- The integral is .
Note that has no elementary antiderivative, so the Cartesian version of this integral cannot be started. Polar coordinates do not merely simplify it; they make it possible.□
The same trick evaluates one of the most important integrals in mathematics.
Example 12.29 (The Gaussian integral). Show that .
Solution.
- Let ; the integral converges because for . Since the name of the variable is immaterial, also .
- Multiply the two, and use the product corollary in reverse to turn the product into a double integral over the whole plane:
- The double integral over the plane is the limit as of the integral over the disk of radius , which the previous example computed:
- Hence , and since , .
The square of the integral could be done although the integral itself could not, because squaring turned a line into a plane, where the symmetry of becomes usable. Rescaling gives , the normalising constant of the normal distribution.□
Pitfall. The single most common error in this chapter is writing without the factor . Check every polar integral for it before integrating. A second trap: the substitution is safe, but only because by convention; keep and describe regions that cross the origin by their -range rather than by allowing negative .
12.4Applications: mass, centre of mass, moments and probability
The volume interpretation is only the first use of a double integral. Whenever a quantity is spread over a plane region with a known density, the total is a double integral, and the same integral with an extra factor of or or measures how that quantity is distributed.
Definition 12.30 (Mass and moments of a lamina). A lamina occupies a region of the plane with density (mass per unit area), continuous on . Its mass, its moment about the -axis, and its moment about the -axis are
Its centre of mass is the point with
When is constant the centre of mass is called the centroid of .
The mass formula is a Riemann sum argument: a small cell of area at has mass about , and the sum of these tends to the integral. The moments encode leverage. A point mass at exerts a turning tendency about the -axis — its mass times its lever arm — and a lamina's moment is the sum of those over all its cells. The centre of mass is the point where a single particle of mass would produce the same two moments, which is why and . Physically it is the balance point: the lamina rests level on a pin placed there. Notice the crossed subscripts, which trip up everyone once: , the moment about the -axis, involves the distance from that axis, and it is that gives .
Intuition. Two children sit on a see-saw. The heavier one sits closer to the pivot, and it balances when mass times distance is the same on both sides. A lamina is a see-saw in two dimensions with infinitely many children, one per cell, each weighing . The moment adds up every child's mass times distance from the axis, and the centre of mass is where the pivot must go so that the total moment on each side cancels.
Example 12.31 (Centre of mass of a triangular lamina). A lamina occupies the triangle with vertices , and and has density . Find its mass and centre of mass.
Solution.
- The hypotenuse joins to , so it is the line , and the triangle is .
- Mass:
where the bracket simplifies because . 3. Moment about the -axis (multiply the density by ): the inner integral is times the bracket above, so
- Moment about the -axis:
With (so and ), the integrand becomes , and
- The centre of mass is . Sanity check: the centroid of the triangle is the average of its vertices, . The density increases with and with , so the centre of mass should sit slightly to the right of and above the centroid — and , .
Example 12.32 (Centroid of a half-disk). Find the centroid of the half-disk .
Solution.
- By symmetry : the region and the constant density are unchanged by , which changes the sign of , so .
- Take , so .
- For use polar coordinates, where and the half-disk is , :
- Therefore
- Sanity check: the centroid must lie inside the half-disk, so , and since more of the area is near the diameter than near the top, should be below . Both hold.
The moment of inertia measures the resistance of a rotating body to changes in its spin, in the way mass measures resistance to changes in velocity. It weights each cell not by distance from the axis but by distance squared.
Definition 12.33 (Moments of inertia). For a lamina with density on , the moments of inertia about the -axis, about the -axis, and about the origin (the polar moment of inertia) are
Example 12.34 (Moments of inertia of a uniform disk). Find , and for a disk of radius centred at the origin with constant density , and express them in terms of the mass .
Solution.
- In polar coordinates , so
- The disk is symmetric under the swap of and , so , and since each equals .
The factor in is the familiar one from the physics of a spinning disk; a thin hoop of the same mass and radius would have , because all its mass sits at the full distance .□
The last application replaces mass by probability. If and are continuous random variables, their joint behaviour is described by a joint density function.
Definition 12.35 (Joint density and expected values). A joint density function of two random variables and is a function with and such that, for every region ,
The expected values of and are
The expected values are exactly the coordinates of the centre of mass of a lamina of total mass with density . If and are independent the joint density factors as , and integrals over rectangles then split by the product corollary; the interesting cases are the regions that are not rectangles.
Example 12.36 (Working with a joint density). Let for , , and elsewhere. Verify that is a joint density, find , and find .
Solution.
- on its support, and , so is a density.
- The event is the triangle :
- The expected value of :
- Sanity check: the triangle is half the square, but the density is larger in the far corner where is big, so should be less than . Likewise the density grows with , so should exceed . Both and agree.
Pitfall. is the moment about the -axis and it contains , not : distance from the -axis is measured by . And , not . Write the definitions down before computing rather than trusting the subscript, and check the answer against symmetry: a region symmetric about the -axis with a density symmetric under has , whatever the integrals seem to say.
12.5Surface area
The arc length of a curve is : the length of the graph exceeds the length of the interval beneath it by a factor that grows with the slope. The area of a surface has the same structure, and the same derivation.
Let be the graph of over a region , where has continuous partial derivatives. Partition into small rectangles of area , and let be the corner of nearest the origin with the point of above it. The part of above is approximated by the part of the tangent plane at above , which is a parallelogram. Its sides are the vectors along the tangent plane in the - and -directions,
because moving in the -direction along the tangent plane raises by . The area of the parallelogram is , and
so the parallelogram has area
Definition 12.37 (Surface area). The area of the surface with equation , , is
the limit of the total area of the tangent-plane parallelograms as the partition of is refined.
Theorem 12.38 (Surface area formula). If has continuous partial derivatives on , the area of the surface over is
Proof. The sum is a Riemann sum for the continuous function over , so its limit is the double integral.∎
The integrand is a stretch factor, always at least : it equals exactly where the surface is horizontal and grows with the steepness. Geometrically, if is the angle between the upward normal and the vertical, then , and the formula says : a tilted patch is larger than its shadow by the secant of the tilt.
Intuition. A flat roof over a metre house uses square metres of tiles. A pitched roof over the same house covers the same floor plan but uses more tiles, and the steeper the pitch the more it uses: at a pitch the factor is . The surface-area integrand is that factor, computed patch by patch, for a roof whose pitch varies from place to place.
Example 12.39 (Surface area over a triangle). Find the area of the part of the surface that lies above the triangle with vertices , and .
Solution.
- and , so the integrand is .
- The triangle is , . Integrating in first costs nothing because the integrand does not involve :
- Substitute , :
- Sanity check: the triangle has area , and the stretch factor ranges from to over it, so must lie between and .
Example 12.40 (Surface area of a piece of a paraboloid). Find the area of the part of the paraboloid that lies under the plane .
Solution.
- The surface lies over the disk : . With and ,
- The region and the integrand both call for polar coordinates: , so
- The integral gives . For the integral substitute , :
- So .
- Sanity check: the surface covers a disk of area and is steep near the rim (stretch factor at ), so an answer several times is right.
Example 12.41 (Surface area of a hemisphere). Use the surface area formula to find the area of the hemisphere .
Solution.
- Here and , so
- In polar coordinates over the disk ,
- The integrand blows up at , where the hemisphere is vertical, so the inner integral is improper; it converges:
- Hence , half the area of the sphere, as it should be.
Pitfall. Surface area is not . That integral is the volume under the surface. Nor is it , which is the area of the shadow . The surface area integrand is the stretch factor , and the integrand does not contain itself at all, only its derivatives — a surface shifted vertically by a constant has the same area.
12.6Triple integrals
A triple integral is defined over a solid region exactly as a double integral is over a plane region. Begin with a rectangular box
divide it into sub-boxes of volume , choose a sample point in each, and form the triple Riemann sum.
Definition 12.42 (Triple integral over a box).
whenever the limit exists independently of the choice of sample points. Every function continuous on is integrable.
There is no longer a picture of the integral as a volume under a graph, because that graph would live in four dimensions. The pictures that remain are the useful ones: if the integral is the volume of the solid; if is a density (mass, charge, probability per unit volume) the integral is the total amount; and if is a temperature the integral divided by the volume is the average temperature.
Theorem 12.43 (Fubini's Theorem for triple integrals). If is continuous on the box , then
and the same holds for each of the other five orders of integration.
The proof is the same slicing argument as before, applied twice, and the reading rule is the same: innermost differential first, outer variables held constant.
Example 12.44 (A triple integral over a box). Evaluate , where .
Solution.
- The integrand is a product over a box, so the triple integral is a product of three single integrals, for the same reason as in the double case.
- , , and .
- The integral is .
Solids that are not boxes are handled by the extension-by-zero trick and then described by inequalities. The cleanest description is: a plane region for two of the variables, and for the third a range between two surfaces over .
Definition 12.45 (Type 1, 2 and 3 solid regions). A solid region is of type 1 if it lies between two continuous surfaces over a plane region in the -plane:
It is of type 2 if the same holds with in the -plane and between and , and of type 3 if lies in the -plane and runs between and .
Theorem 12.46 (Triple integrals over general solids). If is continuous on the type 1 region above, then
and the remaining double integral over is evaluated as in the section on general regions. The analogous formulas hold for type 2 and type 3 regions with or as the inner variable.
Proof. Enclose in a box, extend by zero, apply Fubini's Theorem with innermost, and observe that for fixed in the extended function vanishes outside — the same argument as for type I plane regions, one dimension up.∎
If is itself of type I, the type 1 formula unfolds into three nested integrals:
with the now-familiar shape: the innermost limits may depend on both outer variables, the middle limits on the outermost variable only, and the outer limits are constants. The region is the projection (shadow) of on the -plane; when is bounded by two surfaces that intersect, is bounded by the curve of intersection.
Intuition. A triple integral over a type 1 solid is a stack of vertical pencils. Over each point of the shadow , stand a thin pencil that enters the solid through the floor surface and leaves through the ceiling ; the inner integral adds up along that pencil. The outer double integral then adds up the pencils over the whole shadow. Choosing which axis the pencils are parallel to is choosing between types 1, 2 and 3, and the right choice is the one whose floor and ceiling are each a single formula.
Example 12.47 (A triple integral over a tetrahedron). Evaluate , where is the solid tetrahedron bounded by the four planes , , and .
Solution.
- The floor is and the ceiling is . The shadow on the -plane is where the ceiling is above the floor, with : the triangle , .
- Innermost integral:
- Middle integral, with so that :
- Outer integral: .
- Sanity check: the tetrahedron has volume and ranges over with most of the solid near , so the answer should be well below ; indeed the average value of over is , the height of the centroid.
Example 12.48 (Volume of a tetrahedron as a triple integral). Use a triple integral to find the volume of the tetrahedron with vertices , , and .
Solution.
- The slanted face passes through , , , so its equation is , that is . The shadow on the -plane is the triangle , .
- Set up with innermost:
- Inner integral: with the upper limit, , since . So the inner integral is .
- Outer integral: .
- Sanity check: .
Example 12.49 (Choosing the projection). Evaluate , where is the solid bounded by the paraboloid and the plane .
Solution.
- The paraboloid opens along the -axis. Projecting on the -plane would give a floor and ceiling in of and a messy integrand. Projecting on the -plane instead (type 3) gives from the paraboloid up to the plane: , over the shadow where the surfaces meet.
- Inner integral in :
- The remaining double integral over a disk in the -plane is done in polar coordinates , :
The last skill is changing the order of a triple integral, which is needed when an inner integral is impossible in the given order, or when a region is more naturally sliced another way.
Example 12.50 (Changing the order of a triple integral). Rewrite as an iterated integral in the order , and verify the two descriptions agree by computing the volume of the region.
Solution.
- The limits describe . Its projection on the -plane is the region under the parabola for , and over each point runs from up to .
- In the new order is innermost, so we need the projection of on the -plane and then, for each , the range of . The -projection is , the triangle bounded by , and the line . For a point in it, must satisfy , that is . So
- Verification with . Original order: . New order:
Both give .□
Every application of double integrals has a triple-integral version, with in place of and one more coordinate.
Proposition 12.51 (Volume, mass and centre of mass of a solid). For a solid with density ,
The moment of inertia about the -axis is , with and defined by the analogous squared distances.
Thus the earlier computation over the unit tetrahedron says that its centroid has , and by symmetry the centroid is .
Pitfall. When the two surfaces bounding a solid intersect, the shadow is not something you choose; it is determined by the curve where the floor and the ceiling meet. Setting and simplifying gives the boundary of . Writing a triple integral over a shadow that is too large (a square instead of the disk where a paraboloid meets a plane, say) makes the inner integral negative on the excess, and the volume comes out wrong with no sign of trouble in the arithmetic.
12.7Triple integrals in cylindrical coordinates
Cylindrical coordinates are polar coordinates in the -plane with left alone. A point is written , where are the polar coordinates of its projection on the -plane and is its height:
The coordinate surfaces are the cylinder about the -axis, the half-plane through the -axis, and the horizontal plane , which is why these coordinates suit any solid with an axis of symmetry: cylinders, cones, paraboloids, and anything bounded by them.
The volume element follows at once from the polar area element. A small cylindrical cell has base a polar rectangle of area and height , so
Theorem 12.52 (Triple integral in cylindrical coordinates). Let be a type 1 solid whose shadow is a polar region . If is continuous on , then
Proof. By the type 1 formula, . The bracket is a continuous function of on , and converting the outer double integral to polar coordinates by the polar change-of-coordinates theorem supplies the factor and the polar limits.∎
The recipe is: convert the integrand and the -limits with , ; describe the shadow in polar coordinates; and multiply by . Expressions such as and collapse to and , which is usually the whole point.
Intuition. Picture a stack of coins whose diameters vary with height — a solid of revolution. Cylindrical coordinates describe it by height , distance from the axle, and angle around it. Nothing about the shape depends on , so the integral is a bare , and the real work is the two-variable integral in and that describes one cross-section through the axis.
Example 12.53 (Volume between a paraboloid and a plane). Find the volume of the solid bounded by the paraboloid and the plane .
Solution.
- The floor is the paraboloid and the ceiling is the plane ; they meet where , so the shadow is the disk .
- In cylindrical coordinates,
- Sanity check: the solid sits inside the cylinder of radius and height , volume , and a paraboloid fills exactly half its circumscribed cylinder, as the earlier polar example also found. is half of .
Example 12.54 (Mass of a solid with density proportional to distance from the axis). A solid lies inside the cylinder , below the plane and above the paraboloid . Its density at a point is proportional to the point's distance from the -axis. Find its mass.
Solution.
- The density is for a constant . The solid is , , .
- Mass:
Note the two factors of in the integrand: one from the density, one from .□
Example 12.55 (Converting a Cartesian triple integral). Evaluate .
Solution.
- Read off the region. The outer two limits say lies in the disk ; the inner limits say runs from the cone up to the plane . The solid is the region inside the cone and below the plane, and the integrand is .
- In cylindrical coordinates the cone is and the disk is :
- Sanity check: the solid is a cone of base radius and height , volume , and averages somewhat under over it (the wide end at the top is where is large, and it carries most of the volume), so an answer near is reasonable.
Pitfall. Cylindrical is the distance from the -axis, , not the distance from the origin. A sphere becomes in cylindrical coordinates, not . If a problem involves distance from the origin, spherical coordinates are probably the right tool.
12.8Triple integrals in spherical coordinates
Spherical coordinates locate a point by its distance from the origin and two angles: the longitude of cylindrical coordinates, and the angle down from the positive -axis, which plays the role of co-latitude.
Definition 12.56 (Spherical coordinates). The spherical coordinates of a point are , where is the distance from the origin, is the same angle as in cylindrical coordinates, and is the angle between the positive -axis and the segment , with . The conversion formulas are
The formulas come from two right triangles. Dropping a perpendicular from to the -axis gives and a horizontal leg of length ; that is the cylindrical radius, and , finishes the job. The coordinate surfaces are the sphere , the half-plane , and the half-cone (a cone opening upward for , the -plane for , a cone opening downward for ). Anything bounded by spheres and cones — balls, shells, ice-cream cones — belongs in spherical coordinates.
The volume element takes more care than the cylindrical one. Consider the spherical wedge
and cut it into small wedges by spheres , half-planes and cones . A small wedge is nearly a rectangular box. Its three edges are: a radial segment of length ; an arc of a meridian (a great circle of radius ) subtending angle , of length ; and an arc of a circle of latitude subtending angle . That circle of latitude has radius , the cylindrical radius of the point, so the arc has length . Multiplying the three edges,
A more careful computation gives the exact volume as , and the Mean Value Theorem turns this into for some in and in , which is what makes the Riemann-sum argument rigorous.
Theorem 12.57 (Triple integral in spherical coordinates). If is continuous on the spherical wedge above, then
The formula extends to regions of the form with the -limits replaced accordingly.
Proof. The Riemann sum , with the sample point chosen at and written as above, is a Riemann sum for the function over the box in -space. The two limits agree.∎
In practice: replace by their spherical expressions (remembering and ), use spherical limits, and replace by . The order of the three differentials is immaterial when all six limits are constants.
Intuition. On a globe, the grid squares between neighbouring lines of latitude and longitude are large at the equator and shrink to slivers near the poles: a degree of longitude spans far less distance in Svalbard than in Singapore. The factor is that shrinking, since the circle of latitude at co-latitude has radius . The factor says that a larger globe has proportionally larger grid squares in both directions.
Example 12.58 (Volume of a ball). Find the volume of the ball .
Solution.
- The ball is the spherical wedge , , , and its volume is the integral of :
- All limits are constant and the integrand is a product, so
The factor is worth remembering; a hemisphere () gives instead.□
Example 12.59 (An integrand that only spherical coordinates can handle). Evaluate , where is the unit ball.
Solution.
- The exponent is , and the ball is with the full ranges of and :
- The integral is set up for , — again the coordinate factor supplies exactly the the substitution needs — giving .
- The total is .
- Sanity check: the integrand lies between and on the ball, whose volume is , so the answer lies between and . In Cartesian coordinates this integral cannot even be started.
Example 12.60 (Volume inside a sphere and above a cone). Find the volume of the solid that lies inside the sphere and above the cone .
Solution.
- The sphere is . On the cone, , so and the cone is . Above the cone means .
- The solid is the wedge , , :
- Sanity check: the whole ball has volume , and a narrow cone of half-angle should cut off a small fraction of it: the fraction is , so about .
In general the solid inside and above the cone has volume .□
Example 12.61 (The ice-cream cone). Find the volume of the solid that lies above the cone and inside the sphere .
Solution.
- Completing the square, the sphere is : centre , radius , resting on the origin. In spherical coordinates reads , so the sphere is . The cone has , so it is .
- The solid — the scoop of ice cream sitting in the cone — is described by , , . The upper -limit depends on , so must be integrated first:
- Substitute , :
- Sanity check: the whole sphere has volume , and the solid is a substantial part of it (the cone cuts away only the lower rim), so is plausible.
Pitfall. Three separate errors haunt spherical coordinates. The factor is , with the polar angle , never . The range of is , never — a -range of covers the ball twice. And a surface such as is a cone const, not a sphere; a surface such as is a sphere that is not centred at the origin, so its -limit depends on .
12.9Change of variables and the Jacobian
The substitution rule in one variable, with ,
replaces by : the factor is the amount by which stretches a small interval of -values. Polar coordinates replaced by , spherical coordinates replaced by , and in each case the extra factor was the stretching of a small cell. The general theorem makes this precise for any change of coordinates.
Definition 12.62 (Transformation and Jacobian). A transformation from a region of the -plane to the -plane is a map whose component functions have continuous first partial derivatives. The image of is . The Jacobian of is the determinant
To see why the determinant appears, take a small rectangle in the -plane with corner and sides , , and write the transformation as a position vector . The image of the bottom edge of is the curve for , and by the tangent-line approximation its displacement is
and similarly the left edge maps to approximately . So the image of is approximately the parallelogram spanned by and , whose area is . Computing the cross product with the vectors regarded as lying in the -plane of space,
so the image has area approximately . The absolute value of the Jacobian is the local area magnification factor of .
Theorem 12.63 (Change of variables in a double integral). Let be a transformation from onto that is one-to-one except possibly on the boundary of , with continuous partial derivatives and nonzero Jacobian on the interior of . If is continuous on and and are type I or type II regions, then
Proof. The idea, with the full justification left to real analysis. Divide into small rectangles with corners ; their images tile . Approximate by , where and is the area of . By the estimate above, with the Jacobian, so the sum is approximately
which is a Riemann sum for the right-hand side of the theorem. As the partition is refined, both sides converge, and the approximation errors, which are of smaller order than , vanish in the limit.∎
Compare the theorem with the one-variable rule. There the factor is without absolute value, because a decreasing reverses the limits of integration and the two sign changes cancel; here regions have no orientation, so the absolute value is needed. The condition that the Jacobian be nonzero says does not crush any area to zero, so that it can be inverted; one-to-one says no part of is counted twice.
Intuition. Print a map on a rubber sheet and stretch it unevenly. A small square of the original around the point becomes a small parallelogram on the stretched sheet, and the Jacobian at is the ratio of the parallelogram's area to the square's — the local magnification. To find how much ink is on the stretched map, add up ink density times area over the stretched parallelograms, which is the same as adding up ink density times magnification times original area over the squares. That equality of two bookkeeping methods is the change of variables theorem.
Example 12.64 (Polar coordinates as a change of variables). Show that the polar change-of-coordinates theorem is the case , of the change of variables theorem.
Solution.
- With and ,
- Since , , and the theorem gives — the polar formula, with the factor now explained as a Jacobian. The map is one-to-one on the interior of and the Jacobian vanishes only on the edge , which the theorem allows.
Example 12.65 (A rotated square). Evaluate , where is the square with vertices , , and .
Solution.
- The sides of lie on the lines , , and , which suggests the coordinates , . Solving, and .
- The vertices map to , so is the square in the -plane.
- Jacobian:
- The integrand is , so
- Sanity check: with integrand the same computation gives , and is a square of side , area . The Jacobian is right: the square of area is shrunk to area .
Example 12.66 (A trapezoid and an awkward integrand). Evaluate , where is the trapezoid with vertices , , and .
Solution.
- The integrand suggests , , so again , and .
- The vertices map to . The sides of are the segments on (which maps to ), (which maps to ), () and (). So is the trapezoid , , and it must be integrated with inside.
- Then
- Sanity check: has area (a trapezoid with parallel sides and and height ), and on the exponent ranges over , so the integrand lies between and ; the answer must lie between and .
Example 12.67 (Area of an ellipse, and an integral over it). Find the area of the ellipse , and evaluate over the ellipse .
Solution.
- The transformation , maps the unit disk : onto the ellipse, since . Its Jacobian is
a constant: the map magnifies every area by . 2. Hence . With this is the area of a circle. 3. For the second part , , and , so
By the symmetry of the disk, . So the integral is .□
Often the natural new variables are given as functions of and — , say — and solving for and is unpleasant. The Jacobian of the inverse map rescues the situation.
Proposition 12.68 (Jacobian of the inverse transformation). If is one-to-one with nonzero Jacobian, then
Proof. Composing with its inverse gives the identity map, whose Jacobian matrix is the identity. By the chain rule the Jacobian matrix of a composition is the product of the Jacobian matrices, and the determinant of a product is the product of the determinants; so the two Jacobians multiply to .∎
Example 12.69 (A region bounded by hyperbolas and lines). Find the area of the region in the first quadrant bounded by the hyperbolas , and the lines , .
Solution.
- The four boundaries are level curves of and , so in those variables becomes the rectangle .
- Rather than solve for and , compute the inverse Jacobian directly:
- By the proposition, , positive on . Therefore
- Sanity check: solving gives , , and differentiating these directly also yields ; and fits inside the rectangle of area , so an area of about is plausible.
The triple-integral version is identical in form.
Theorem 12.70 (Change of variables in a triple integral). If is a transformation from onto that is one-to-one with continuous partial derivatives and nonzero Jacobian on the interior of , then for continuous on ,
where the Jacobian is the determinant of the matrix of partial derivatives of with respect to .
The justification is the same as in two dimensions: the image of a small box is approximately the parallelepiped spanned by , and , and the volume of a parallelepiped is the absolute value of the determinant of its edge vectors.
Example 12.71 (The spherical volume element as a Jacobian). Compute the Jacobian of the spherical coordinate transformation , , .
Solution.
- The matrix of partial derivatives with respect to is
- Expand along the bottom row. The cofactor is times
and the entry multiplies
- The determinant is , so its absolute value is — the volume element found geometrically in the previous section, now derived by algebra. The sign is negative only because in that order is a left-handed system; listing the variables as gives .
Example 12.72 (Volume of an ellipsoid). Find the volume of the solid ellipsoid .
Solution.
- The map , , sends the unit ball onto the ellipsoid , and its Jacobian is the determinant of the diagonal matrix with entries , namely .
- So .
A sphere is the case . The same idea shows that a linear map with matrix multiplies every volume by , which is the geometric meaning of the determinant.□
Pitfall. Two errors account for most wrong Jacobian answers. First, forgetting the absolute value: a negative Jacobian is normal (it means the map reverses orientation) and the integrand must use . Second, using where is required. When the new variables are given as functions of the old, the Jacobian you can compute directly is the inverse of the one you need — take its reciprocal.
Summary. The double integral is a limit of Riemann sums, and for continuous on Fubini's Theorem evaluates it as either iterated integral; over a type I region the inner limits are functions of and the outer limits are constants, and symmetrically for type II. Area is , and for a lamina of density , with , . The coordinate changes are the formulas to carry away:
for polar, cylindrical and spherical coordinates respectively, with , , and . The surface over , with having continuous partials, has area . All of these are instances of the change of variables theorem: if is one-to-one except possibly on the boundary, has continuous partial derivatives and nonzero Jacobian on the interior of , and is continuous, then
with the absolute value of the Jacobian, and the analogous three-dimensional statement for triple integrals.
- Attaching limits to the wrong variable in an iterated integral. The innermost differential goes with the innermost integral sign and its limits; read as from to inside, from to outside.
- Letting an outer limit depend on a variable. Inner limits may involve outer variables; the outermost limits are always constants. An answer that still contains or signals a region described backwards.
- Reversing the order of integration by swapping the limits without redrawing the region. The limits change shape, not just position: becomes , not .
- Dropping the factor in polar and cylindrical coordinates, or in spherical. The factor is the area or volume of a coordinate cell and is never optional.
- Writing instead of in the spherical volume element, or letting range over . The polar angle runs from to only.
- Confusing the cylindrical radius with the spherical radius . A sphere is in cylindrical coordinates and in spherical.
- Choosing the shadow region by guesswork instead of from the intersection of the bounding surfaces. Setting floor equal to ceiling gives the boundary of the projection.
- Swapping the moments: contains , and . Check every centre of mass against the symmetry of the region.
- Computing surface area as . Surface area uses the stretch factor ; the function value itself never appears.
- Forgetting the absolute value of the Jacobian, or using in place of its reciprocal .
- Treating as . By convention , and regions are described by their -range rather than by negative radii.
- Evaluating a product-form integral as a product when the region is not a rectangle. splits into only when the limits are all constants.