Unit 4, lesson 25

Double Integrals over General Regions

How to turn a region bounded by curves into correct iterated bounds, how to reverse the order of integration by redrawing the region, and when a double integral is improper.

  • Theory part 49
  • Practice part 50
  • Double Integrals

Real regions are rarely rectangles. A metal plate may be cut along a parabola, and a field may be bounded by a river and a road. The trick is to place the region inside a rectangle you already know how to handle and declare the integrand to be zero everywhere outside the region. What remains is careful bookkeeping, reading the bounds of each slice off a sketch.

Key terms

Integral over a bounded region

Definition Let DD be a bounded region in the plane whose boundary has zero area (for example, a boundary made of finitely many smooth curves), and let ff be defined on DD. Choose a closed rectangle RR containing DD and define

F(x,y)={f(x,y)on D,0on R∖D.F(x, y) = \begin{cases} f(x, y) & \text{on } D, \\ 0 & \text{on } R \setminus D. \end{cases}

If FF is integrable on RR, then ff is integrable on DD and

∬Df dA=∬RF dA.\iint_D f \, dA = \iint_R F \, dA.

The value does not depend on which rectangle RR is chosen.

In plain words Draw a faint box around the region and set the height to zero outside the region. The integral over the box then only collects what sits above DD.

Example Let DD be the triangle 0≤y≤x≤10 \le y \le x \le 1 inside R=[0,1]×[0,1]R = [0, 1] \times [0, 1] and f(x,y)=xyf(x, y) = xy. For a fixed xx, the extended function is xyxy for 0≤y≤x0 \le y \le x and 00 for x<y≤1x < y \le 1, so the zero part adds nothing and

∬Dxy dA=∫01∫0xxy dy dx=∫01x32 dx=18.\begin{aligned} \iint_D xy \, dA &= \int_0^1 \int_0^x xy \, dy \, dx \\[0.4em] &= \int_0^1 \frac{x^3}{2} \, dx = \frac{1}{8}. \end{aligned}

Type I and type II descriptions

Definition A region is of type I if it can be written as

D={(x,y)∣a≤x≤b,g1(x)≤y≤g2(x)}\begin{aligned} D = \{ (x, y) \mid{} & a \le x \le b, \\ & g_1(x) \le y \le g_2(x) \} \end{aligned}

with g1g_1 and g2g_2 continuous on [a,b][a, b] and g1≤g2g_1 \le g_2 there. It is of type II if it can be written as

D={(x,y)∣c≤y≤d,h1(y)≤x≤h2(y)}\begin{aligned} D = \{ (x, y) \mid{} & c \le y \le d, \\ & h_1(y) \le x \le h_2(y) \} \end{aligned}

with h1h_1 and h2h_2 continuous on [c,d][c, d] and h1≤h2h_1 \le h_2. If ff is continuous on a type I region DD, then

∬Df dA=∫ab∫g1(x)g2(x)f dy dx,\iint_D f \, dA = \int_a^b \int_{g_1(x)}^{g_2(x)} f \, dy \, dx,

and if ff is continuous on a type II region DD, then

∬Df dA=∫cd∫h1(y)h2(y)f dx dy.\iint_D f \, dA = \int_c^d \int_{h_1(y)}^{h_2(y)} f \, dx \, dy.

In plain words Type I means every vertical line through the region enters along one curve and leaves along one curve. Type II is the same with horizontal lines. The inner bounds may depend on the outer variable, but the outer bounds must be constants.

Example The region between y=x2y = x^2 and y=2xy = 2x is of both types. The curves meet where x2=2xx^2 = 2x, at x=0x = 0 and x=2x = 2, and on [0,2][0, 2] the line lies above the parabola. As type I,

∫02∫x22xx dy dx=∫02(2x2−x3) dx=43.\begin{aligned} &\int_0^2 \int_{x^2}^{2x} x \, dy \, dx \\[0.4em] &\quad = \int_0^2 (2x^2 - x^3) \, dx = \frac{4}{3}. \end{aligned}

As type II, solve each curve for xx to get x=y/2x = y/2 on the left and x=yx = \sqrt{y} on the right, for 0≤y≤40 \le y \le 4. Then

∫04∫y/2yx dx dy=∫04(y2−y28)dy=4−83=43.\begin{aligned} &\int_0^4 \int_{y/2}^{\sqrt{y}} x \, dx \, dy \\[0.4em] &\quad = \int_0^4 \left( \frac{y}{2} - \frac{y^2}{8} \right) dy \\[0.4em] &\quad = 4 - \frac{8}{3} = \frac{4}{3}. \end{aligned}

Both orders give the same answer, as they must.

Bounds from geometry

Definition To find iterated bounds for a region given by its boundary curves, sketch the curves, solve the boundary equations simultaneously to find where they meet, and choose the order. For a dy dxdy \, dx integral, the outer bounds are the least and greatest xx in DD, and for each fixed xx the inner bounds are the yy values where a vertical line at that xx enters and leaves DD. For dx dydx \, dy, swap the roles of xx and yy.

In plain words Sweep a strip across the region and only through points that belong to it. The ends of the strip are the inner bounds and the range of the sweep gives the outer bounds.

Example Take the region bounded by the parabola x=y2x = y^2 and the line x=y+2x = y + 2. They meet where y2=y+2y^2 = y + 2, that is (y−2)(y+1)=0(y - 2)(y + 1) = 0, so at y=−1y = -1 and y=2y = 2. A horizontal strip at height yy starts on the parabola and ends on the line, since y2≤y+2y^2 \le y + 2 for −1≤y≤2-1 \le y \le 2. So

∬Dx dA=∫−12∫y2y+2x dx dy=∫−12(y+2)2−y42 dy=365.\begin{aligned} \iint_D x \, dA &= \int_{-1}^{2} \int_{y^2}^{y + 2} x \, dx \, dy \\[0.4em] &= \int_{-1}^{2} \frac{(y + 2)^2 - y^4}{2} \, dy \\[0.4em] &= \frac{36}{5}. \end{aligned}

Splitting regions

Definition If D=D1∪D2D = D_1 \cup D_2, where D1D_1 and D2D_2 overlap at most along their boundaries (a set of zero area), and ff is integrable on D1D_1 and on D2D_2, then

∬Df dA=∬D1f dA+∬D2f dA.\begin{aligned} \iint_D f \, dA &= \iint_{D_1} f \, dA \\[0.4em] &\quad + \iint_{D_2} f \, dA. \end{aligned}

In plain words When the strip in your chosen order would hit different curves in different parts of the region, cut the region where the switch happens and add the pieces.

Example Use the parabola and line region again, but with vertical strips. For 0≤x≤10 \le x \le 1 a vertical line meets the region from the lower half of the parabola y=−xy = -\sqrt{x} to the upper half y=xy = \sqrt{x}. For 1≤x≤41 \le x \le 4 it starts on the line y=x−2y = x - 2 instead. So the region splits at x=1x = 1 and

∬Dx dA=∫01∫−xxx dy dx+∫14∫x−2xx dy dx=365.\begin{aligned} \iint_D x \, dA &= \int_0^1 \int_{-\sqrt{x}}^{\sqrt{x}} x \, dy \, dx \\[0.4em] &\quad + \int_1^4 \int_{x - 2}^{\sqrt{x}} x \, dy \, dx \\[0.4em] &= \frac{36}{5}. \end{aligned}

This matches the single type II integral, which shows why the horizontal order was the better choice here.

Changing the order of integration

Definition Reversing the order of an iterated integral means rewriting the same region in the other description. From the given bounds, reconstruct the region DD as a set, sketch it, and describe it again with the other variable outside. When ff is continuous on a region that is both type I and type II,

∫ab∫g1(x)g2(x)f dy dx=∫cd∫h1(y)h2(y)f dx dy.\begin{aligned} &\int_a^b \int_{g_1(x)}^{g_2(x)} f \, dy \, dx \\[0.4em] &\quad = \int_c^d \int_{h_1(y)}^{h_2(y)} f \, dx \, dy. \end{aligned}

Simply swapping the bounds is wrong, since the new outer bounds must be constants.

In plain words The bounds are a coded picture of the region. Decode them into a sketch, then read the sketch the other way.

Example The inner integral of

∫01∫y1x3+1 dx dy\int_0^1 \int_{\sqrt{y}}^{1} \sqrt{x^3 + 1} \, dx \, dy

has no elementary antiderivative. The bounds say 0≤y≤10 \le y \le 1 and y≤x≤1\sqrt{y} \le x \le 1, which is the region under y=x2y = x^2 for 0≤x≤10 \le x \le 1. In the other order,

∫01∫0x2x3+1 dy dx=∫01x2x3+1 dx=29(22−1),\begin{aligned} &\int_0^1 \int_0^{x^2} \sqrt{x^3 + 1} \, dy \, dx \\[0.4em] &\quad = \int_0^1 x^2 \sqrt{x^3 + 1} \, dx \\[0.4em] &\quad = \frac{2}{9} \left( 2\sqrt{2} - 1 \right), \end{aligned}

using the substitution u=x3+1u = x^3 + 1.

Bounded piecewise continuous integrands

Definition Let DD be a bounded region whose boundary has zero area. If ff is bounded on DD and continuous on DD except on a set of zero area, such as finitely many smooth curves, then ff is integrable on DD. Continuity is not needed for the iterated formula either. If ff is integrable on a type I region DD and, for every xx in [a,b][a, b], the inner integral

A(x)=∫g1(x)g2(x)f(x,y) dyA(x) = \int_{g_1(x)}^{g_2(x)} f(x, y) \, dy

exists, then AA is integrable on [a,b][a, b] and the double integral equals ∫abA(x) dx\int_a^b A(x) \, dx. The inner integrals do exist when ff is bounded and its discontinuities lie on finitely many curves that meet each vertical line in finitely many points, because then each slice is a bounded function with finitely many discontinuities. The type II formula holds in the same way with horizontal lines.

In plain words A jump along a curve does not spoil the integral, because a curve has no area. Unbounded functions are a different matter and need the next section.

Example On the square [0,1]×[0,1][0, 1] \times [0, 1] let f(x,y)=1f(x, y) = 1 when y≤xy \le x and f(x,y)=2f(x, y) = 2 when y>xy > x. The function jumps along the diagonal, which has zero area and meets each vertical line once. For fixed xx the inner integral is

∫0x1 dy+∫x12 dy=2−x,\int_0^x 1 \, dy + \int_x^1 2 \, dy = 2 - x,

and integrating from 00 to 11 gives 2−1/2=3/22 - 1/2 = 3/2. This agrees with adding the two triangles, 1⋅12+2⋅121 \cdot \tfrac{1}{2} + 2 \cdot \tfrac{1}{2}.

Improper cases

Definition A double integral is improper when the region is unbounded or the integrand is unbounded near some point or curve of DD. Suppose f≥0f \ge 0 is continuous on DD except on a bad set of zero area (a point, a curve, or nothing when only the region is unbounded). Take closed bounded regions D1⊆D2⊆…D_1 \subseteq D_2 \subseteq \dots inside DD, each with a boundary of zero area and each avoiding the bad set, so ff is continuous on every DnD_n, and suppose together they fill up DD apart from a set of zero area. Then

∬Df dA=lim⁡n→∞∬Dnf dA,\iint_D f \, dA = \lim_{n \to \infty} \iint_{D_n} f \, dA,

which is either finite (the integral converges) or ∞\infty (it diverges). The limit exists because the integrals increase with nn, and it is the same for every such sequence. For nonnegative ff the iterated integrals in either order, computed as improper one variable integrals, also give this same value, finite or infinite. This is Tonelli’s theorem. If ff changes sign, the double integral is called convergent only when the integral of ∣f∣\lvert f \rvert is finite. Then every such sequence gives the same limit, and both iterated integrals equal it. Without that condition the two orders can disagree.

In plain words Cut away a thin piece around the trouble spot, or keep only a large bounded part of an unbounded region, integrate, and let the part you left out shrink away. Nonnegative integrands behave well. Sign changing ones are safe only when the integral of the absolute value is finite.

Example On the triangle 0<y≤x≤10 < y \le x \le 1, the function 1/x1/\sqrt{x} blows up near the origin. The inner integral gives x\sqrt{x}, and

∫01∫0x1x dy dx=∫01x dx=23,\begin{aligned} \int_0^1 \int_0^x \frac{1}{\sqrt{x}} \, dy \, dx &= \int_0^1 \sqrt{x} \, dx \\[0.4em] &= \frac{2}{3}, \end{aligned}

so the integral converges. With 1/x21/x^2 instead, the inner integral is 1/x1/x and ∫01dx/x\int_0^1 dx/x diverges. For a warning about sign changes, the iterated integrals of

x2−y2(x2+y2)2\frac{x^2 - y^2}{(x^2 + y^2)^2}

over (0,1]×(0,1](0, 1] \times (0, 1] equal π/4\pi/4 in the order dy dxdy \, dx and −π/4-\pi/4 in the order dx dydx \, dy. The inner integral in yy is 1/(1+x2)1/(1 + x^2), and the other order gives −1/(1+y2)-1/(1 + y^2). This does not contradict the theorem, because near the origin the absolute value behaves like 1/r21/r^2 in polar coordinates and its double integral is infinite. The one-variable background is in improper integrals with singularities.

Check yourself

  1. Reverse the order and evaluate
∫02∫y/21ex2 dx dy.\int_0^2 \int_{y/2}^{1} e^{x^2} \, dx \, dy.
Show the answer

The bounds describe 0≤y≤20 \le y \le 2 and y/2≤x≤1y/2 \le x \le 1, which is the triangle 0≤x≤10 \le x \le 1, 0≤y≤2x0 \le y \le 2x. Then

∫01∫02xex2 dy dx=∫012xex2 dx=e−1.\begin{aligned} \int_0^1 \int_0^{2x} e^{x^2} \, dy \, dx &= \int_0^1 2x e^{x^2} \, dx \\[0.4em] &= e - 1. \end{aligned}
  1. Let DD be the region between y=x2y = x^2 and y=xy = x. Evaluate the integral of yy over DD.
Show the answer

The curves meet at x=0x = 0 and x=1x = 1, and x2≤xx^2 \le x there. As a type I region,

∫01∫x2xy dy dx=∫01x2−x42 dx=115.\begin{aligned} \int_0^1 \int_{x^2}^{x} y \, dy \, dx &= \int_0^1 \frac{x^2 - x^4}{2} \, dx \\[0.4em] &= \frac{1}{15}. \end{aligned}
  1. For which p>0p > 0 does the integral of x−px^{-p} over the triangle 0<y≤x≤10 < y \le x \le 1 converge, and what is its value then?
Show the answer

The integrand is positive, so iterated integration is valid. The inner integral is x⋅x−p=x1−px \cdot x^{-p} = x^{1 - p}, and ∫01x1−p dx\int_0^1 x^{1 - p} \, dx converges exactly when 1−p>−11 - p > -1, that is p<2p < 2. Its value is then 1/(2−p)1/(2 - p).

How this lesson connects

It also uses Double integrals over rectangles and Fubini under continuity and Solving boundary equations and one-variable substitution.