Survey of Mathematics

6.3 Multiple integrals

The double integral is built from rectangles and step functions by squeezing, exactly as the one-variable integral was. Continuous functions are integrable, Fubini's theorem turns a double integral into two single ones, regions bounded by curves are handled by extending the function by zero, and the same ideas give areas, volumes, masses, moments and triple integrals.

Taught in 375/376Apostol, not taughtBeyond the courseApostol Vol. 2, 11.1 to 11.18MATH 376 Weeks 3 and 4: worksheets 6 to 10, 15 and 27, homework 3 and 4, Midterm 1 problems 2 and 4, practice Midterm 1, Final problems 2, 5(a) and 6(a), practice Final problem 5Fubini, Sugli integrali multipli (1907); Jordan, Remarques sur les integrales definies (1892)

How much sand is in a heap whose height at the point (x,y)(x, y) is f(x,y)f(x, y)? In one variable (1.5) the answer to ‘area under a curve’ was a squeeze between rectangles. Here the rectangles become boxes standing on a grid, the squeeze is the same, and the new questions are real ones: which functions can be integrated at all, how to evaluate by two integrals one after the other, how to integrate over a disc or a triangle rather than a rectangle, and what changes in three dimensions.

Before you start

1.1: the supremum and infimum. 1.5: step functions and the one-variable integral. 4.3: a continuous function on a compact set is uniformly continuous. 1.6: pointwise and uniform convergence.

Quick checkLL is the supremum (least upper bound) of a set AA of numbers and ε>0\varepsilon > 0. Which statement is true?
Quick checkA function on [0,1][0, 1] equals 11 at rational points and 00 at irrational points. Is it integrable?
Quick checkA continuous function on a closed rectangle is uniformly continuous. Why does this need 'closed and bounded'?

The picture: boxes over a region

Pick the unit disc and f=1f = 1, and slide nn up. The green cells lie completely inside the region; the orange cells are the ones the boundary passes through. The lower sum counts only the green boxes, the upper sum also counts the orange ones. Their difference is the orange area, which shrinks as the grid gets finer, because the boundary is a curve and a curve has no area. That is the whole idea of the chapter, with the pictures still on the table.

The idea, in words

To integrate ff over a rectangle QQ, cut QQ into a grid. On each cell, put the lowest box that fits under ff and the highest box that fits over it. Add the volumes of all the boxes. If lower boxes and upper boxes can be made to differ by as little as we please, there is exactly one number between all lower totals and all upper totals, and that number is the integral. The rest is about three questions. Which functions pass this test? How do we compute? And how do we deal with a region that is not a rectangle?

Why· Why the same idea works for regions that are not rectangles

If SS is a disc, put it inside a rectangle and define ff to be 00 outside SS. The only cells where the extended function can jump from its value to 00 are the cells the boundary passes through. If the boundary can be covered by finitely many rectangles of total area as small as we like, those cells cost almost nothing, and the integral over SS exists. A set with that property has content zero, and every graph of a continuous function does. This is the green-and-orange picture above.

Where this came from· Cauchy, Riemann, Jordan and Fubini

Cauchy, in his lectures of 1823, defined the integral of a continuous function as a limit of sums over partitions of an interval. Riemann, in his habilitation essay of 1854 (published after his death, through Dedekind), allowed the sample point in each piece to be arbitrary and asked exactly which functions have an integral. For several variables, Camille Jordan in 1892 (‘Remarques sur les integrales definies’) introduced a class of sets, now said to have Jordan content, over which the Riemann integral makes sense; his definition covers a set by finitely many rectangles from outside and from inside, which is the content-zero idea of this chapter. And the rule that a double integral can be computed as two single ones, in either order, is named after Guido Fubini, who proved it in 1907 (Sugli integrali multipli) for Lebesgue integrable functions; Leonida Tonelli proved the version for non-negative functions in 1909. Special cases, such as Cavalieri’s principle (slice a solid and add the slices) were known centuries earlier. Euler (1769) was the first to study how a double integral changes under a change of variables, a story taken up in 6.4.

Step functions on a rectangle

A rectangle is Q=[a,b]×[c,d]Q = [a, b] \times [c, d]. A partition of QQ is a pair of partitions of the sides (1.5), a=x0<⋯<xr=ba = x_0 < \dots < x_r = b and c=y0<⋯<ys=dc = y_0 < \dots < y_s = d; the grid lines cut QQ into rsrs closed cells, and the open subrectangles are (xi,xi+1)×(yj,yj+1)(x_{i}, x_{i+1}) \times (y_{j}, y_{j+1}) with the edges left out. Two partitions have a common refinement: use all the cut points of both.

Definition T

Step function on a rectangle

A function s:Q→Rs: Q \to \mathbb R is a step function if there is a partition of QQ such that ss equals a constant cijc_{ij} on the open subrectangle (xi,xi+1)×(yj,yj+1)(x_i, x_{i+1}) \times (y_j, y_{j+1}). The values on the grid lines are not constrained. Its integral is

∬Qs=∑i,jcij (xi+1−xi)(yj+1−yj).\iint_Q s = \sum_{i, j} c_{ij}\,(x_{i+1} - x_i)(y_{j+1} - y_j).

In words: for each piece, value times area, then add. Geometrically it is the volume of a stack of boxes.

In one lineA function s:Q→Rs: Q \to \mathbb R for which some partition of QQ makes ss constant on every open subrectangle; its integral is the sum of (value) times (area) over the pieces.

Why it existsStep functions are the stacks of boxes whose volume nobody doubts, so every other integral is defined by squeezing between them.

Proposition T MATH 376 lecture Remark 4.3; Apostol 11.3

The integral of a step function does not depend on the partition

If two partitions of QQ both make the step function ss constant on every open subrectangle, they give the same value of ∑cij areaij\sum c_{ij}\,\text{area}_{ij}.

In one lineTwo partitions that both make ss constant on every open piece give the same sum.

Why it is trueWithout it, 'the integral of a step function' would depend on the choice of grid, and nothing built on it would make sense.

ProofMATH 376 lecture Remark 4.3
The idea: Adding one cut line does not change the sum, because a piece with value c and width w split into widths w1 and w2 gives c w1 h plus c w2 h, which is c w h. Both partitions reach their common refinement by adding cuts.
The piece contributes c w hc\,w\,h.
This is the definition of the integral, for one piece of width ww and height hh with value cc.
Cut the piece at an inner point of its width into widths w1w_1 and w2w_2 with w1+w2=ww_1 + w_2 = w. Both new pieces still have value cc.
A step function stays constant, with the same value cc, on a smaller open piece inside a piece where it was constant.
The two new terms are cw1h+cw2h=c(w1+w2)h=cwhcw_1h + cw_2h = c(w_1 + w_2)h = cwh: the sum did not change.
Factor out chch and use w1+w2=ww_1 + w_2 = w.
So adding any single cut line leaves the sum unchanged, and adding many cuts one at a time leaves it unchanged.
A cut in the height direction works the same way, with h1+h2=hh_1 + h_2 = h.
Each of the two given partitions reaches the common refinement by adding cuts, so each gives the sum for the common refinement, and so they give the same sum. ■\blacksquare
The common refinement contains every cut of both partitions.
Theorem T MATH 376 homework 3 problem 2; Apostol 11.3

Linearity, additivity and monotonicity of step integrals

Let ss and tt be step functions on the same rectangle QQ. (a) For real numbers c1,c2c_1, c_2, the function c1s+c2tc_1s + c_2t is a step function and ∬Q(c1s+c2t)=c1∬Qs+c2∬Qt\iint_Q(c_1s + c_2t) = c_1\iint_Qs + c_2\iint_Qt. (b) If a vertical or horizontal line cuts QQ into rectangles Q1Q_1 and Q2Q_2, then ∬Qs=∬Q1s+∬Q2s\iint_Qs = \iint_{Q_1}s + \iint_{Q_2}s. (c) If s≤ts \le t at every point, then ∬Qs≤∬Qt\iint_Qs \le \iint_Qt.

In one lineFor step functions s,ts, t on the same QQ: ∬(c1s+c2t)=c1∬s+c2∬t\iint(c_1s + c_2t) = c_1\iint s + c_2\iint t; ∬Qs=∬Q1s+∬Q2s\iint_Q s = \iint_{Q_1}s + \iint_{Q_2}s if a line cuts QQ into Q1Q_1 and Q2Q_2; and s≤ts \le t implies ∬s≤∬t\iint s \le \iint t.

Why it is trueThese are the three properties used in every sandwich argument: combine two step functions, split a rectangle, and compare.

ProofMATH 376 homework 3 problem 2
The idea: Take the common refinement of the two partitions. On each open piece both functions are constants, so everything becomes a statement about finite sums.
Let PP be the common refinement of partitions for ss and tt, with pieces RijR_{ij} of area AijA_{ij}, and values sij,tijs_{ij}, t_{ij}.
By the proposition above, we may compute both integrals with the same partition.
(a) On RijR_{ij} the function c1s+c2tc_1s + c_2t is the constant c1sij+c2tijc_1s_{ij} + c_2t_{ij}, so it is a step function.
A linear combination of constants is a constant, so the same partition works.
∬(c1s+c2t)=∑(c1sij+c2tij)Aij=c1∑sijAij+c2∑tijAij\iint(c_1s + c_2t) = \sum(c_1s_{ij} + c_2t_{ij})A_{ij} = c_1\sum s_{ij}A_{ij} + c_2\sum t_{ij}A_{ij}.
Split one sum into two, and pull the constants out of the sums.
(b) Add the cut line to PP. The sum over all pieces splits into the sum over pieces in Q1Q_1, which is ∬Q1s\iint_{Q_1}s, plus the sum over pieces in Q2Q_2.
Adding the cut line to the partition does not change the integral (the proposition), and then every piece lies in Q1Q_1 or Q2Q_2.
(c) If s≤ts \le t everywhere, then sij≤tijs_{ij} \le t_{ij} and sijAij≤tijAijs_{ij}A_{ij} \le t_{ij}A_{ij} for every piece; adding gives ∬s≤∬t\iint s \le \iint t. ■\blacksquare
On a piece both functions are constant, so s≤ts \le t at one point of the piece gives sij≤tijs_{ij} \le t_{ij}. Areas are non-negative.
Worked example MATH 376 worksheet 6, partitioned rectangles
Let R=[0,2]2R = [0, 2]^2. A function ff equals 33 on [0,1)×[0,2)[0, 1) \times [0, 2), equals 55 on [1,2]×[0,1)[1, 2] \times [0, 1) and equals 11 on [1,2]×[1,2][1, 2] \times [1, 2]. Compute ∬Rf\iint_R f.

Solution.

  1. Recognize a step function. The grid lines x=0,1,2x = 0, 1, 2 and y=0,1,2y = 0, 1, 2 make ff constant on each piece. The values on the cut lines do not matter.
  2. Left strip. Value 33, area (1−0)(2−0)=2(1 - 0)(2 - 0) = 2, term 66.
  3. Bottom right. Value 55, area 11, term 55.
  4. Top right. Value 11, area 11, term 11.
  5. Add. 6+5+1=126 + 5 + 1 = 12. Value times area, summed over the pieces.

Answer. 1212.

Worked example MATH 376 worksheet 6, indicator sums
Let R1=[0,2]×[1,3]R_1 = [0, 2] \times [1, 3], R2=[1,3]×[0,2]R_2 = [1, 3] \times [0, 2], and g=4IR1−2IR2g = 4I_{R_1} - 2I_{R_2} on [0,3]2[0, 3]^2, where IRI_R is 11 on RR and 00 off it. Compute ∬g\iint g by linearity and again as one step function.

Solution.

  1. By linearity. Each indicator is a step function and ∬IR\iint I_R is the area of RR. Both rectangles have sides 22 and 22, so area 44. So ∬g=4⋅4−2⋅4=8\iint g = 4\cdot4 - 2\cdot4 = 8.
  2. As one step function. The rectangles overlap in [1,2]×[1,2][1, 2] \times [1, 2]. There both indicators are 11, so the values add: g=4−2=2g = 4 - 2 = 2. The trap is overlap: letting the last rectangle win instead of adding the values gives a different number.
  3. List the pieces. R1R_1 only: [0,1]×[1,3][0, 1] \times [1, 3] (value 44, area 22, term 88) and [1,2]×[2,3][1, 2] \times [2, 3] (value 44, area 11, term 44). Both: [1,2]×[1,2][1, 2] \times [1, 2] (value 22, area 11, term 22). R2R_2 only: [1,3]×[0,1][1, 3] \times [0, 1] (value −2-2, area 22, term −4-4) and [2,3]×[1,2][2, 3] \times [1, 2] (value −2-2, area 11, term −2-2).
  4. Add. 8+4+2−4−2=88 + 4 + 2 - 4 - 2 = 8.

Answer. 88 both ways.

Worked example MATH 376 worksheet 6, floor function
Compute ∬[0,2]2(⌊x⌋+⌊y⌋) dA\iint_{[0, 2]^2}(\lfloor x \rfloor + \lfloor y \rfloor)\,dA, where ⌊u⌋\lfloor u \rfloor is the largest integer not above uu.

Solution.

  1. Find the pieces. The floor is constant on each interval [n,n+1)[n, n + 1), so ⌊x⌋+⌊y⌋\lfloor x \rfloor + \lfloor y \rfloor is constant on each unit square of the grid with cuts at 0,1,20, 1, 2. It is a step function.
  2. Values. On (0,1)×(0,1)(0, 1) \times (0, 1): 0+0=00 + 0 = 0. On (1,2)×(0,1)(1, 2) \times (0, 1): 1+0=11 + 0 = 1. On (0,1)×(1,2)(0, 1) \times (1, 2): 0+1=10 + 1 = 1. On (1,2)×(1,2)(1, 2) \times (1, 2): 1+1=21 + 1 = 2. Read ⌊x⌋+⌊y⌋\lfloor x \rfloor + \lfloor y \rfloor, not ⌊x+y⌋\lfloor x + y \rfloor.
  3. Add the terms. Each piece has area 11, so the integral is 0+1+1+2=40 + 1 + 1 + 2 = 4. The jumps on the lines x=1x = 1 and y=1y = 1 do not matter: those lines have no area.

Answer. 44.

Integrable functions

Definition T

Double integral

Let f:Q→Rf: Q \to \mathbb R be bounded, so ∣f∣<C|f| < C for some CC. Then the constant step functions −C-C and CC lie below and above ff, so both of the following sets are non-empty:

I‾(f)=sup⁡{∬Qs:s a step function, s≤f},I‾(f)=inf⁡{∬Qt:t a step function, t≥f}.\underline{I}(f) = \sup\Big\{\iint_Qs : s \text{ a step function},\ s \le f\Big\}, \qquad \overline{I}(f) = \inf\Big\{\iint_Qt : t \text{ a step function},\ t \ge f\Big\}.

By monotonicity, if s≤f≤ts \le f \le t then ∬s≤∬t\iint s \le \iint t, so I‾(f)≤I‾(f)\underline{I}(f) \le \overline{I}(f) always. The function ff is integrable on QQ if I‾(f)=I‾(f)\underline{I}(f) = \overline{I}(f); the common value is the double integral ∬Qf\iint_Qf (or ∬Qf dA\iint_Qf\,dA, or ∬Qf(x,y) dx dy\iint_Qf(x, y)\,dx\,dy). For f≥0f \ge 0 it is the volume of the solid under the graph.

In one lineFor a bounded ff on a rectangle QQ, the lower integral is the supremum of ∬s\iint s over step functions s≤fs \le f, the upper integral is the infimum of ∬t\iint t over step functions t≥ft \ge f; if they are equal, ff is integrable and the common value is ∬Qf\iint_Q f.

Why it existsIt defines the volume under a graph as the only number that no stack of boxes below can exceed and no stack of boxes above can undercut.

Integrable means one equation between two numbers. It does not say that some step function equals ff, nor that a best lower step function and a best upper step function exist.

Quick checkA function f:[0,1]2→Rf: [0, 1]^2 \to \mathbb R is bounded. Which statement is correct?
Worked example MATH 376 Final problem 6(a), lost 1 point; see [A.4](/vol2/a4-final/) and [A.1](/vol2/a1-what-you-lost-points-on/)
True or false: every bounded function f:[0,1]2→Rf: [0, 1]^2 \to \mathbb R is integrable. If false, give a counterexample.

Solution.

  1. State the answer. False. ‘The volume under a bounded function is finite so its integral is defined’ is not an argument: finiteness of the bounds is not equality of the lower and upper integrals.
  2. Define the function. f(x,y)=1f(x, y) = 1 if both xx and yy are rational, and f(x,y)=0f(x, y) = 0 otherwise. It satisfies 0≤f≤10 \le f \le 1, so it is bounded.
  3. Every open piece has both kinds of points. Between any two real numbers there is a rational and an irrational number, so every open subrectangle contains a point with both coordinates rational and a point with an irrational coordinate.
  4. Lower integral. If s≤fs \le f has value sijs_{ij} on a piece, evaluating at a point of the piece with an irrational coordinate gives sij≤0s_{ij} \le 0. So ∬s=∑sijAij≤0\iint s = \sum s_{ij}A_{ij} \le 0. The zero function is below ff, so I‾(f)=0\underline{I}(f) = 0.
  5. Upper integral. If t≥ft \ge f has value tijt_{ij} on a piece, evaluating at a point with both coordinates rational gives tij≥1t_{ij} \ge 1. So ∬t≥∑Aij=area(Q)=1\iint t \ge \sum A_{ij} = \text{area}(Q) = 1. The constant function 11 is above ff, so I‾(f)=1\overline{I}(f) = 1.
  6. Compare. 0≠10 \ne 1.

Answer. ff is bounded and not integrable: I‾(f)=0≠1=I‾(f)\underline{I}(f) = 0 \ne 1 = \overline{I}(f).

The epsilon-sandwich

The definition uses a supremum and an infimum, which are hard to compute with. The working form is the following.

Theorem T MATH 376 lecture 4.2; Apostol 11.5

Epsilon-sandwich criterion for the double integral

Let f:Q→Rf: Q \to \mathbb R be bounded. Then ff is integrable if and only if for every ε>0\varepsilon > 0 there exist step functions s≤f≤ts \le f \le t on QQ with ∬Q(t−s)<ε\iint_Q(t - s) < \varepsilon. The pair (s,t)(s, t) may change with ε\varepsilon.

In one lineA bounded ff on QQ is integrable if and only if for every ε>0\varepsilon > 0 there are step functions s≤f≤ts \le f \le t with ∬Q(t−s)<ε\iint_Q(t - s) < \varepsilon.

Why it is trueIt replaces 'sup equals inf' by a statement you can check by building two step functions, and it is the first line of almost every integrability proof.

ProofMATH 376 lecture 4.2
The idea: Forward: use the definition of sup and inf to get a lower step function almost as large as the integral and an upper one almost as small. Backward: the gap between the upper and lower integrals is trapped inside a gap smaller than every positive number.
(⇒\Rightarrow) Suppose ff is integrable, with common value II, and fix ε>0\varepsilon > 0.
We must produce ss and tt for this one ε\varepsilon: we choose ε\varepsilon first and the step functions second.
Some step function s≤fs \le f has ∬s>I−ε/2\iint s > I - \varepsilon/2.
II is the supremum of the lower set, so I−ε/2I - \varepsilon/2 is not an upper bound of it (quiz at the start of the chapter).
Some step function t≥ft \ge f has ∬t<I+ε/2\iint t < I + \varepsilon/2.
II is the infimum of the upper set, so I+ε/2I + \varepsilon/2 is not a lower bound of it.
∬(t−s)=∬t−∬s<(I+ε/2)−(I−ε/2)=ε\iint(t - s) = \iint t - \iint s < (I + \varepsilon/2) - (I - \varepsilon/2) = \varepsilon.
Linearity of the step integral (t−st - s is a step function), then replace each integral by its bound.
(⇐\Leftarrow) For any ε\varepsilon and its pair, ∬s≤I‾(f)≤I‾(f)≤∬t\iint s \le \underline{I}(f) \le \overline{I}(f) \le \iint t.
Suppose a pair exists for every ε\varepsilon. A sup is at least every member of its set, and an inf is at most every member of its set.
So 0≤I‾(f)−I‾(f)≤∬t−∬s<ε0 \le \overline{I}(f) - \underline{I}(f) \le \iint t - \iint s < \varepsilon.
Subtract: the gap between the two integrals is trapped inside the gap between the two step integrals.
The non-negative number I‾(f)−I‾(f)\overline{I}(f) - \underline{I}(f) is below every ε>0\varepsilon > 0, so it is 00 and ff is integrable. ■\blacksquare
Only 00 is below every positive number.
Proof workshopGive the reason for each line: the epsilon-sandwich criterion, forward directionMATH 376 lecture 4.2

Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.

  1. Let I=I‾(f)=I‾(f)I = \underline{I}(f) = \overline{I}(f) and fix ε>0\varepsilon > 0.
  2. Choose a step function s≤fs \le f with ∬s>I−ε/2\iint s > I - \varepsilon/2.
  3. Choose a step function t≥ft \ge f with ∬t<I+ε/2\iint t < I + \varepsilon/2.
  4. ∬(t−s)=∬t−∬s\iint(t - s) = \iint t - \iint s.
  5. ∬t−∬s<ε\iint t - \iint s < \varepsilon.
Worked example MATH 376 Midterm 1 problem 4(b), lost 1 point of 3; see [A.2](/vol2/a2-midterm-1/) and [A.1](/vol2/a1-what-you-lost-points-on/)
Let Q=[a,b]×[c,d]Q = [a, b] \times [c, d] and f:Q→[0,1]f: Q \to [0, 1] be integrable. Prove that for every ε>0\varepsilon > 0 there are step functions s≤f≤ts \le f \le t with t(x,y)≤2t(x, y) \le 2 for all (x,y)(x, y) and ∬Q(t−s)<ε\iint_Q(t - s) < \varepsilon.

Solution.

  1. Fix ε>0\varepsilon > 0 first. The claim is ‘for every ε\varepsilon there exist’, so ε\varepsilon is chosen first and the functions are built afterwards. They may depend on ε\varepsilon.
  2. Get a pair from integrability. ff is bounded (its values lie in [0,1][0, 1]) and integrable, so by the criterion there are step functions s≤f≤Ts \le f \le T with ∬(T−s)<ε\iint(T - s) < \varepsilon. TT is the upper function that integrability gives. Nothing says T≤2T \le 2, so we are not finished.
  3. Repair the upper function. Define t=min⁡(2,T)t = \min(2, T). TT with every value above 22 replaced by 22.
  4. tt is a step function. Take a partition on which TT is constant on each open piece; there t=min⁡(2,that constant)t = \min(2, \text{that constant}) is also constant. The minimum of two constants is a constant, so the same partition works.
  5. t≥ft \ge f. We have f≤Tf \le T by the choice of TT and f≤1≤2f \le 1 \le 2 by the range of ff, so f≤min⁡(2,T)=tf \le \min(2, T) = t. A number below two numbers is below their minimum.
  6. t≤2t \le 2 and t≤Tt \le T. A minimum is at most each of its arguments.
  7. The gap. t−s≤T−st - s \le T - s pointwise, and both are step functions, so by monotonicity ∬(t−s)≤∬(T−s)<ε\iint(t - s) \le \iint(T - s) < \varepsilon.

Answer. The step functions ss and t=min⁡(2,T)t = \min(2, T) satisfy s≤f≤t≤2s \le f \le t \le 2 and ∬(t−s)<ε\iint(t - s) < \varepsilon.

Watch out· Why 'the biggest step function below f' does not exist

On the 376 midterm, a student wrote that if ff is integrable, then ‘the biggest of all the step functions smaller than it is equal to the smallest of all the step functions greater than it’, called them ss and tt, and concluded t=s≤f≤1t = s \le f \le 1. That is wrong twice. First, such extreme step functions need not exist: integrable says that two numbers (a sup and an inf) are equal, and a supremum does not have to be attained by any step function. Second, equal numbers do not make equal functions. Take f(x,y)=xf(x, y) = x on [0,1]2[0, 1]^2: on any piece a step function below ff is at most the left edge of the piece and one above is at least the right edge, so t−s≥t - s \ge the width of the piece on every piece, and ∬(t−s)>0\iint(t - s) > 0 for every pair. Only the infimum of those integrals is 00. The integral of the gap gets small and is never zero. Hence the habit: write the quantifiers first, ‘Fix ε>0\varepsilon > 0. I must produce ss and tt’, then produce them, then check each required property on its own line.

Proof workshopRebuild the solution of Midterm 1 problem 4(b)MATH 376 Midterm 1 problem 4(b)

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Worked example MATH 376 practice Midterm 1 problem 4(b); see [A.5](/vol2/a5-practice-exams/)
    Let f,g:Q→Rf, g: Q \to \mathbb R be integrable. Prove that h=f+gh = f + g is integrable.

    Solution.

    1. Bounded. If ∣f∣<Cf|f| < C_f and ∣g∣<Cg|g| < C_g then ∣f+g∣<Cf+Cg|f + g| < C_f + C_g. The criterion applies only to bounded functions.
    2. Fix ε>0\varepsilon > 0. Choose step functions sf≤f≤tfs_f \le f \le t_f with ∬(tf−sf)<ε/2\iint(t_f - s_f) < \varepsilon/2 and sg≤g≤tgs_g \le g \le t_g with ∬(tg−sg)<ε/2\iint(t_g - s_g) < \varepsilon/2. We use ε/2\varepsilon/2 so that the two errors add up to ε\varepsilon.
    3. Add. sh=sf+sgs_h = s_f + s_g and th=tf+tgt_h = t_f + t_g are step functions (use the common refinement), and adding the inequalities gives sh≤h≤ths_h \le h \le t_h.
    4. The gap. By linearity ∬(th−sh)=∬(tf−sf)+∬(tg−sg)<ε/2+ε/2=ε\iint(t_h - s_h) = \iint(t_f - s_f) + \iint(t_g - s_g) < \varepsilon/2 + \varepsilon/2 = \varepsilon.

    Answer. Since ε\varepsilon was arbitrary, hh is integrable by the criterion.

    Which functions are integrable?

    Theorem T MATH 376 lecture Thm 4.8; Apostol 11.10

    Continuous functions on a rectangle are integrable

    If f:Q→Rf: Q \to \mathbb R is continuous on the closed rectangle QQ, then ff is integrable on QQ.

    In one lineIf ff is continuous on a closed rectangle QQ, then ff is integrable on QQ.

    Why it is trueIt covers almost every function you will ever integrate by writing a formula, and its proof is the first use of uniform continuity.

    ProofMATH 376 lecture Thm 4.8
    The idea: Cut Q into cells so small that f hardly changes on a cell, by uniform continuity. Use the least and greatest value on each cell as the lower and upper step functions.
    Let η>0\eta > 0 and put ε=η/area(Q)\varepsilon = \eta/\text{area}(Q).
    We want the final gap to be below η\eta; it will be at most ε\varepsilon times the area. (If the area is 00, every step integral is 00 and there is nothing to prove.)
    There is δ>0\delta > 0 with ∣f(x)−f(y)∣<ε|f(x) - f(y)| < \varepsilon whenever ∥x−y∥∞<δ\lVert x - y \rVert_\infty < \delta.
    QQ is closed and bounded, hence compact, so a continuous ff is uniformly continuous on it (4.3). One δ\delta works for the whole of QQ; this step fails for continuous functions on open sets, such as 1/(xy)1/(xy) on (0,1)2(0, 1)^2.
    Choose a partition of QQ into cells with width and height less than δ\delta.
    Any two points of one cell are less than δ\delta apart in the maximum norm.
    On each closed cell RkR_k let mkm_k and MkM_k be the least and greatest values of ff; then Mk−mk<εM_k - m_k < \varepsilon.
    Extreme value theorem (4.3): a continuous function on a compact cell attains its least and greatest values at two points of the cell.
    Put s=mks = m_k and t=Mkt = M_k on the open cell inside RkR_k, and s=−Cs = -C, t=Ct = C on the grid lines. Then s≤f≤ts \le f \le t.
    These are step functions for the partition. The values on cut lines are free, so we make them harmless: ∣f∣<C|f| < C and ∓C\mp C lie below and above.
    ∬(t−s)=∑k(Mk−mk) area(Rk)<ε area(Q)=η\iint(t - s) = \sum_k(M_k - m_k)\,\text{area}(R_k) < \varepsilon\,\text{area}(Q) = \eta.
    The cut lines add nothing, and the cell areas add up to the area of QQ.
    A sandwich with gap below η\eta exists for every η>0\eta > 0, so ff is integrable. ■\blacksquare
    The criterion with η\eta in place of ε\varepsilon.

    Continuous is too strong: we want to integrate a function that is 11 on a disc and 00 outside, which jumps along a circle. The tool is a way to say that a set has no area.

    Definition T

    Content zero

    A set S⊂R2S \subset \mathbb R^2 has content zero if for every ε>0\varepsilon > 0 there are finitely many open rectangles R1,…,RKR_1, \dots, R_K with S⊂R1∪⋯∪RKS \subset R_1 \cup \dots \cup R_K and area(R1)+⋯+area(RK)≤ε\text{area}(R_1) + \dots + \text{area}(R_K) \le \varepsilon.

    In one lineA set S⊂R2S \subset \mathbb R^2 has content zero if for every ε>0\varepsilon > 0 it can be covered by finitely many open rectangles of total area at most ε\varepsilon.

    Why it existsIt is the right notion of 'too small to matter' for the Riemann integral: a function that is bounded and discontinuous only on a set of content zero is integrable.

    A single point has content zero (cover it by a square of side ε/2\sqrt\varepsilon/2), and a finite union of sets of content zero has content zero (use ε/m\varepsilon/m for each of mm sets). The word finite is needed: the set of rational points of [0,1]2[0, 1]^2 is a countable union of points, yet it cannot be covered by finitely many rectangles of small total area, because a point of the square outside all the rectangles and off their edges would have a small disc around it missing the rectangles, and that disc contains a rational point.

    Lemma T MATH 376 worksheet 7 problem 6; Apostol 11.9

    The graph of a continuous function has content zero

    Let φ:[a,b]→R\varphi: [a, b] \to \mathbb R be continuous with a<ba < b. Then the graph of φ\varphi has content zero. The same holds for a graph x=ψ(y)x = \psi(y).

    In one lineIf φ:[a,b]→R\varphi: [a, b] \to \mathbb R is continuous, its graph {(x,φ(x))}\{(x, \varphi(x))\} has content zero.

    Why it is trueIt shows that regions bounded by graphs of continuous functions have boundaries that cost nothing, which is why they have an area.

    ProofMATH 376 worksheet 7 problem 6
    The idea: Uniform continuity: over a short interval the function barely moves, so the graph over that interval sits in a thin box. Add up the thin boxes.
    Let ε>0\varepsilon > 0 and κ=ε/(2(b−a))\kappa = \varepsilon/(2(b - a)).
    Each box will have height below κ\kappa and the total width is b−ab - a, so the total area is below κ(b−a)=ε/2\kappa(b - a) = \varepsilon/2. The other ε/2\varepsilon/2 pays for making the boxes open.
    Pick δ>0\delta > 0 with ∣x−y∣<δ⇒∣φ(x)−φ(y)∣<κ/2|x - y| < \delta \Rightarrow |\varphi(x) - \varphi(y)| < \kappa/2.
    φ\varphi is continuous on the closed interval [a,b][a, b], hence uniformly continuous.
    Cut [a,b][a, b] into nn intervals I1,…,InI_1, \dots, I_n of width Δ=(b−a)/n<δ\Delta = (b - a)/n < \delta.
    Equal widths make the area count easy.
    The graph over IjI_j lies in a rectangle of width about Δ\Delta and height less than κ\kappa.
    Any two points of IjI_j are within Δ<δ\Delta < \delta, so any two values of φ\varphi on IjI_j differ by less than κ/2\kappa/2. Enlarging slightly makes the box open.
    The total area is at most nΔκ=ε/2n\Delta\kappa = \varepsilon/2, plus at most ε/2\varepsilon/2 for the enlargements. So the graph has content zero. ■\blacksquare
    nΔ=b−an\Delta = b - a; the enlargement can be made as small as we like.
    Theorem T MATH 376 lecture Thm 4.15; Apostol 11.11

    Bounded with discontinuities of content zero is integrable

    Let f:Q→Rf: Q \to \mathbb R be bounded and let DD be the set of points of QQ where ff is not continuous. If DD has content zero, then ff is integrable on QQ.

    In one lineIf ff is bounded on a rectangle QQ and the set of points where ff is not continuous has content zero, then ff is integrable on QQ.

    Why it is trueIt is the theorem that makes the integral over a disc, a triangle or a region between curves exist.

    ProofMATH 376 lecture Thm 4.15
    The idea: Cover D by thin rectangles and use the crude bounds plus or minus C on them. Outside the rectangles f is continuous on closed cells, so the previous theorem gives a good sandwich there.
    Let ∣f∣<C|f| < C and fix ε>0\varepsilon > 0.
    ff is bounded; fix the target ε\varepsilon first.
    Cover DD by open rectangles R1,…,RKR_1, \dots, R_K of total area at most ε\varepsilon.
    Definition of content zero.
    Extend the edges to cut QQ into finitely many closed cells, say mm of the second kind below. Each cell is either inside the closure of some RkR_k (first kind) or misses every RkR_k (second kind).
    Extending all edges of all RkR_k across QQ gives a finite grid, so a partition of QQ. The open inside of a cell lies wholly inside or wholly outside each RkR_k, because no edge of any RkR_k cuts through it.
    The cells of the first kind have total area at most ε\varepsilon.
    These cells sit inside the closures of the RkR_k.
    On each second-kind cell there are step functions sG≤f≤tGs_G \le f \le t_G with ∬G(tG−sG)<ε/m\iint_G(t_G - s_G) < \varepsilon/m.
    A cell GG of the second kind misses every RkR_k, hence misses D⊂⋃RkD \subset \bigcup R_k (a point of GG lying in an open RkR_k would put points of the interior of GG in RkR_k as well, so GG would not be of the second kind); then ff is continuous at every point of GG. The theorem for continuous functions applies to ff on GG; we ask for ε/m\varepsilon/m so the mm errors add up to ε\varepsilon.
    Put s=sGs = s_G, t=tGt = t_G on the open second-kind cells, and s=−Cs = -C, t=Ct = C on first-kind cells and on all cut lines. Then s≤f≤ts \le f \le t.
    Lines have no area, so the choice on them costs nothing.
    ∬(t−s)<m⋅ε/m+2Cε=(1+2C)ε\iint(t - s) < m\cdot\varepsilon/m + 2C\varepsilon = (1 + 2C)\varepsilon. By the criterion ff is integrable. ■\blacksquare
    Second-kind cells contribute less than ε/m\varepsilon/m each; first-kind cells have height difference 2C2C and total area at most ε\varepsilon. CC is fixed in advance, so ε\varepsilon can be chosen to make (1+2C)ε(1 + 2C)\varepsilon small.

    What fails without each hypothesis. Without boundedness the lower and upper integrals do not exist. Without content zero, the function above that is 11 at rational points and 00 elsewhere is discontinuous everywhere and not integrable. Content zero is the right size: small enough not to matter.

    Quick checkOn [0,1]2[0, 1]^2 let h(x,y)=1h(x, y) = 1 if x=yx = y and h(x,y)=0h(x, y) = 0 otherwise. Which statement is correct?

    Iterated integrals: Fubini

    Definition T

    Iterated integral

    An iterated integral is two ordinary integrals, one inside the other. ∫cd(∫abf(x,y) dx)dy\int_c^d\Big(\int_a^b f(x, y)\,dx\Big)dy means: for each fixed yy compute A(y)=∫abf(x,y) dxA(y) = \int_a^bf(x, y)\,dx (treating yy as a constant), then integrate A(y)A(y) over yy from cc to dd. The inner variable is the one whose dd appears first.

    In one line∫cd ⁣(∫abf(x,y) dx)dy\int_c^d\!\left(\int_a^b f(x, y)\,dx\right)dy: for each fixed yy integrate in xx from aa to bb to get a number A(y)A(y), then integrate A(y)A(y) in yy from cc to dd.

    Why it existsIt reduces a double integral to two single integrals, each of which can be computed with the antiderivatives of first-year calculus.

    Theorem T MATH 376 lectures 4.6, 4.7 and Thm 4.12; Apostol 11.6

    Fubini's theorem for continuous functions on a rectangle

    If ff is continuous on Q=[a,b]×[c,d]Q = [a, b] \times [c, d], then ff is integrable and

    ∬Qf=∫cd ⁣∫abf(x,y) dx dy=∫ab ⁣∫cdf(x,y) dy dx.\iint_Qf = \int_c^d\!\int_a^bf(x, y)\,dx\,dy = \int_a^b\!\int_c^df(x, y)\,dy\,dx.

    More generally, the first equality holds whenever ff is integrable on QQ and the inner integral ∫abf(x,y) dx\int_a^bf(x, y)\,dx exists for every yy (this is what Steps 1 to 4 of the proof show); the second holds when ff is integrable and the other inner integrals exist.

    In one lineIf ff is continuous on Q=[a,b]×[c,d]Q = [a, b] \times [c, d], then ∬Qf=∫cd ⁣∫abf dx dy=∫ab ⁣∫cdf dy dx\iint_Qf = \int_c^d\!\int_a^bf\,dx\,dy = \int_a^b\!\int_c^df\,dy\,dx.

    Why it is trueIt lets you compute a double integral with two antiderivatives, in whichever order is easier.

    ProofMATH 376 lectures 4.6, 4.7
    The idea: Do it for step functions (a constant piece checks by hand). For a general integrable f, the iterated integral is squeezed between the iterated integrals of step functions below and above. For continuous f, uniform continuity shows the inner integral is a continuous function of y, so the outer integral exists.
    Step 1: let s≤f≤ts \le f \le t be step functions with s=−Cs = -C and t=Ct = C on all grid lines.
    The values of a step function on the grid lines are free. If ∣f∣<C|f| < C, lowering ss to −C-C and raising tt to CC on the grid lines keeps s≤f≤ts \le f \le t and changes neither ∬s\iint s nor ∬t\iint t (lines have no area). We do this so that every slice is a step function of one variable.
    Then y↦∫abs dxy \mapsto \int_a^bs\,dx is a step function of yy whose integral is ∬Qs\iint_Qs, and the same holds for tt.
    For yy strictly between two grid lines, x↦s(x,y)x \mapsto s(x, y) equals the constant cijc_{ij} on the open interval (xi,xi+1)(x_i, x_{i+1}), so its integral is ∑icij(xi+1−xi)\sum_ic_{ij}(x_{i+1} - x_i); for yy on a grid line it is −C(b−a)-C(b - a). Multiplying by the heights yj+1−yjy_{j+1} - y_j and adding gives exactly the step-function term.
    Step 2: suppose ff is integrable and the inner integral A(y)=∫abf(x,y) dxA(y) = \int_a^bf(x, y)\,dx exists for every yy. Then ∫abs dx≤A(y)≤∫abt dx\int_a^bs\,dx \le A(y) \le \int_a^bt\,dx for every yy.
    One-variable integrals preserve inequalities: s(x,y)≤f(x,y)≤t(x,y)s(x, y) \le f(x, y) \le t(x, y) for each fixed yy, and the middle integral exists by assumption.
    Hence AA is integrable on [c,d][c, d] and ∬s≤∫cdA≤∬t\iint s \le \int_c^dA \le \iint t for all such s,ts, t.
    So AA is squeezed between two step functions of yy, and the one-variable sandwich criterion (1.5) says AA is integrable, with ∫cdA\int_c^dA between their integrals, which are ∬s\iint s and ∬t\iint t.
    Hence I‾(f)≤∫cdA≤I‾(f)\underline{I}(f) \le \int_c^dA \le \overline{I}(f), and since ff is integrable both bounds equal ∬Qf\iint_Qf.
    A number above every member of the lower set is above its supremum; a number below every member of the upper set is below its infimum.
    Now let ff be continuous.
    Step 3: a continuous ff is integrable by the previous theorem, and each x↦f(x,y)x \mapsto f(x, y) is continuous, so A(y)A(y) exists.
    AA is continuous: ∣A(y)−A(y′)∣≤∫ab∣f(x,y)−f(x,y′)∣ dx≤ε(b−a)|A(y) - A(y')| \le \int_a^b|f(x, y) - f(x, y')|\,dx \le \varepsilon(b - a).
    Uniform continuity on the closed rectangle: given ε\varepsilon there is one δ\delta with ∣f(x,y)−f(x,y′)∣<ε|f(x, y) - f(x, y')| < \varepsilon for all xx whenever ∣y−y′∣<δ|y - y'| < \delta. This is exactly where it is needed.
    So ∫cdA\int_c^dA exists, and by Step 2 it equals ∬Qf\iint_Qf. ■\blacksquare
    A continuous function on [c,d][c, d] is integrable, so the last hypothesis of Step 2 holds. The other order follows by swapping the letters xx and yy.

    What fails without each hypothesis. The proof only treats rectangles; other regions are handled below by extending with zero. And ‘continuous’ can be weakened to ‘integrable and every inner integral exists’, not further: take f(x,y)=1f(x, y) = 1 if y=12y = \frac12 and xx is rational, and f=0f = 0 otherwise, on [0,1]2[0, 1]^2. It is integrable by the theorem above, because its discontinuities lie on the segment y=12y = \frac12, a graph of content zero, and its double integral is 00; but for y=12y = \frac12 the inner integral is the integral of the Dirichlet function, which does not exist, so A(12)A(\tfrac12) is undefined.

    Quick checkYou must compute ∬[0,1]×[0,1]xexy dA\iint_{[0, 1] \times [0, 1]} xe^{xy}\,dA. Which order is easier?

    Separable integrands. If f(x,y)=g(x)h(y)f(x, y) = g(x)h(y) with g,hg, h continuous and the region is a rectangle, then ∬f=(∫abg)(∫cdh)\iint f = \Big(\int_a^bg\Big)\Big(\int_c^dh\Big), because the inner integral treats h(y)h(y) as a constant. Both hypotheses are needed: over a triangle the limits of one integral depend on the other variable, and for f=xy+1f = xy + 1, which is not a product, the factored formula fails.

    Worked example MATH 376 Midterm 1 problem 2, 6 points; see [A.2](/vol2/a2-midterm-1/). The sibling on the practice exam, $3yx^2$ on $[1, 2] \times [0, 1]$, gives $\frac72$.
    Justify why F(x,y)=ycos⁡(xy)F(x, y) = y\cos(xy) is integrable on R=[0,2π]×[0,12]R = [0, 2\pi] \times [0, \frac12] and compute ∬RF\iint_RF.

    Solution.

    1. Integrable. FF is a product and composition of continuous functions, so it is continuous on the closed rectangle RR; by the theorem, FF is integrable. Name the theorem: a continuous function on a closed rectangle is integrable.
    2. Fubini. ∬RF=∫01/2 ⁣∫02πycos⁡(xy) dx dy\iint_RF = \int_0^{1/2}\!\int_0^{2\pi}y\cos(xy)\,dx\,dy. For a continuous function on a rectangle. We integrate in xx first because ddxsin⁡(xy)=ycos⁡(xy)\frac{d}{dx}\sin(xy) = y\cos(xy).
    3. Inner integral. ∫02πycos⁡(xy) dx=[sin⁡(xy)]x=0x=2π=sin⁡(2πy)\int_0^{2\pi}y\cos(xy)\,dx = \big[\sin(xy)\big]_{x=0}^{x=2\pi} = \sin(2\pi y). yy is held constant.
    4. Outer integral. ∫01/2sin⁡(2πy) dy=[−cos⁡(2πy)2π]01/2=12π+12π=1π\int_0^{1/2}\sin(2\pi y)\,dy = \Big[-\dfrac{\cos(2\pi y)}{2\pi}\Big]_0^{1/2} = \dfrac{1}{2\pi} + \dfrac{1}{2\pi} = \dfrac1\pi. cos⁡π=−1\cos\pi = -1 and cos⁡0=1\cos0 = 1.

    Answer. 1π\dfrac1\pi.

    Worked example MATH 376 worksheet 7 problems 1 to 3
    Compute (a) ∬[0,1]×[0,2](6x2y+4y3) dA\iint_{[0, 1] \times [0, 2]}(6x^2y + 4y^3)\,dA; (b) ∬[0,π]×[0,1]eysin⁡x dA\iint_{[0, \pi] \times [0, 1]}e^y\sin x\,dA; (c) ∬[1,2]×[0,1]x1+xy dA\iint_{[1, 2] \times [0, 1]}\dfrac{x}{1 + xy}\,dA.

    Solution.

    1. (a) Fubini. The integrand is a polynomial, so continuous. Inner (in xx, yy constant): ∫01(6x2y+4y3) dx=[2x3y+4y3x]01=2y+4y3\int_0^1(6x^2y + 4y^3)\,dx = \big[2x^3y + 4y^3x\big]_0^1 = 2y + 4y^3. Treat yy as a number.
    2. (a) Outer. ∫02(2y+4y3) dy=[y2+y4]02=4+16=20\int_0^2(2y + 4y^3)\,dy = \big[y^2 + y^4\big]_0^2 = 4 + 16 = 20.
    3. (b) Separable. The integrand is g(x)h(y)g(x)h(y) on a rectangle with g=sin⁡g = \sin, h=exp⁡h = \exp continuous, so the integral factors: ∫0πsin⁡x dx⋅∫01ey dy=2⋅(e−1)\int_0^\pi\sin x\,dx\cdot\int_0^1e^y\,dy = 2\cdot(e - 1).
    4. (c) Choose the order. The integrand is continuous since 1+xy≥11 + xy \ge 1. Integrate in yy first: ∫01x1+xy dy=[ln⁡(1+xy)]y=0y=1=ln⁡(1+x)\int_0^1\dfrac{x}{1 + xy}\,dy = \big[\ln(1 + xy)\big]_{y=0}^{y=1} = \ln(1 + x). ddyln⁡(1+xy)=x1+xy\frac{d}{dy}\ln(1 + xy) = \frac{x}{1 + xy}. In xx first the antiderivative would be harder.
    5. (c) Outer. ∫12ln⁡(1+x) dx=∫23ln⁡u du=[uln⁡u−u]23=(3ln⁡3−3)−(2ln⁡2−2)=3ln⁡3−2ln⁡2−1\int_1^2\ln(1 + x)\,dx = \int_2^3\ln u\,du = \big[u\ln u - u\big]_2^3 = (3\ln3 - 3) - (2\ln2 - 2) = 3\ln3 - 2\ln2 - 1. Substitute u=1+xu = 1 + x; an antiderivative of ln⁡u\ln u is uln⁡u−uu\ln u - u (differentiate it to check).

    Answer. (a) 2020; (b) 2(e−1)2(e - 1); (c) 3ln⁡3−2ln⁡2−1≈0.90953\ln3 - 2\ln2 - 1 \approx 0.9095. (Homework 3 problem 4, ∬[0,1]×[0,2π](xsin⁡y+xexy) dA=e2π−12π−1\iint_{[0, 1] \times [0, 2\pi]}(x\sin y + xe^{xy})\,dA = \frac{e^{2\pi} - 1}{2\pi} - 1, and problem 5, ∬[1,2]2(xy+yx) dA=3ln⁡2\iint_{[1, 2]^2}(\frac xy + \frac yx)\,dA = 3\ln2, are in the ladder.)

    Regions that are not rectangles

    Definition T

    Type I region

    A set S⊂R2S \subset \mathbb R^2 is a type I region if S={(x,y):a≤x≤b, φ1(x)≤y≤φ2(x)}S = \{(x, y) : a \le x \le b,\ \varphi_1(x) \le y \le \varphi_2(x)\} with φ1,φ2:[a,b]→R\varphi_1, \varphi_2: [a, b] \to \mathbb R continuous and φ1≤φ2\varphi_1 \le \varphi_2. A vertical line meets it in one segment.

    In one lineA region S={(x,y):a≤x≤b, φ1(x)≤y≤φ2(x)}S = \{(x, y): a \le x \le b,\ \varphi_1(x) \le y \le \varphi_2(x)\} with φ1≤φ2\varphi_1 \le \varphi_2 continuous: between a lower curve and an upper curve.

    Why it existsEvery vertical line meets it in one segment, which is what lets the inner integral run in yy with limits that depend on xx.

    Definition T

    Type II region

    A set is a type II region if S={(x,y):c≤y≤d, ψ1(y)≤x≤ψ2(y)}S = \{(x, y) : c \le y \le d,\ \psi_1(y) \le x \le \psi_2(y)\} with ψ1,ψ2\psi_1, \psi_2 continuous on [c,d][c, d] and ψ1≤ψ2\psi_1 \le \psi_2. A horizontal line meets it in one segment. A region of both types, such as a disc or a triangle, can be integrated in either order, which is what makes reversing the order possible.

    In one lineA region S={(x,y):c≤y≤d, ψ1(y)≤x≤ψ2(y)}S = \{(x, y): c \le y \le d,\ \psi_1(y) \le x \le \psi_2(y)\} with ψ1≤ψ2\psi_1 \le \psi_2 continuous: between a left curve and a right curve.

    Why it existsThe same idea with the roles of xx and yy exchanged; a region of both types can be integrated in either order.

    For a bounded S⊂QS \subset Q and f:S→Rf: S \to \mathbb R, the extension by zero is f~=f\tilde f = f on SS and 00 on Q∖SQ \setminus S, and ∬Sf\iint_Sf is defined to be ∬Qf~\iint_Q\tilde f.

    Theorem T MATH 376 lecture Thm 4.18; Apostol 11.12

    Integral over a type I region

    If SS is a type I region and f:S→Rf: S \to \mathbb R is continuous, then ff is integrable on SS and ∬Sf=∫ab∫φ1(x)φ2(x)f(x,y) dy dx\iint_Sf = \int_a^b\int_{\varphi_1(x)}^{\varphi_2(x)}f(x, y)\,dy\,dx. For type II: ∬Sf=∫cd∫ψ1(y)ψ2(y)f dx dy\iint_Sf = \int_c^d\int_{\psi_1(y)}^{\psi_2(y)}f\,dx\,dy.

    In one lineIf SS is type I and ff is continuous on SS, then ff is integrable on SS and ∬Sf=∫ab ⁣∫φ1(x)φ2(x)f(x,y) dy dx\iint_Sf = \int_a^b\!\int_{\varphi_1(x)}^{\varphi_2(x)}f(x, y)\,dy\,dx.

    Why it is trueIt is the formula used for almost every double integral over a region between curves; the type II version is the same with the letters exchanged.

    ProofMATH 376 lecture Thm 4.18
    The idea: Extend f by zero to a rectangle. The extension is continuous except on the boundary of S, which is made of two graphs and two vertical segments, all of content zero. So it is integrable, and Fubini reads off the formula.
    Put SS inside Q=[a,b]×[c,d]Q = [a, b] \times [c, d] with c≤min⁡φ1c \le \min\varphi_1 and d≥max⁡φ2d \ge \max\varphi_2, and let f~\tilde f be the extension by zero.
    The continuous functions φi\varphi_i are bounded on [a,b][a, b], so a rectangle containing SS exists.
    f~\tilde f is continuous at every point not on the boundary of SS.
    Near an interior point of SS, f~=f\tilde f = f, which is continuous; near a point outside SS, f~\tilde f is the constant 00.
    The boundary lies in the union of two graphs and two vertical segments, which has content zero.
    The graph lemma, applied to φ1\varphi_1, φ2\varphi_2 and the two vertical segments x=ax = a, x=bx = b (graphs x=ψ(y)x = \psi(y)); a finite union of sets of content zero has content zero.
    So f~\tilde f is bounded with discontinuities of content zero and is integrable on QQ.
    ff is continuous on the compact set SS, hence bounded; then the theorem on bounded functions with discontinuities of content zero applies.
    ∬Sf=∬Qf~=∫ab∫cdf~ dy dx=∫ab∫φ1(x)φ2(x)f dy dx\iint_Sf = \iint_Q\tilde f = \int_a^b\int_c^d\tilde f\,dy\,dx = \int_a^b\int_{\varphi_1(x)}^{\varphi_2(x)}f\,dy\,dx. ■\blacksquare
    Fubini (Step 2 of its proof) with xx outer and yy inner; the inner integral exists, and f~(x,⋅)\tilde f(x, \cdot) is zero outside [φ1(x),φ2(x)][\varphi_1(x), \varphi_2(x)] and equals ff on it.
    Quick checkWhich iterated integral is the double integral over the triangle with vertices (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1)?

    Three rules follow. The limits of the outer integral are constants. The limits of the inner integral may depend on the outer variable only. Writing ∫0y∫0x… dy dx\int_0^y\int_0^x\dots\,dy\,dx is meaningless.

    Worked example MATH 376 worksheet 8 problem 1
    Compute ∬D(x+2y) dA\iint_D(x + 2y)\,dA where DD is the region between y=2x2y = 2x^2 and y=1+x2y = 1 + x^2.

    Solution.

    1. Find where the curves cross. 2x2=1+x22x^2 = 1 + x^2 gives x=±1x = \pm1. Do this before anything else; it gives the limits of the outer integral.
    2. Decide which is on top. For ∣x∣≤1|x| \le 1, 2x2≤1+x22x^2 \le 1 + x^2, so the lower curve is y=2x2y = 2x^2 and the upper is y=1+x2y = 1 + x^2. The region is type I: −1≤x≤1-1 \le x \le 1, 2x2≤y≤1+x22x^2 \le y \le 1 + x^2.
    3. Inner integral. ∫2x21+x2(x+2y) dy=[xy+y2]2x21+x2=x(1−x2)+(1+x2)2−4x4=x−x3+1+2x2−3x4\int_{2x^2}^{1 + x^2}(x + 2y)\,dy = \big[xy + y^2\big]_{2x^2}^{1 + x^2} = x(1 - x^2) + (1 + x^2)^2 - 4x^4 = x - x^3 + 1 + 2x^2 - 3x^4. Expand (1+x2)2=1+2x2+x4(1 + x^2)^2 = 1 + 2x^2 + x^4.
    4. Outer integral by symmetry. The odd terms x−x3x - x^3 integrate to 00 over [−1,1][-1, 1], and the even part gives twice the integral over [0,1][0, 1]: 2∫01(1+2x2−3x4) dx=2(1+23−35)=32152\int_0^1(1 + 2x^2 - 3x^4)\,dx = 2\big(1 + \frac23 - \frac35\big) = \frac{32}{15}.

    Answer. 3215\dfrac{32}{15}.

    Worked example MATH 376 worksheet 27 problem 5
    Compute ∬T(x+y) dA\iint_T(x + y)\,dA where TT is the triangle with vertices (0,0)(0, 0), (1,0)(1, 0), (1,2)(1, 2), in both orders.

    Solution.

    1. Sketch and find the sides. From (0,0)(0, 0) to (1,2)(1, 2): y=2xy = 2x. From (0,0)(0, 0) to (1,0)(1, 0): y=0y = 0. From (1,0)(1, 0) to (1,2)(1, 2): x=1x = 1.
    2. Order dy dxdy\,dx (type I). 0≤x≤10 \le x \le 1, 0≤y≤2x0 \le y \le 2x. Inner: ∫02x(x+y) dy=[xy+y22]02x=2x2+2x2=4x2\int_0^{2x}(x + y)\,dy = \big[xy + \tfrac{y^2}{2}\big]_0^{2x} = 2x^2 + 2x^2 = 4x^2. Outer: ∫014x2 dx=43\int_0^14x^2\,dx = \frac43.
    3. Order dx dydx\,dy (type II). 0≤y≤20 \le y \le 2, y2≤x≤1\frac y2 \le x \le 1. Inner: [x22+xy]y/21=(12+y)−(y28+y22)=12+y−5y28\big[\tfrac{x^2}{2} + xy\big]_{y/2}^1 = \big(\tfrac12 + y\big) - \big(\tfrac{y^2}{8} + \tfrac{y^2}{2}\big) = \tfrac12 + y - \tfrac{5y^2}{8}. Outer: [y2+y22−5y324]02=1+2−53=43\big[\tfrac y2 + \tfrac{y^2}{2} - \tfrac{5y^3}{24}\big]_0^2 = 1 + 2 - \tfrac53 = \tfrac43.

    Answer. 43\dfrac43 in both orders.

    Reversing the order of integration

    When an inner integral has no elementary antiderivative (ex2e^{x^2}, sin⁡xx\frac{\sin x}{x}, 1ln⁡x\frac1{\ln x}), switch the order. The recipe with its reasons:

    1. Write the limits as inequalities, for example 0≤y≤10 \le y \le 1 and y≤x≤1y \le x \le 1. The region is the set of points satisfying all of them.
    2. Sketch the region. The sketch is where mistakes are caught.
    3. Read it the other way: fix the new outer variable on a constant range and find the segment of the new inner variable.
    4. Integrate with the new inner variable first.
    Worked example MATH 376 worksheet 8 problem 4; worksheet 9 problem 1 ($\int_0^\pi\int_y^\pi\frac{\sin x}{x}\,dx\,dy = 2$) and worksheet 7 problem 4 are the same type
    Compute ∫01 ⁣∫y1ex2 dx dy\displaystyle\int_0^1\!\int_y^1e^{x^2}\,dx\,dy by reversing the order.

    Solution.

    1. Limits as inequalities. 0≤y≤10 \le y \le 1 and y≤x≤1y \le x \le 1, that is 0≤y≤x≤10 \le y \le x \le 1: the triangle with vertices (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1). ex2e^{x^2} has no elementary antiderivative in xx, so the written order cannot be done.
    2. Read the other way. 0≤x≤10 \le x \le 1 and, for each xx, 0≤y≤x0 \le y \le x. The region is type I and the integrand is continuous, so ∬=∫01 ⁣∫0xex2 dy dx\iint = \int_0^1\!\int_0^xe^{x^2}\,dy\,dx.
    3. Inner. ∫0xex2 dy=xex2\int_0^xe^{x^2}\,dy = xe^{x^2}. ex2e^{x^2} does not depend on yy.
    4. Outer. ∫01xex2 dx=[12ex2]01=e−12\int_0^1xe^{x^2}\,dx = \big[\tfrac12e^{x^2}\big]_0^1 = \dfrac{e - 1}{2}. The derivative of ex2e^{x^2} is 2xex22xe^{x^2}.

    Answer. e−12\dfrac{e - 1}{2}.

    Worked example MATH 376 worksheet 10 problems 3 and 4
    Reverse the order and compute ∫1e ⁣∫0ln⁡xy dy dx\displaystyle\int_1^e\!\int_0^{\ln x}y\,dy\,dx, then check in the written order; and compute ∫0ln⁡2 ⁣∫ey2dxln⁡x dy\displaystyle\int_0^{\ln2}\!\int_{e^y}^2\frac{dx}{\ln x}\,dy.

    Solution.

    1. Limits. 1≤x≤e1 \le x \le e and 0≤y≤ln⁡x0 \le y \le \ln x. Since y≤ln⁡xy \le \ln x is the same as x≥eyx \ge e^y, and x≤ex \le e forces y≤1y \le 1, the reversed region is 0≤y≤10 \le y \le 1, ey≤x≤ee^y \le x \le e.
    2. Integrate. ∫01 ⁣∫eyey dx dy=∫01y(e−ey) dy=e2−∫01yey dy=e2−1\int_0^1\!\int_{e^y}^ey\,dx\,dy = \int_0^1y(e - e^y)\,dy = \frac e2 - \int_0^1ye^y\,dy = \frac e2 - 1. By parts, ∫01yey dy=[yey−ey]01=0−(−1)=1\int_0^1ye^y\,dy = [ye^y - e^y]_0^1 = 0 - (-1) = 1.
    3. Check in the written order. The inner integral is (ln⁡x)22\frac{(\ln x)^2}{2}, and ∫1e(ln⁡x)22 dx=12[x(ln⁡x)2−2xln⁡x+2x]1e=12(e−2)=e2−1\int_1^e\frac{(\ln x)^2}{2}\,dx = \frac12\big[x(\ln x)^2 - 2x\ln x + 2x\big]_1^e = \frac12(e - 2) = \frac e2 - 1. Both orders agree.
    4. The second integral. ey≤x≤2e^y \le x \le 2 means y≤ln⁡xy \le \ln x and 1≤x≤21 \le x \le 2, so the region is 1≤x≤21 \le x \le 2, 0≤y≤ln⁡x0 \le y \le \ln x (the bound y≤ln⁡2y \le \ln2 then holds automatically).
    5. Integrate. ∫12 ⁣∫0ln⁡x1ln⁡x dy dx=∫12ln⁡xln⁡x dx=∫121 dx=1\int_1^2\!\int_0^{\ln x}\frac1{\ln x}\,dy\,dx = \int_1^2\frac{\ln x}{\ln x}\,dx = \int_1^21\,dx = 1. The integrand blows up at x=1x = 1, but the length ln⁡x\ln x of the inner interval cancels it. Strictly the original iterated integral is improper (at y=0y = 0 the inner integral ∫12dxln⁡x\int_1^2\frac{dx}{\ln x} diverges), so the equality of the two orders is a statement about this improper integral; the worksheet does not mention it.

    Answer. e2−1\dfrac e2 - 1 and 11.

    Your answerCompute ∫01 ⁣∫y1cos⁡(x2) dx dy\displaystyle\int_0^1\!\int_y^1\cos(x^2)\,dx\,dy by reversing the order.

    Area, volume and polar coordinates

    The area of a region SS is ∬S1 dA\iint_S1\,dA; the volume of the solid between SS and a graph z=f(x,y)≥0z = f(x, y) \ge 0 is ∬Sf dA\iint_Sf\,dA.

    Polar coordinates. Use (r,θ)(r, \theta) with x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta, r≥0r \ge 0. A small piece dr dθdr\,d\theta of the (r,θ)(r, \theta) plane becomes a piece of area r dr dθr\,dr\,d\theta of the xyxy-plane, so dA=r dr dθdA = r\,dr\,d\theta (proved in 6.4 as the Jacobian determinant of the map). Use polar coordinates when the region is a disc, a sector or a ring, or when the integrand depends on x2+y2x^2 + y^2. Do not forget the extra factor rr.

    Worked example MATH 376 worksheet 9 problem 2; worksheet 7 problem 5 (the ball) and worksheet 10 problem 5 (the quarter disc) are the same type
    Find the volume above the xyxy-plane and below z=9−x2−y2z = 9 - x^2 - y^2, inside the cylinder x2+y2=4x^2 + y^2 = 4.

    Solution.

    1. Check the surface is above the plane. On the disc x2+y2≤4x^2 + y^2 \le 4, 9−x2−y2≥5>09 - x^2 - y^2 \ge 5 > 0. So the volume is ∬D(9−x2−y2) dA\iint_D(9 - x^2 - y^2)\,dA.
    2. Polar coordinates. The region is a disc and the integrand is 9−r29 - r^2: 0≤r≤20 \le r \le 2, 0≤θ≤2π0 \le \theta \le 2\pi, so V=∫02π∫02(9−r2) r dr dθV = \int_0^{2\pi}\int_0^2(9 - r^2)\,r\,dr\,d\theta. The factor rr comes from dA=r dr dθdA = r\,dr\,d\theta.
    3. Evaluate. Nothing depends on θ\theta, so the θ\theta integral gives 2π2\pi. An antiderivative of 9r−r39r - r^3 is 9r22−r44\frac{9r^2}{2} - \frac{r^4}{4}, equal to 18−4=1418 - 4 = 14 at r=2r = 2 and 00 at r=0r = 0. So V=2π⋅14=28πV = 2\pi\cdot14 = 28\pi.

    Answer. 28π28\pi. (The ball of radius RR: V=2∫02π∫0RR2−r2 r dr dθ=4π⋅R33=4πR33V = 2\int_0^{2\pi}\int_0^R\sqrt{R^2 - r^2}\,r\,dr\,d\theta = 4\pi\cdot\frac{R^3}{3} = \frac{4\pi R^3}{3}, with u=R2−r2u = R^2 - r^2. The first-quadrant quarter disc of radius 22: ∬(x2+y2) dA=π2∫02r3 dr=2π\iint(x^2 + y^2)\,dA = \frac\pi2\int_0^2r^3\,dr = 2\pi.)

    Your answerFind the volume above the xyxy-plane and below z=4−x2−y2z = 4 - x^2 - y^2.
    Worked example MATH 376 Final problem 2, lost 1 point; see [A.4](/vol2/a4-final/) and [A.1](/vol2/a1-what-you-lost-points-on/)
    The surface SS is defined by max⁡(∣x∣,∣y∣,∣z∣)=1\max(|x|, |y|, |z|) = 1. Describe SS and find the volume of the solid EE it bounds by a triple integral.

    Solution.

    1. Read the set aloud. max⁡(∣x∣,∣y∣,∣z∣)=1\max(|x|, |y|, |z|) = 1 means every coordinate satisfies ∣x∣≤1|x| \le 1, ∣y∣≤1|y| \le 1, ∣z∣≤1|z| \le 1, and at least one has absolute value exactly 11. The maximum is 11 when no coordinate exceeds 11 in absolute value and some coordinate reaches 11.
    2. Name the surface. Each coordinate ranges over [−1,1][-1, 1], not [0,1][0, 1]. So SS is the surface of the cube [−1,1]3[-1, 1]^3, with six faces such as x=1x = 1, −1≤y,z≤1-1 \le y, z \le 1 (area 2⋅2=42\cdot2 = 4). Test one point of each kind: (−1,0.5,0.2)(-1, 0.5, 0.2) is on SS. On the exam the absolute values were dropped and the set was read as a unit cube in the first octant.
    3. The solid. E=[−1,1]3={max⁡(∣x∣,∣y∣,∣z∣)≤1}E = [-1, 1]^3 = \{\max(|x|, |y|, |z|) \le 1\}.
    4. Volume. ∭E1 dV=∫−11 ⁣∫−11 ⁣∫−11dz dy dx=2⋅2⋅2=8\iiint_E1\,dV = \int_{-1}^1\!\int_{-1}^1\!\int_{-1}^1dz\,dy\,dx = 2\cdot2\cdot2 = 8.

    Answer. SS is the surface of the cube [−1,1]3[-1, 1]^3 and Vol(E)=8\text{Vol}(E) = 8, not 11. In the divergence theorem question with div⁡F=1\operatorname{div}F = 1, the flux is this volume, 88.

    Worked example MATH 376 Final problem 5(a), lost 1 point; practice Final problem 5; see [A.1](/vol2/a1-what-you-lost-points-on/)
    Let Vn(t)={x∈[0,1]n:x1+⋯+xn≤t}V_n(t) = \{x \in [0, 1]^n : x_1 + \dots + x_n \le t\} for t∈[0,1]t \in [0, 1]. Compute its volume by induction. (The case n=3n = 3, t=1t = 1 is the practice final problem: the volume of the simplex x+y+z≤1x + y + z \le 1 in the unit cube, 16\frac16.)

    Solution.

    1. Small cases. n=1n = 1: V1(t)=[0,t]V_1(t) = [0, t] has length tt. n=2n = 2: the slice at x2=sx_2 = s is [0,t−s][0, t - s], of length t−st - s, so Vol(V2(t))=∫0t(t−s) ds=t22\text{Vol}(V_2(t)) = \int_0^t(t - s)\,ds = \frac{t^2}{2}. Discover the pattern; do not assume the answer. Guess Vol(Vn(t))=tn/n!\text{Vol}(V_n(t)) = t^n/n!.
    2. State the claim for all tt at once. P(n)P(n): for every t∈[0,1]t \in [0, 1], Vol(Vn(t))=tn/n!\text{Vol}(V_n(t)) = t^n/n!. The induction will use P(n−1)P(n - 1) at the different value t−st - s.
    3. Slice. Assume P(n−1)P(n - 1). If x∈Vn(t)x \in V_n(t) then xn∈[0,t]x_n \in [0, t], and for xn=sx_n = s the other coordinates lie in [0,1][0, 1] with x1+⋯+xn−1≤t−sx_1 + \dots + x_{n-1} \le t - s. So the slice at xn=sx_n = s is Vn−1(t−s)V_{n-1}(t - s). This is the step that was wrong on the final: the slice is Vn−1(t−s)V_{n-1}(t - s), not Vn−1(t)V_{n-1}(t), and the integration variable ss is not the parameter tt.
    4. Fubini. Vol(Vn(t))=∫0tVol(Vn−1(t−s)) ds=∫0t(t−s)n−1(n−1)! ds=[−(t−s)nn!]s=0s=t=tnn!\text{Vol}(V_n(t)) = \int_0^t\text{Vol}(V_{n-1}(t - s))\,ds = \int_0^t\frac{(t - s)^{n-1}}{(n-1)!}\,ds = \Big[-\frac{(t - s)^n}{n!}\Big]_{s=0}^{s=t} = \frac{t^n}{n!}. The volume is the integral of the indicator function of Vn(t)V_n(t), which is bounded and discontinuous only on the boundary of the set (made of pieces of planes, of content zero), so it is integrable and Fubini lets us integrate the slices. For s>ts > t the slice is empty. Check the antiderivative by differentiating in ss.
    5. Conclude. P(1)P(1) holds and P(n−1)P(n - 1) implies P(n)P(n), so P(n)P(n) holds for all nn.

    Answer. Vol(Vn(t))=tnn!\text{Vol}(V_n(t)) = \dfrac{t^n}{n!}; for n=3n = 3 and t=1t = 1 this is 16\frac16, which the iterated integral ∫01 ⁣∫01−x ⁣∫01−x−ydz dy dx=∫01(1−x)22 dx=16\int_0^1\!\int_0^{1-x}\!\int_0^{1-x-y}dz\,dy\,dx = \int_0^1\frac{(1-x)^2}{2}\,dx = \frac16 confirms.

    Mass, centre of mass and moments

    For a flat plate SS with density φ(x,y)\varphi(x, y) (mass per unit area) the mass is ∬Sφ dA\iint_S\varphi\,dA, the centre of mass has coordinates xˉ m=∬Sxφ dA\bar x\,m = \iint_Sx\varphi\,dA and yˉ m=∬Syφ dA\bar y\,m = \iint_Sy\varphi\,dA (Apostol 11.16, label A), and the moment of inertia about a line LL is IL=∬Sδ2φ dAI_L = \iint_S\delta^2\varphi\,dA, with δ\delta the distance to LL. These are the definitions of 6.1 for wires, with ∬dA\iint dA in place of ∫ds\int ds. The polar moment of inertia about the origin is I0=Ix+Iy=∬(x2+y2)φ dAI_0 = I_x + I_y = \iint(x^2 + y^2)\varphi\,dA. For constant density the centre of mass is the centroid; an axis of symmetry contains it.

    Worked example Apostol 11.16, examples 1 and 2
    A thin plate of constant density cc is the ring between circles of radii b<ab < a centred at the origin. Find its polar moment of inertia. Then find the centroid of the region under one arch y=sin⁡xy = \sin x, 0≤x≤π0 \le x \le \pi.

    Solution.

    1. Ring. I0=c∬(x2+y2) dA=c∫02π∫bar2⋅r dr dθ=c⋅2π⋅a4−b44=πc2(a4−b4)I_0 = c\iint(x^2 + y^2)\,dA = c\int_0^{2\pi}\int_b^ar^2\cdot r\,dr\,d\theta = c\cdot2\pi\cdot\frac{a^4 - b^4}{4} = \frac{\pi c}{2}(a^4 - b^4).
    2. In terms of the mass. The mass is m=cπ(a2−b2)m = c\pi(a^2 - b^2), and a4−b4=(a2−b2)(a2+b2)a^4 - b^4 = (a^2 - b^2)(a^2 + b^2), so I0=m2(a2+b2)I_0 = \frac m2(a^2 + b^2).
    3. Arch, symmetry. The region is symmetric about x=π2x = \frac\pi2, so xˉ=π2\bar x = \frac\pi2.
    4. Arch, height. yˉ=∬y dA∬dA=∫0πsin⁡2x2 dx∫0πsin⁡x dx=π/42=π8\bar y = \dfrac{\iint y\,dA}{\iint dA} = \dfrac{\int_0^\pi\frac{\sin^2x}{2}\,dx}{\int_0^\pi\sin x\,dx} = \dfrac{\pi/4}{2} = \dfrac\pi8. ∫0sin⁡xy dy=sin⁡2x2\int_0^{\sin x}y\,dy = \frac{\sin^2x}{2}, and ∫0πsin⁡2x dx=π2\int_0^\pi\sin^2x\,dx = \frac\pi2.

    Answer. I0=πc2(a4−b4)=m2(a2+b2)I_0 = \frac{\pi c}{2}(a^4 - b^4) = \frac m2(a^2 + b^2); the centroid of the arch is (π2,π8)\big(\frac\pi2, \frac\pi8\big). A centroid of a triangle by a different route is in 6.4.

    Your answerFind yˉ\bar y for the region under one arch of y=sin⁡xy = \sin x, 0≤x≤π0 \le x \le \pi.
    Beyond the course: for understanding· Pappus (label A)

    Apostol 11.17 proves two theorems of Pappus: the volume of a solid of revolution is the area of the generating region times the length of the path of its centroid (2πyˉ2\pi\bar y around the xx-axis), and the lateral surface area is the arc length times the path of the centroid of the curve. The semicircle’s centroid at height 2a/π2a/\pi (6.1) recovers the area 4πa24\pi a^2 of a sphere: 2π⋅2aπ⋅πa=4πa22\pi\cdot\frac{2a}{\pi}\cdot\pi a = 4\pi a^2.

    Triple integrals

    Definition T

    Triple integral

    A box is [a,b]×[c,d]×[e,g][a, b] \times [c, d] \times [e, g]. Partitions, step functions (constant on the open sub-boxes), the step integral (value times volume), lower and upper integrals, the epsilon-sandwich criterion, content zero (with boxes), the integrability of continuous functions and Fubini in any of the six orders all carry over word for word. The triple integral of ff over a region EE is ∭Ef dV\iiint_Ef\,dV, defined by extension by zero. A region between two surfaces, E={(x,y,z):(x,y)∈D, ζ1(x,y)≤z≤ζ2(x,y)}E = \{(x, y, z) : (x, y) \in D,\ \zeta_1(x, y) \le z \le \zeta_2(x, y)\} with DD type I or II, is integrated as ∬D∫ζ1ζ2f dz dA\iint_D\int_{\zeta_1}^{\zeta_2}f\,dz\,dA. The volume of EE is ∭E1 dV\iiint_E1\,dV.

    In one lineThe triple integral ∭Ef dV\iiint_Ef\,dV is defined exactly as the double integral, with boxes [a,b]×[c,d]×[e,g][a, b] \times [c, d] \times [e, g], step functions constant on open sub-boxes, and volume in place of area.

    Why it existsNothing in the definition of the double integral used the number of dimensions, so everything carries over to Rn\mathbb R^n word for word.

    Cylindrical coordinates (r,θ,z)(r, \theta, z) use polar coordinates in the xyxy-plane and keep zz: dV=r dz dr dθdV = r\,dz\,dr\,d\theta. Spherical coordinates (ρ,φ,θ)(\rho, \varphi, \theta) use x=ρsin⁡φcos⁡θx = \rho\sin\varphi\cos\theta, y=ρsin⁡φsin⁡θy = \rho\sin\varphi\sin\theta, z=ρcos⁡φz = \rho\cos\varphi, with ρ\rho the distance to the origin and φ\varphi the angle from the positive zz-axis, and dV=ρ2sin⁡φ dρ dφ dθdV = \rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta. Both factors are Jacobian determinants, computed in 6.4.

    Worked example MATH 376 worksheet 10 problem 6
    Find the volume of the solid in the first octant under the plane x+2y+z=4x + 2y + z = 4.

    Solution.

    1. The solid. x≥0x \ge 0, y≥0y \ge 0, 0≤z≤4−x−2y0 \le z \le 4 - x - 2y. The upper surface is a graph over the xyxy-plane.
    2. The shadow. The height is non-negative where x+2y≤4x + 2y \le 4: the triangle 0≤x≤40 \le x \le 4, 0≤y≤4−x20 \le y \le \frac{4 - x}{2}.
    3. The integral. V=∫04 ⁣∫0(4−x)/2 ⁣∫04−x−2ydz dy dx=∫04 ⁣∫0(4−x)/2(4−x−2y) dy dxV = \int_0^4\!\int_0^{(4-x)/2}\!\int_0^{4-x-2y}dz\,dy\,dx = \int_0^4\!\int_0^{(4-x)/2}(4 - x - 2y)\,dy\,dx.
    4. Inner. An antiderivative in yy is (4−x)y−y2(4 - x)y - y^2, which at y=4−x2y = \frac{4 - x}{2} equals (4−x)22−(4−x)24=(4−x)24\frac{(4 - x)^2}{2} - \frac{(4 - x)^2}{4} = \frac{(4 - x)^2}{4}.
    5. Outer. ∫04(4−x)24 dx=[−(4−x)312]04=6412=163\int_0^4\frac{(4 - x)^2}{4}\,dx = \Big[-\frac{(4 - x)^3}{12}\Big]_0^4 = \frac{64}{12} = \frac{16}{3}.

    Answer. 163\dfrac{16}{3}. Check: the solid is a tetrahedron with legs 4,2,44, 2, 4, volume 16⋅4⋅2⋅4=163\frac16\cdot4\cdot2\cdot4 = \frac{16}3.

    Worked example MATH 376 worksheet 27 problem 7 (the printed answer lost its factor of $\pi$)
    Compute ∭Ez dV\iiint_Ez\,dV where E={(x,y,z):0≤z≤4−x2−y2}E = \{(x, y, z): 0 \le z \le 4 - x^2 - y^2\} (the part above the xyxy-plane under the paraboloid).

    Solution.

    1. The base. EE is non-empty only where 4−x2−y2≥04 - x^2 - y^2 \ge 0: the disc x2+y2≤4x^2 + y^2 \le 4. Use cylindrical coordinates: 0≤r≤20 \le r \le 2, 0≤θ≤2π0 \le \theta \le 2\pi, 0≤z≤4−r20 \le z \le 4 - r^2, dV=r dz dr dθdV = r\,dz\,dr\,d\theta.
    2. Innermost. ∫04−r2z dz=(4−r2)22\int_0^{4 - r^2}z\,dz = \frac{(4 - r^2)^2}{2}.
    3. The rest. Nothing depends on θ\theta, giving 2π2\pi: 2π⋅12∫02r(4−r2)2 dr2\pi\cdot\frac12\int_0^2r(4 - r^2)^2\,dr. Substitute u=4−r2u = 4 - r^2, du=−2r drdu = -2r\,dr: ∫02r(4−r2)2 dr=12∫04u2 du=323\int_0^2r(4 - r^2)^2\,dr = \frac12\int_0^4u^2\,du = \frac{32}{3}.
    4. Combine. 2π⋅12⋅323=32π32\pi\cdot\frac12\cdot\frac{32}{3} = \frac{32\pi}{3}.

    Answer. 32π3\dfrac{32\pi}{3}.

    Your answerFind the volume of the tetrahedron in the first octant bounded by the coordinate planes and the plane x+2y+3z=6x + 2y + 3z = 6.
    Worked example new (spherical coordinates; compare Apostol 10.8 for wires)
    Find the moment of inertia of a solid ball of radius RR and constant density about a diameter, in terms of its mass MM.

    Solution.

    1. Set up. Take the zz-axis as the diameter. The distance to it is x2+y2=ρsin⁡φ\sqrt{x^2 + y^2} = \rho\sin\varphi, so with density cc: Iz=c∭(ρsin⁡φ)2 ρ2sin⁡φ dρ dφ dθI_z = c\iiint(\rho\sin\varphi)^2\,\rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta. δ2=x2+y2\delta^2 = x^2 + y^2 and dV=ρ2sin⁡φ dρ dφ dθdV = \rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta.
    2. Separate the variables. Iz=c∫0Rρ4 dρ∫0πsin⁡3φ dφ∫02πdθ=c⋅R55⋅43⋅2π=8πcR515I_z = c\int_0^R\rho^4\,d\rho\int_0^\pi\sin^3\varphi\,d\varphi\int_0^{2\pi}d\theta = c\cdot\frac{R^5}{5}\cdot\frac43\cdot2\pi = \frac{8\pi cR^5}{15}. ∫0πsin⁡3φ dφ=43\int_0^\pi\sin^3\varphi\,d\varphi = \frac43.
    3. Use the mass. M=c⋅4πR33M = c\cdot\frac{4\pi R^3}{3}, so Iz=8πcR515=25MR2I_z = \frac{8\pi cR^5}{15} = \frac25MR^2.

    Answer. I=25MR2I = \dfrac25MR^2.

    Limits and integrals

    Can you swap a limit and an integral? Not always: it works for uniform convergence (1.6 in one variable), and fails for pointwise convergence.

    Theorem T MATH 376 homework 4 problem 2

    Integrals commute with uniform limits on a rectangle

    Let fnf_n be integrable on QQ and fn→ff_n \to f uniformly on QQ, that is ∥fn−f∥∞=sup⁡Q∣fn−f∣→0\lVert f_n - f \rVert_\infty = \sup_Q|f_n - f| \to 0. Then ff is integrable and ∬Qfn→∬Qf\iint_Qf_n \to \iint_Qf.

    In one lineIf fnf_n are integrable on QQ and fn→ff_n \to f uniformly, then ff is integrable and ∬fn→∬f\iint f_n \to \iint f; in fact ∣∬fn−∬f∣≤∥fn−f∥∞ area(Q)|\iint f_n - \iint f| \le \lVert f_n - f \rVert_\infty\,\text{area}(Q).

    Why it is trueIt says that when a sequence of functions settles down everywhere at the same rate, their integrals settle down to the integral of the limit.

    ProofMATH 376 homework 4 problem 2
    The idea: Squeeze f between f_n minus eta and f_n plus eta, where eta is the uniform distance, and use a step sandwich for f_n. The constants plus or minus eta are step functions with integral eta times area.
    Pick nn with ∥fn−f∥∞<η=ε/(3A)\lVert f_n - f \rVert_\infty < \eta = \varepsilon/(3A).
    Let A=area(Q)>0A = \text{area}(Q) > 0 and fix ε>0\varepsilon > 0. Uniform convergence gives nn with ∥fn−f∥∞<η:=ε/(3A)\lVert f_n - f \rVert_\infty < \eta := \varepsilon/(3A).
    Choose step functions s≤fn≤ts \le f_n \le t with ∬(t−s)<ε/3\iint(t - s) < \varepsilon/3.
    fnf_n is integrable: the criterion gives step functions s≤fn≤ts \le f_n \le t with ∬(t−s)<ε/3\iint(t - s) < \varepsilon/3.
    Then s−η≤f≤t+ηs - \eta \le f \le t + \eta and ff is bounded.
    fn−η<f<fn+ηf_n - \eta < f < f_n + \eta everywhere; adding a constant to a step function gives a step function.
    ∬((t+η)−(s−η))=∬(t−s)+2ηA<ε/3+2ε/3=ε\iint\big((t + \eta) - (s - \eta)\big) = \iint(t - s) + 2\eta A < \varepsilon/3 + 2\varepsilon/3 = \varepsilon, so ff is integrable by the criterion.
    The constants contribute 2ηA=2ε/32\eta A = 2\varepsilon/3.
    Then ∣∬fn−∬f∣≤ηnA=∥fn−f∥∞A→0\big|\iint f_n - \iint f\big| \le \eta_nA = \lVert f_n - f \rVert_\infty A \to 0. ■\blacksquare
    Now ff is known to be integrable. Put ηn=∥fn−f∥∞\eta_n = \lVert f_n - f \rVert_\infty, so fn−ηn≤f≤fn+ηnf_n - \eta_n \le f \le f_n + \eta_n at every point. Integrals of integrable functions respect order, and a constant ηn\eta_n has integral ηnA\eta_nA.
    Worked example MATH 376 worksheet 15 problem 3
    Show that pointwise convergence is not enough: let fn(x)=nxe−nx2f_n(x) = nxe^{-nx^2} on [0,1][0, 1]. Find the pointwise limit, the limit of the integrals, and the sup norm of fnf_n.

    Solution.

    1. Pointwise limit. fn(0)=0f_n(0) = 0 for all nn, and for fixed x>0x > 0, nxe−nx2→0nxe^{-nx^2} \to 0 because the exponential enx2e^{nx^2} beats the multiple nn. So fn→0f_n \to 0 pointwise, and ∫010=0\int_0^10 = 0.
    2. Integrals. Substitute u=nx2u = nx^2, du=2nx dxdu = 2nx\,dx: ∫01nxe−nx2 dx=12∫0ne−u du=1−e−n2→12≠0\int_0^1nxe^{-nx^2}\,dx = \frac12\int_0^ne^{-u}\,du = \frac{1 - e^{-n}}{2} \to \frac12 \ne 0.
    3. Sup norm. fn′(x)=ne−nx2(1−2nx2)f_n'(x) = ne^{-nx^2}(1 - 2nx^2) is zero at x=1/2nx = 1/\sqrt{2n}, where fn=n/(2e)f_n = \sqrt{n/(2e)}. So ∥fn−0∥∞≥n/(2e)→∞\lVert f_n - 0 \rVert_\infty \ge \sqrt{n/(2e)} \to \infty.

    Answer. The limit of the integrals is 12\frac12, the integral of the limit is 00, and the sup norm tends to infinity: the convergence is not uniform, so the theorem does not apply.

    Where it is used

    Used inside maths· Inside maths: expectation, Lebesgue measure and counting problems

    A joint density of two random variables is a function f(x,y)≥0f(x, y) \ge 0 with ∬f=1\iint f = 1, and probabilities of events are double integrals over the event’s region (see 10.1). The independence of XX and YY is the statement that the density factors as g(x)h(y)g(x)h(y), which is the separable case of Fubini. In analysis, the exact class of Riemann integrable functions is the bounded functions whose discontinuities have Lebesgue measure zero (a stronger statement than content zero, proved in 521), and the Lebesgue integral’s version of Fubini (Fubini and Tonelli) is the tool used to interchange sums and integrals. The volume of a unit ball in Rn\mathbb R^n is πn/2/Γ(n2+1)\pi^{n/2}/\Gamma(\frac n2 + 1), which tends to 00 as nn grows, one of the first surprises of high-dimensional geometry; the Final’s computation of Vol(Vn(t))=tn/n!\text{Vol}(V_n(t)) = t^n/n! is the same kind of slicing argument.

    Used in the real world· Used in the real world: probability in two variables, and Monte Carlo integration

    Two components of a machine fail at times XX and YY (in years, scaled to [0,1][0, 1]), and the joint density is f(x,y)=8xyf(x, y) = 8xy on the triangle 0≤x≤y≤10 \le x \le y \le 1 (the first component fails first). It integrates to 11: ∫01 ⁣∫0y8xy dx dy=∫014y3 dy=1\int_0^1\!\int_0^y8xy\,dx\,dy = \int_0^14y^3\,dy = 1. The chance that the two failure times add up to at most 11, that is X+Y≤1X + Y \le 1, is the integral over the region x≤y≤1−xx \le y \le 1 - x, 0≤x≤120 \le x \le \frac12: ∫01/2 ⁣∫x1−x8xy dy dx=∫01/24x(1−2x) dx=16\int_0^{1/2}\!\int_x^{1-x}8xy\,dy\,dx = \int_0^{1/2}4x(1 - 2x)\,dx = \frac16. And the expected time of the first failure is E[X]=∬xf=∫01 ⁣∫0y8x2y dx dy=815E[X] = \iint xf = \int_0^1\!\int_0^y8x^2y\,dx\,dy = \frac{8}{15}.

    When the integral is over a region in 10 or 100 variables, a grid with 10 points per axis has 101010^{10} or 1010010^{100} cells, and no computer can sum them. Monte Carlo integration replaces the grid by random points: to compute the integral of ff over a region SS inside a box of volume VV, pick NN random points in the box and average f⋅1Sf \cdot 1_S; the estimate is V⋅(average)V\cdot\text{(average)}, and its error is about 1/N1/\sqrt N whatever the dimension. The method was developed at Los Alamos in the late 1940s: Stanislaw Ulam had the idea in 1946 while thinking about the chance of winning a game of solitaire, von Neumann took it up for neutron diffusion, and Metropolis suggested the name; Metropolis and Ulam published the first paper in 1949. Today it prices financial derivatives and renders films. Run the lab below.

    Python labMonte Carlo against a grid, as the dimension grows
    import numpy as np
    from math import gamma, pi
    
    rng = np.random.default_rng(7)
    def exact(d): return pi ** (d / 2) / gamma(d / 2 + 1)          # volume of the unit ball in R^d
    
    def monte_carlo(d, N):
        x = rng.uniform(-1, 1, size=(N, d))                          # N random points in the cube [-1, 1]^d
        return 2 ** d * np.mean((x ** 2).sum(axis=1) <= 1)           # cube volume times the fraction inside
    
    def grid(d, N):
        n = max(1, int(round(N ** (1 / d))))                         # n midpoints per axis, n^d points in all
        m = -1 + (2 * np.arange(n) + 1) / n
        G = np.stack(np.meshgrid(*([m] * d), indexing="ij"), axis=-1).reshape(-1, d)
        return 2 ** d * np.mean((G ** 2).sum(axis=1) <= 1), n ** d
    
    print(f"{'dim':>3} {'exact':>9} | {'Monte Carlo':>11} {'error':>8} | {'grid':>9} {'error':>8} {'points':>8}")
    for d in (2, 4, 6, 8):
        mc = monte_carlo(d, 100000); g, used = grid(d, 100000)
        print(f"{d:3d} {exact(d):9.4f} | {mc:11.4f} {abs(mc - exact(d)):8.4f} | {g:9.4f} {abs(g - exact(d)):8.4f} {used:8d}")
    print("\nMonte Carlo error in 2D (mean of 20 runs):")
    for N in (100, 10000, 1000000):
        e = np.mean([abs(monte_carlo(2, N) - pi) for _ in range(20)])
        print(f"  N = {N:8d}   error {e:.5f}   error * sqrt(N) = {e * N ** 0.5:.3f}")

    Try this. Run it. The program estimates the volume of the unit ball in 2, 4, 6 and 8 dimensions two ways with about 100,000 points each: random points in the cube (Monte Carlo) and a regular grid of midpoints. In 2 dimensions the grid is better: its error is of order 0.001 and the Monte Carlo error is of order 0.01. By 4 dimensions the situation has reversed and the Monte Carlo error stays near 0.01 while the grid error is about 0.1. In 8 dimensions 100,000 points allow only 4 grid points per axis, and the grid answer is useless, while Monte Carlo is still within about 0.2 of the true value. The second table shows the Monte Carlo error in 2 dimensions at N = 100, 10,000 and 1,000,000 points: the last column (error times the square root of N) stays near 1.3, which is the statement that the error shrinks like 1 over the square root of N. Try changing the seed, or replace the ball by another region.

    Your answerThe joint density of two failure times is f(x,y)=8xyf(x, y) = 8xy on 0≤x≤y≤10 \le x \le y \le 1. What is P(X+Y≤1)P(X + Y \le 1)?

    Traps

    Watch out· Integrable is not 'bounded', and not 'a best step function exists'

    On the 376 final, a student wrote, in problem 6(a), that a bounded function on the square is integrable because the volume under it is finite, and the verdict was the wrong way round (the rubric gave 2 of 3). Boundedness only makes the lower and upper integrals finite numbers. Integrable asks that they are equal, and the counterexample is the function that is 11 at points with both coordinates rational and 00 elsewhere. On the midterm, in problem 4(b), the rubric took a point (2 of 3) because their argument used ‘the biggest step function below ff’ and ‘the smallest above ff’, which need not exist and are not equal. The working form is the epsilon-sandwich: for every ε\varepsilon there is a pair, and the pair changes with ε\varepsilon.

    Watch out· Read a set definition aloud and sketch it before you compute

    On the 376 final, a student read the set max⁡(∣x∣,∣y∣,∣z∣)=1\max(|x|, |y|, |z|) = 1 of problem 2 as a unit cube in the first octant, because they dropped the absolute values, and lost 1 of 5 points (‘partially correct, with minor computational mistake’). The condition says every coordinate lies in [−1,1][-1, 1] and at least one has absolute value exactly 11: the surface of the cube [−1,1]3[-1, 1]^3, with volume 88 for the solid inside it. Their regrade request (‘I didn’t notice the absolute value’) was declined.

    Watch out· Slice with the right variable, and keep parameters apart from integration variables

    On the 376 final, a student started the induction for the volume of Vn(t)V_n(t) (problem 5(a), 3 of 4 points) from the formula tn/n!t^n/n! given in the problem, and in the step they integrated the constant volume of the slice over ss. The slice at xn=sx_n = s is Vn−1(t−s)V_{n-1}(t - s), not Vn−1(t)V_{n-1}(t), and an antiderivative that treats ss as if it were tt is wrong. Say in words what the slice is before they write the integral, and write the integrand as a function of the integration variable. Do not work backwards from the answer given in the problem.

    Watch out· Inner limits depend on the outer variable only

    The limits of the outermost integral are constants. The inner limits may contain the outer variable, never the inner one. Reversing an order without sketching the region is how limits go wrong. Find where curves cross before you fix the outer limits.

    Watch out· Polar coordinates: the factor r, and the shape of the region

    dA=r dr dθdA = r\,dr\,d\theta, not dr dθdr\,d\theta. Polar limits are constants only for a disc, a sector or a ring centred at the origin; for other regions rewrite the limits. And a product formula ∫g∫h\int g\int h needs both a rectangle and a product integrand.

    Watch out· Pick the order that has an antiderivative

    Fubini says both orders give the same number, so choose the one in which the inner antiderivative exists. ∫ex2 dx\int e^{x^2}\,dx, ∫sin⁡xx dx\int\frac{\sin x}{x}\,dx and ∫dxln⁡x\int\frac{dx}{\ln x} have no elementary antiderivative. Use the continuity of the integrand to justify swapping: where it is not continuous at one point (such as sin⁡xx\frac{\sin x}{x} at 00), say that it extends continuously.

    Problems

    checknew (MATH 376 worksheet 6 style)

    Let s=2s = 2 on [0,1)×[0,3][0, 1) \times [0, 3] and s=−1s = -1 on [1,4]×[0,3][1, 4] \times [0, 3]. Compute ∬s\iint s over [0,4]×[0,3][0, 4] \times [0, 3].

    Solution

    Left piece: value 22, area 1⋅3=31\cdot3 = 3, term 66. Right piece: value −1-1, area 3⋅3=93\cdot3 = 9, term −9-9. Total −3-3.

    check

    Which of these is a type I region, a type II region, or both: (a) the triangle 0≤y≤x≤10 \le y \le x \le 1; (b) the unit disc; (c) the ring 1≤x2+y2≤41 \le x^2 + y^2 \le 4?

    Solution

    (a) Both: 0≤x≤10 \le x \le 1, 0≤y≤x0 \le y \le x; or 0≤y≤10 \le y \le 1, y≤x≤1y \le x \le 1. (b) Both: −1≤x≤1-1 \le x \le 1, ∣y∣≤1−x2|y| \le \sqrt{1 - x^2}, and the same with x,yx, y swapped. (c) Neither as written: a vertical line through the hole meets the ring in two segments. Cut it into pieces, or use polar coordinates (1≤r≤21 \le r \le 2).

    checkMATH 376 homework 3 problem 5

    Compute ∬[1,2]2(xy+yx) dA\iint_{[1, 2]^2}\Big(\dfrac xy + \dfrac yx\Big)\,dA.

    Solution

    Each term is separable on a rectangle. ∫12x dx⋅∫12dyy=32ln⁡2\int_1^2x\,dx\cdot\int_1^2\frac{dy}{y} = \frac32\ln2, and ∫12y dy⋅∫12dxx=32ln⁡2\int_1^2y\,dy\cdot\int_1^2\frac{dx}{x} = \frac32\ln2. The sum is 3ln⁡23\ln2.

    checkMATH 376 homework 3 problem 4

    Compute ∬[0,1]×[0,2π](xsin⁡y+xexy) dA\iint_{[0, 1] \times [0, 2\pi]}(x\sin y + xe^{xy})\,dA.

    Solution

    By linearity. ∬xsin⁡y=∫01x dx∫02πsin⁡y dy=12⋅0=0\iint x\sin y = \int_0^1x\,dx\int_0^{2\pi}\sin y\,dy = \frac12\cdot0 = 0. For the second, integrate in yy first: ∫02πxexy dy=e2πx−1\int_0^{2\pi}xe^{xy}\,dy = e^{2\pi x} - 1, then ∫01(e2πx−1) dx=e2π−12π−1\int_0^1(e^{2\pi x} - 1)\,dx = \frac{e^{2\pi} - 1}{2\pi} - 1. Total e2π−12π−1\dfrac{e^{2\pi} - 1}{2\pi} - 1.

    useMATH 376 worksheet 9 problem 1 and worksheet 7 problem 4

    Compute (a) ∫0π ⁣∫yπsin⁡xx dx dy\displaystyle\int_0^\pi\!\int_y^\pi\frac{\sin x}{x}\,dx\,dy and (b) ∫01 ⁣∫y11+x3 dx dy\displaystyle\int_0^1\!\int_{\sqrt y}^1\sqrt{1 + x^3}\,dx\,dy.

    Solution

    (a) The region is 0≤y≤x≤π0 \le y \le x \le \pi. Reversed: ∫0π ⁣∫0xsin⁡xx dy dx=∫0πsin⁡x dx=2\int_0^\pi\!\int_0^x\frac{\sin x}{x}\,dy\,dx = \int_0^\pi\sin x\,dx = 2 (the integrand sin⁡xx\frac{\sin x}{x} extends continuously to x=0x = 0 with value 11). (b) y≤x≤1\sqrt y \le x \le 1 means y≤x2y \le x^2, so the region is 0≤y≤x20 \le y \le x^2, 0≤x≤10 \le x \le 1. Reversed: ∫01x21+x3 dx=13∫12u1/2 du=29(22−1)\int_0^1x^2\sqrt{1 + x^3}\,dx = \frac13\int_1^2u^{1/2}\,du = \frac29(2\sqrt2 - 1), with u=1+x3u = 1 + x^3.

    use

    Find the volume of the solid bounded by the paraboloid z=x2+y2z = x^2 + y^2 and the plane z=4z = 4.

    Solution

    The solid is x2+y2≤z≤4x^2 + y^2 \le z \le 4 over the disc x2+y2≤4x^2 + y^2 \le 4. In polar coordinates V=∫02π∫02(4−r2) r dr dθ=2π[2r2−r44]02=2π⋅4=8πV = \int_0^{2\pi}\int_0^2(4 - r^2)\,r\,dr\,d\theta = 2\pi\big[2r^2 - \frac{r^4}{4}\big]_0^2 = 2\pi\cdot4 = 8\pi.

    usenew (compare Apostol 11.16)

    A plate is the triangle with vertices (0,0)(0, 0), (2,0)(2, 0), (0,2)(0, 2) with density φ(x,y)=x+y\varphi(x, y) = x + y. Find its mass and centre of mass.

    Solution

    The region is 0≤x≤20 \le x \le 2, 0≤y≤2−x0 \le y \le 2 - x. Mass: ∫02 ⁣∫02−x(x+y) dy dx=∫02[x(2−x)+(2−x)22]dx=∫02(2−x22)dx=4−43=83\int_0^2\!\int_0^{2-x}(x + y)\,dy\,dx = \int_0^2\big[x(2 - x) + \frac{(2-x)^2}{2}\big]dx = \int_0^2\big(2 - \frac{x^2}{2}\big)dx = 4 - \frac43 = \frac83. Moment ∬xφ dA=∫02[x2(2−x)+x(2−x)22]dx\iint x\varphi\,dA = \int_0^2\big[x^2(2 - x) + \frac{x(2-x)^2}{2}\big]dx. The bracket is 2x2−x3+2x−2x2+x32=2x−x322x^2 - x^3 + 2x - 2x^2 + \frac{x^3}{2} = 2x - \frac{x^3}{2}, and ∫02(2x−x32) dx=4−2=2\int_0^2\big(2x - \frac{x^3}{2}\big)\,dx = 4 - 2 = 2. So xˉ=28/3=34\bar x = \frac{2}{8/3} = \frac34, and by symmetry yˉ=34\bar y = \frac34.

    useMATH 376 worksheet 7 problem 5

    Compute the volume of the ball of radius RR in spherical coordinates, and check against the polar computation.

    Solution

    V=∫02π ⁣∫0π ⁣∫0Rρ2sin⁡φ dρ dφ dθ=2π⋅2⋅R33=4πR33V = \int_0^{2\pi}\!\int_0^\pi\!\int_0^R\rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta = 2\pi\cdot2\cdot\frac{R^3}{3} = \frac{4\pi R^3}{3}, since ∫0πsin⁡φ dφ=2\int_0^\pi\sin\varphi\,d\varphi = 2. It agrees with 2∫02π∫0RR2−r2 r dr dθ=4πR332\int_0^{2\pi}\int_0^R\sqrt{R^2 - r^2}\,r\,dr\,d\theta = \frac{4\pi R^3}{3}.

    proveMATH 376 homework 3 problem 2, part (a) only

    Prove that if ss and tt are step functions on QQ and c1,c2c_1, c_2 are real numbers, then c1s+c2tc_1s + c_2t is a step function and ∬(c1s+c2t)=c1∬s+c2∬t\iint(c_1s + c_2t) = c_1\iint s + c_2\iint t.

    Solution

    Let PP be the common refinement of partitions for which ss and tt are constant on open pieces. On the open piece RijR_{ij} of area AijA_{ij} the function c1s+c2tc_1s + c_2t equals the constant c1sij+c2tijc_1s_{ij} + c_2t_{ij}, so it is a step function for PP, and ∬(c1s+c2t)=∑(c1sij+c2tij)Aij\iint(c_1s + c_2t) = \sum(c_1s_{ij} + c_2t_{ij})A_{ij}. Split the sum into two and pull out the constants: c1∑sijAij+c2∑tijAij=c1∬s+c2∬tc_1\sum s_{ij}A_{ij} + c_2\sum t_{ij}A_{ij} = c_1\iint s + c_2\iint t, where the integrals of ss and tt may be computed with the common refinement because the step integral does not depend on the partition.

    proveMATH 376 Midterm 1 problem 4(b) style

    Let g:Q→[0,1]g: Q \to [0, 1] be integrable. Prove that for every ε>0\varepsilon > 0 there are step functions s≤g≤ts \le g \le t with 0≤s0 \le s, t≤1t \le 1 and ∬(t−s)<ε\iint(t - s) < \varepsilon. (Both ends must be repaired.)

    Solution

    Fix ε>0\varepsilon > 0. By the criterion choose step functions S≤g≤TS \le g \le T with ∬(T−S)<ε\iint(T - S) < \varepsilon. Put s=max⁡(0,S)s = \max(0, S) and t=min⁡(1,T)t = \min(1, T). On each piece of a common refinement S,TS, T are constants, so s,ts, t are constants: step functions. s≤gs \le g because S≤gS \le g and 0≤g0 \le g; g≤tg \le t because g≤Tg \le T and g≤1g \le 1. Also 0≤s0 \le s and t≤1t \le 1 by definition. Finally s≥Ss \ge S and t≤Tt \le T give t−s≤T−St - s \le T - S pointwise, so by monotonicity ∬(t−s)≤∬(T−S)<ε\iint(t - s) \le \iint(T - S) < \varepsilon.

    proveMATH 376 homework 4 problem 1

    Suppose fnf_n are continuous on QQ and fn→ff_n \to f uniformly. Prove that ff is continuous.

    Solution

    Fix p∈Qp \in Q and ε>0\varepsilon > 0. Pick NN with ∣fN(z)−f(z)∣<ε/3|f_N(z) - f(z)| < \varepsilon/3 for all z∈Qz \in Q (uniform convergence). Since fNf_N is continuous at pp, pick δ\delta with ∣fN(q)−fN(p)∣<ε/3|f_N(q) - f_N(p)| < \varepsilon/3 whenever ∥q−p∥∞<δ\lVert q - p \rVert_\infty < \delta. For such qq, ∣f(q)−f(p)∣≤∣f(q)−fN(q)∣+∣fN(q)−fN(p)∣+∣fN(p)−f(p)∣<ε|f(q) - f(p)| \le |f(q) - f_N(q)| + |f_N(q) - f_N(p)| + |f_N(p) - f(p)| < \varepsilon. The first and third bounds use that the same NN works at every point: that is uniformity.

    proveMATH 376 homework 4 problem 2 / Apostol 11.5

    Prove that a finite union of sets of content zero has content zero, and that a single point has content zero.

    Solution

    A point pp: cover it by the open square of side ε/2\sqrt\varepsilon/2 centred at pp, of area ε/4≤ε\varepsilon/4 \le \varepsilon. A union S1∪⋯∪SmS_1 \cup \dots \cup S_m: for each ii cover SiS_i by finitely many open rectangles of total area at most ε/m\varepsilon/m; all the rectangles together are finitely many and cover the union, with total area at most m⋅ε/m=εm\cdot\varepsilon/m = \varepsilon.

    stretchMATH 376 Final problem 5(a) style

    For s>0s > 0 let Un(s)={x∈Rn:0≤x1≤x2≤⋯≤xn≤s}U_n(s) = \{x \in \mathbb R^n: 0 \le x_1 \le x_2 \le \dots \le x_n \le s\}. Prove by induction that Vol(Un(s))=sn/n!\text{Vol}(U_n(s)) = s^n/n!.

    Solution

    n=1n = 1: U1(s)=[0,s]U_1(s) = [0, s] has length ss. Assume the claim for n−1n - 1 and fix s>0s > 0. If x∈Un(s)x \in U_n(s) then xn∈[0,s]x_n \in [0, s]; for xn=rx_n = r the other coordinates satisfy 0≤x1≤⋯≤xn−1≤r0 \le x_1 \le \dots \le x_{n-1} \le r, so the slice is Un−1(r)U_{n-1}(r), of volume rn−1/(n−1)!r^{n-1}/(n-1)!. By Fubini, Vol(Un(s))=∫0srn−1(n−1)! dr=snn!\text{Vol}(U_n(s)) = \int_0^s\frac{r^{n-1}}{(n-1)!}\,dr = \frac{s^n}{n!}. (Consequence: the n!n! orderings of nn coordinates fill the cube [0,s]n[0, s]^n, so n!⋅snn!=snn!\cdot\frac{s^n}{n!} = s^n.)

    stretchnew (Fubini counterexample check)

    Let f(x,y)=x2−y2(x2+y2)2f(x, y) = \dfrac{x^2 - y^2}{(x^2 + y^2)^2} on (0,1]2(0, 1]^2. Compute ∫01 ⁣∫01f dy dx\int_0^1\!\int_0^1f\,dy\,dx and ∫01 ⁣∫01f dx dy\int_0^1\!\int_0^1f\,dx\,dy. What does this say about Fubini’s theorem?

    Solution

    For fixed x>0x > 0, ∫01x2−y2(x2+y2)2 dy=[yx2+y2]01=11+x2\int_0^1\frac{x^2 - y^2}{(x^2 + y^2)^2}\,dy = \Big[\frac{y}{x^2 + y^2}\Big]_0^1 = \frac{1}{1 + x^2} (since ddyyx2+y2=x2−y2(x2+y2)2\frac{d}{dy}\frac{y}{x^2 + y^2} = \frac{x^2 - y^2}{(x^2 + y^2)^2}), and ∫01dx1+x2=π4\int_0^1\frac{dx}{1 + x^2} = \frac\pi4. By antisymmetry, f(y,x)=−f(x,y)f(y, x) = -f(x, y), so the other order gives −π4-\frac\pi4. The two iterated integrals differ. Fubini does not apply, because ff is not bounded near the origin, so it is not integrable on the square in the sense of this chapter. The hypothesis ‘continuous (or at least bounded and integrable) on the rectangle’ cannot be dropped.

    Summary

    • A step function on a rectangle is constant on the open pieces of a grid; its integral is the sum of value times area, independent of the grid, and it is linear, additive and monotone.
    • A bounded ff is integrable when its lower integral (sup of step integrals below) equals its upper integral (inf of step integrals above). Bounded alone is not enough. The working form: for every ε\varepsilon there are step functions s≤f≤ts \le f \le t with ∬(t−s)<ε\iint(t - s) < \varepsilon; the pair changes with ε\varepsilon and no ‘best’ pair need exist.
    • Continuous functions on a closed rectangle are integrable (uniform continuity), and so are bounded functions whose discontinuities have content zero; graphs of continuous functions have content zero, so regions between curves are fine.
    • Fubini: for continuous ff on a rectangle, ∬f\iint f equals either iterated integral. Choose the order with an elementary antiderivative; sketch the region and reverse the order when the written order cannot be done.
    • Over a type I region a≤x≤ba \le x \le b, φ1(x)≤y≤φ2(x)\varphi_1(x) \le y \le \varphi_2(x), ∬f=∫ab∫φ1φ2f dy dx\iint f = \int_a^b\int_{\varphi_1}^{\varphi_2}f\,dy\,dx (extend by zero). Outer limits are constants; inner limits may depend on the outer variable.
    • Areas, volumes, masses, centres of mass and moments of inertia are double and triple integrals; in polar coordinates dA=r dr dθdA = r\,dr\,d\theta, in cylindrical dV=r dz dr dθdV = r\,dz\,dr\,d\theta, in spherical dV=ρ2sin⁡φ dρ dφ dθdV = \rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta.
    • Uniform convergence lets you swap a limit and an integral: ∣∬fn−∬f∣≤∥fn−f∥∞ area(Q)|\iint f_n - \iint f| \le \lVert f_n - f \rVert_\infty\,\text{area}(Q); pointwise convergence does not (nxe−nx2nxe^{-nx^2}).
    • Monte Carlo integration estimates integrals by random sampling; its error is of order 1/N1/\sqrt N in every dimension, which is why it wins in high dimension.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    1.1 The real numbers and completeness
    1.3 Limits and continuity with epsilon and delta
    1.5 The Riemann integral: area as a limit
    1.6 Series, power series, and uniform convergence
    4.3 Compactness
    6.1 Paths and line integrals
    Leads to
    6.4 Green's theorem and change of variables
    Same idea elsewhere
    MATH 376: Weeks 3 and 4, Apostol 11.1 to 11.14. Midterm 1 problems 2 and 4 are here (the sandwich argument lost a point), Final problem 2 (reading a set definition), Final problem 5(a) (volume of a simplex by induction) and Final problem 6(a) (bounded does not mean integrable, which lost a point). Every worksheet and homework problem of the unit is worked below: worksheets 6 to 10 and 27, homework 3 and 4.
    MATH 521: 521 builds the Riemann integral in R^n the same way, then replaces content zero by Lebesgue measure zero (the exact set of discontinuities a Riemann integrable function can have) and replaces Fubini by the Fubini-Tonelli theorems for the Lebesgue integral.
    MATH 431 and STAT 309: A joint density $f(x, y)$ is a function integrated over regions of the plane; probabilities of events like $X + Y \le 1$ are double integrals over type I or II regions, and independence is the statement that the density factors, which is the separable case of Fubini.
    Physics and engineering: Centre of mass, moment of inertia of a plate or solid, and the volume of a solid are the integrals of this chapter. Monte Carlo integration (the lab below) is how integrals in dozens of variables are done in practice.