MAT1052 · Week 13 · Double Integrals Over Rectangular and General Regions
Double integrals: rectangular and general regions
You learn to compute iterated integrals on a rectangular region, to write general regions as type I / type II and set up the limits, to reverse the order of integration, and to compute volume, area and average value with a double integral.
double integraliterated integralFubini's theoremrectangular regiontype I regiontype II regionreversing the order of integrationvolumeareaaverage value
The single-variable integral gave the area under a curve. The double integral gives the volume under a surface: the solid between the surface z=f(x,y) and a region D in the xy-plane. The computation technique is surprisingly simple: you take two single-variable integrals nested. The real difficulty is not computing the integral but setting up the limits correctly. The exam on this topic usually has one “evaluate”, one “sketch the region and reverse the order” and one volume or area question.
Golden rules:
In the inner integral the outer variable behaves as a constant. Work from inside out.
The limits of the outer integral are always numbers. The limits of the inner integral may depend on the outer variable.
For a general region, first sketch the region. Find the intersections of the curves, decide which is below and which is above.
If the inner integral cannot be computed (no antiderivative), reverse the order of integration.
Rectangular region and Fubini’s theorem
Let R=[a,b]×[c,d]. The double integral is defined as the limit of Riemann sums: divide R into small rectangles, take a value of f in each, multiply by the area, add up, make the pieces smaller. If f≥0, the result is the volume under the surface.
On a rectangle the order is free. Choose whichever is easier.
Intuition.∫cdf(x,y)dy is the area of the slice formed when you cut the solid with the plane x= constant at a fixed value of x. If you add up (integrate) these areas along x, you find the volume. It is like slicing a loaf of bread and adding up the areas of the slices.
Example 1.∫03∫12x2ydydx.
inner (with respect to y, x constant): ∫_1^2 x²y dy = x² [y²/2]_1^2 = x² (2 - 1/2) = (3/2) x²outer: ∫_0^3 (3/2) x² dx = (3/2)(9) = 27/2
Since the integrand has the form g(x)h(y), the shortcut: (∫03x2dx)(∫12ydy)=9⋅23=227.
Example 2 (choosing the order).∬Rysin(xy)dA, R=[0,π]×[0,1]. If you integrate with respect to y first, integration by parts is needed. Integrate with respect to x first: ∫0πysin(xy)dx=[−cos(xy)]0π=1−cos(πy). Then ∫01(1−cosπy)dy=1−0=1.
TIP · choose the inner variable. If, next to the integrand in the inner integral, there is a factor that is the derivative with respect to the inner variable (in ysin(xy), when integrating with respect to x, y is the derivative of the inner function), that order is easy. Example 2 and Q3 are based on this idea.
General regions
If the region is not a rectangle, its boundaries are curves. There are two standard forms:
Type I (vertical strips).D={a≤x≤b,g1(x)≤y≤g2(x)}:
∬DfdA=∫ab∫g1(x)g2(x)f(x,y)dydx.
Type II (horizontal strips).D={c≤y≤d,h1(y)≤x≤h2(y)}:
∬DfdA=∫cd∫h1(y)h2(y)f(x,y)dxdy.
Template for setting limits
1) SKETCH the region. Compute the intersections of the boundary curves.2) For type I: draw a vertical arrow inside the region (from bottom to top). where the arrow enters → lower limit g1(x); where it exits → upper limit g2(x) the smallest and largest values x takes → outer limits a, b3) For type II: a horizontal arrow (from left to right). Entry h1(y), exit h2(y). the smallest and largest values of y → c, d4) If the arrow changes boundary inside the region (if the entry/exit curve changes) split the integral in two or try the other type.
Example 3.D: between y=x2 and y=2x. Intersection x2=2x, x=0 and x=2. On [0,2], 2x≥x2 (test: at x=1, 2>1). ∬DxdA:
Type I:∫02∫x22xxdydx=∫02x(2x−x2)dx=316−4=34.
The same region as type II: y goes from 0 to 4; y=2x⇒x=y/2 (left), y=x2⇒x=y (right). ∫04∫y/2yxdxdy also gives 34.
Reversing the order of integration
Some integrands have no antiderivative with respect to one variable: ey2, sin(y3), cos(x2), ysiny. If such an integral is given with that variable inside, you reverse the order. The job is to rewrite the region as the other type.
Example 4.∫01∫y1cos(x2)dxdy. cos(x2) has no antiderivative with respect to x.
Given: 0 ≤ y ≤ 1, y ≤ x ≤ 1 → the triangle with vertices (0,0), (1,0), (1,1)Sketch. With vertical strips (Type I): 0 ≤ x ≤ 1, 0 ≤ y ≤ x∫_0^1 ∫_0^x cos(x²) dy dx = ∫_0^1 x cos(x²) dx = [sin(x²)/2]_0^1 = sin(1)/2
The new inner integral ∫0xdy=x produced a factor, and this factor is exactly what the substitution u=x2 needs. In order-reversal questions this “magic” happens almost every time; if it does not, you have set up the limits wrong.
PITFALL · just swapping the limits. Turning ∫01∫y1…dxdy into ∫y1∫01…dydx is meaningless: a variable remains in the limit of the outer integral. Reversing the order always means sketching the region and defining it again.
Area, volume and average value
What do you want?
Formula
Area of D
∬D1dA
Volume under z=f(x,y)≥0, above D
∬DfdA
Volume between two surfaces
∬D(ftop−fbottom)dA
Average value
Area(D)1∬DfdA
Example 5. The volume under the paraboloid z=4−x2−y2 and above the square [0,1]×[0,1]: ∫01∫01(4−x2−y2)dydx=4−31−31=310.
If the region is not given explicitly in a volume question, the curve where the surface meets the xy-plane (or the projection of the intersection of two surfaces) is the boundary of the region. In Q9 the plane gives the line 2x+3y=6 at z=0, and the base is a triangle.
Common mistakes
Wrong
Correct
Putting a variable in the outer limit
Outer limits are constants; inner limits may vary
Mixing up the lower and upper curve
Pick an x value in between and check
Not computing the intersection points
The limits come from the intersections
When reversing the order, only swapping the limits
Sketch the region, rewrite as the other type
Misreading the order dydx
The innermost differential (dy) is the inner integral
Not holding the outer variable constant in the inner integral
∫x2ydy=x22y2
Not subtracting the lower surface in a volume
∬(top−bottom)dA
Not dividing by the area for the average
A1∬fdA
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1easy
Evaluate ∫02∫01(x+2y)dydx.
Show answer
4
Inner integral (with respect to y, x constant): [xy+y2]01=x+1. Outer: ∫02(x+1)dx=[2x2+x]02=2+2=4.
Question 2easy
Evaluate ∬Rxy2dA where R=[0,2]×[1,3].
Show answer
52/3
The region is a rectangle and the integrand is a product: the integral separates.(∫02xdx)(∫13y2dy)=2⋅327−1=352.
Question 3medium
Evaluate ∬RxexydA where R=[0,1]×[0,1].
Show answer
e−2
It is easy to integrate with respect to y first: ∫01xexydy=[exy]01=ex−1. Outer: ∫01(ex−1)dx=e−1−1=e−2. If you had integrated with respect to x first, integration by parts would have been needed.
Question 4easy
Use a double integral to find the area of the region between y=x2 and y=x.
Show answer
1/6
Intersection: x2=x, x=0,1. On [0,1], x≥x2, so the upper boundary is y=x.∫01∫x2xdydx=∫01(x−x2)dx=21−31=61.
Question 5medium
Evaluate ∬D(x+y)dA where D is bounded by y=x2 and y=2x.
Show answer
52/15
The intersection is at x=0,2; in between 2x≥x2. Type I: ∫02∫x22x(x+y)dydx. Inner: [xy+2y2]x22x=2x2+2x2−x3−2x4=4x2−x3−2x4. Outer: 332−4−1032=15160−60−48=1552.
Question 6hard
Evaluate ∫01∫x1ey2dydx by reversing the order of integration.
Show answer
2e−1
ey2 has no antiderivative, so reverse the order. The region: 0≤x≤1, x≤y≤1, that is, the triangle with vertices (0,0), (0,1), (1,1). Type II: 0≤y≤1, 0≤x≤y. ∫01∫0yey2dxdy=∫01yey2dy=[21ey2]01=2e−1.
Question 7hard
Evaluate ∫04∫x2sin(y3)dydx.
Show answer
31−cos8≈0.3818
The region: 0≤x≤4, x≤y≤2. y=x⟺x=y2. Type II: 0≤y≤2, 0≤x≤y2.∫02∫0y2sin(y3)dxdy=∫02y2sin(y3)dy. u=y3: 31[−cosu]08=31−cos8.
Question 8medium
Reverse the order of integration: ∫02∫0x2f(x,y)dydx.
Show answer
∫04∫y2f(x,y)dxdy
The region: 0≤x≤2, 0≤y≤x2. Below the parabola, to the left of the line x=2. The y range is from 0 to 4. For a fixed y, x goes from the parabola (x=y) to the line x=2.
Question 9medium
Find the volume of the solid in the first octant bounded by the coordinate planes and the plane 2x+3y+z=6.
Show answer
6
z=6−2x−3y, the base in the xy-plane is the triangle 2x+3y≤6: 0≤x≤3, 0≤y≤36−2x.∫03∫0(6−2x)/3(6−2x−3y)dydx. Inner: 6(6−2x)2. Outer: 61∫03(6−2x)2dx=61⋅36=6. Check: the volume of the tetrahedron is 61⋅3⋅2⋅6=6.
Question 10easy
Find the average value of f(x,y)=xy over the rectangle [0,2]×[0,4].
Show answer
2
favg=Area1∬RfdA. The integral is (∫02xdx)(∫04ydy)=2⋅8=16, the area is 8. The average is 816=2.
Question 11hard
Evaluate ∫0π∫xπysinydydx.
Show answer
2
ysiny has no elementary antiderivative. The region: 0≤x≤y≤π. Type II: 0≤y≤π, 0≤x≤y.∫0π∫0yysinydxdy=∫0πysiny⋅ydy=∫0πsinydy=2.
Question 12medium
Evaluate ∬DydA, where D is the quarter disk x2+y2≤1, x≥0, y≥0, using Cartesian coordinates.
Show answer
1/3
Type I: 0≤x≤1, 0≤y≤1−x2. Inner: [2y2]01−x2=21−x2. Outer: 21(1−31)=31. (Next week we will do the same integral with polar coordinates.)
Verification: All double integrals were computed numerically in node with nested Simpson's rule; in the order-reversal questions it was also checked that the two orders give the same value (verify/MAT1052/13.mjs).
Review card
∬_R f dA = ∫∫ f dy dx = ∫∫ f dx dy (Fubini, rectangle)
FROM INSIDE OUT: in the inner integral the other variable is CONSTANT
Separable: R rectangle and f = g(x)h(y) → (∫g dx)(∫h dy)
TYPE I: a≤x≤b, g1(x)≤y≤g2(x) → ∫_a^b ∫_{g1}^{g2} f dy dx (vertical strip)
TYPE II: c≤y≤d, h1(y)≤x≤h2(y) → ∫_c^d ∫_{h1}^{h2} f dx dy (horizontal strip)
Inner limits may depend on the outer variable; the OUTER limits are always CONSTANT
Setting limits: SKETCH, find the intersections, decide the lower/upper (left/right) curve
Reversing the order: sketch the region → rewrite as the other type
When? For those with no antiderivative like e^(y²), sin(y³), sin y / y
Area = ∬_D 1 dA. Volume = ∬_D (top - bottom) dA
Average = (1/Area) ∬ f dA