A surface standing over a region of the plane encloses a volume, and nothing in the calculus of one variable says what that volume is or how to compute it.
The previous lesson finished the differential half of the subject: partial derivatives, gradients, tangent planes and extrema, with and without constraints. The other half of calculus is summing. In one variable the integral was defined as the limit of sums of thin rectangles, height times width, as the widths shrink to zero, and the Fundamental Theorem then evaluated it with an antiderivative. This lesson builds the two variable integral the same way, from sums of thin boxes, and then shows that it can be evaluated with nothing more than two single integrals, one inside the other. It assumes the single integral with its substitution rule, and the partial derivative's habit of holding one variable fixed while the other moves.
Volume as a limit of sums
Take a function on the rectangle where and , written , and suppose for the moment that is positive. Cut into equal pieces of width and into pieces of width . The grid lines divide into small rectangles, each of area . Over the small rectangle pick a sample point and erect a box of that base and height . The boxes together approximate the solid under the surface, and their total volume is the double Riemann sum
The double integral of over is the limit of these sums as the grid is refined in both directions, provided the limit exists and is the same for every choice of sample points:
When this is the volume under the surface and above . When takes both signs, the boxes below the plane count negatively, exactly as area below the axis did in one variable. As there, every continuous function on a closed rectangle has a double integral; the proof uses the same uniform continuity argument and is not repeated here.
Take the paraboloid over the square , and use an by grid. Two sample points are natural. The upper right corner of each small square gives the lowest value of on it, because falls as and grow, so that sum underestimates. The centre of each square gives the midpoint sum. A few lines of code produce these:
| Grid | Rectangles | Corner sum | Midpoint sum |
|---|---|---|---|
| 4 | 34.000 | 49.000 | |
| 16 | 41.500 | 48.250 | |
| 64 | 44.875 | 48.0625 | |
| 256 | 46.469 | 48.0156 | |
| 10,000 | 47.759 | 48.0004 | |
| 1,000,000 | 47.976 | 48.000004 |
Both columns close on . The corner sums creep up slowly, their error falling roughly like , and even a million boxes leave them wrong in the second decimal place. The midpoint sums miss by exactly , so doubling the grid quarters the error. What the table cannot do is prove the answer is , and a million evaluations for three figures is poor value. The next section finds the exact value with two ordinary antiderivatives.
Slicing: the iterated integral
Freeze at some value between and and cut the solid with the vertical plane at that . The cut face is the region under the curve for , an ordinary area under a curve, with acting as a constant. Its area is
This is partial integration, the reverse of the partial derivative: integrate in as if were a number. The result is a function of alone.
Now stack the slices. A slab of thickness at position has volume close to , and adding the slabs and letting shrink is a single integral:
The table's is exact. The integral just computed is written with both steps visible,
and called an iterated integral. It is read from the inside out: the inner integral and the inner differential belong together, so runs from to first, and the outer pair, with its limits, is done last. Slicing the other way, at fixed , gives , and then again.
The slicing argument is the method of Bonaventura Cavalieri, who in 1635 compared solids by comparing their cross sections. It is persuasive, but it quietly assumes that the volume defined by boxes and the volume assembled from slices are the same number. That needs a theorem.
Fubini's theorem
The theorem is named after Guido Fubini, who proved a general form of it in 1907. For continuous functions on a rectangle it says:
If is continuous on , then
The reason is visible in the Riemann sum. Choose the sample points on a grid, , and add the boxes column by column rather than all at once. The -th column contributes , and the bracket is a Riemann sum for the slice area . Adding the columns then gives a Riemann sum for . Adding row by row instead gives the other order. A finite sum can be added in any order, so the only work in the proof is showing that both approximations become good at the same time as the grid is refined, and for a continuous function uniform continuity supplies exactly that.
The hypothesis is not decoration. On the square take , which is continuous everywhere except the corner , where it blows up. Because , the inner integral in is , and then . Swapping the roles of and changes the sign of , so the other order gives . Two orders, two answers, and neither is the double integral, which does not exist: the function is unbounded, and the Riemann sums near the corner can be made as large as desired of either sign.
For continuous functions, the practical content of the theorem is freedom. The order of integration can be chosen to make the antiderivatives easy.
Example. Evaluate over .
Integrating first in needs integration by parts and leaves a function of with terms that is awkward to integrate next. Integrating first in is immediate, because is exactly the factor the chain rule produces: . So
and then
A midpoint sum on a grid gives , agreeing to six figures.
Now you. Evaluate over , to three decimal places. Choose the order first.
Answer
Integrate in first, since is the factor produces: . Then . A midpoint sum on a grid gives .
Regions between two curves
Few regions of interest are rectangles. For a bounded region , enclose it in a rectangle and define to equal on and outside it. Then is defined as : the boxes outside contribute nothing. jumps at the edge of , so it is not continuous, but when the edge is made of graphs of continuous functions the jump does no harm. The double integral still exists, and a stronger form of Fubini's theorem still turns it into an iterated integral.
Two shapes of region cover most cases. A region of the first type lies between two curves in : it is described by and . On the vertical line at a fixed , is zero except between and , so the inner integral only runs over that stretch:
A region of the second type lies between two curves in , described by and , and its integral is . In both, the outer limits are constants and the inner limits may depend on the outer variable, never the other way round, because the outer variable is the one held fixed while the inner one sweeps.
The limits come from a description of the region, which is usually given in words. Take "the region enclosed by the parabola and the line ". The curves meet where , at and , so runs from to . Between those values one curve lies above the other throughout, and testing shows which: the line gives , the parabola . So the region is , . It is also of the second type: solving each curve for gives on the line and on the parabola, and at a height between and the line is on the left, so .
Example. Evaluate over the region enclosed by and .
As a region of the first type, the inner integral holds fixed:
and then . As a check, the second type gives as well. A midpoint sum with columns, each cut into pieces between the curves, gives .
Now you. Evaluate over the region enclosed by the parabola and the line . Which type makes it one integral rather than two?
Answer
The curves meet where , at and , and at the line () is to the right of the parabola (). So the region is , , of the second type, and . As the first type the lower edge changes formula at , from to , forcing two integrals.
Reversing the order
Sometimes the order a problem arrives in cannot be done at all. Consider
The inner integral asks for an antiderivative of , and there is none among the elementary functions: Joseph Liouville's theory of integration in finite terms, developed in the 1830s, proves that no combination of powers, exponentials, logarithms and trigonometric functions differentiates to it.
Reversing the order means reading the region off the limits and describing it the other way. The limits say and : at each height , runs from the diagonal to the vertical line . That is the triangle with corners , and . Described as a region of the first type, runs from to , and on the vertical line at the triangle stretches from the bottom edge up to the diagonal . So
because is constant in and the inner integral just multiplies it by the length . That factor is exactly what the substitution needs, and
The original order can still be computed numerically, since only the antiderivative is missing, not the integral. A midpoint sum in the order given, values of and for each one points from to , gives , against the exact . Fubini's theorem turned an integral that has no formula in one order into a substitution in the other.
Area, average value and mass
Integrating the constant over builds boxes of height , whose volume equals the area of their base, so
For the region between and this is , the familiar area between two curves recovered as a special case.
The average value of over is defined as in one variable, the total divided by the size: . It is the height of the flat-topped solid on the same base with the same volume. For the paraboloid over it is , between the value at the corner and at the corner .
A thin plate whose density , in kilograms per square metre, varies from point to point has mass by the same summing: a small rectangle near has mass about , and in the limit . Its average density is the mass divided by the area.
Example. A plate occupies the region between the parabola and the line , with lengths in metres and density kilograms per square metre. Find its area, mass and average density.
The curves meet at , and the line is on top, so , . The area is square metres. For the mass, , and , about kg. The average density is kilograms per square metre, above the plain average of over (which is ) because the plate is wider near the top, where it is denser. A midpoint sum on columns of pieces gives .
Now you. A plate occupies the region under and above the -axis for , with density kilograms per square metre. Find the mass to four decimal places, and the average density.
Answer
The inner integral is , and kg, using . The area is , so the average density is kilograms per square metre.
A disc in the wrong coordinates
Every region so far has had edges that were easy to write as in terms of or in terms of . The unit disc, , is of both types, and in both it is awkward: and . Even its area, , needs a trigonometric substitution to reach . For over the disc, the inner integral is between square roots, which has no elementary antiderivative, and here reversing the order does not help, since the disc looks the same either way.
The problem is not the function but the grid. Rectangles in and are the wrong pieces for a round region; a disc is naturally described by a distance from the centre and an angle. The next lesson cuts the plane along circles and rays instead, works out the area of the small pieces those cuts produce, and with them evaluates this integral and one that single variable calculus could not reach.