Volume and Fubini's theorem
Imagine you are standing on flat ground and holding a solid block of clay whose base is a flat region \(D\) on the ground, and whose top surface is a bumpy roof given by a positive function \(z = f(x,y)\). You want to find the total volume of this solid.
To do this, draw a rectangular grid over the ground region \(D\). The grid cuts the region into a collection of tiny little rectangular patches. For each patch, pick a point inside it and measure the height of the roof right above that point. Multiply the tiny area of the patch by this height to get the volume of a tall, thin rectangular box standing on that patch. If you add up the volumes of all these boxes, you get an approximation of the total volume under the roof. As you make the grid finer and finer, packing in more and more tiny patches, the sum gets closer and closer to the exact volume.
Let \(f(x,y)\) be a function defined on a closed bounded region \(D\) in the plane. The double integral of \(f\) over \(D\) is the limit of the Riemann sums:
\[\iint_D f(x,y)\,dA = \lim_{\max d_i \to 0} \sum_{i=1}^n f(x_i^*, y_i^*)\,\Delta A_i\]
provided this limit exists, where \(d_i\) is the diameter of the \(i\)-th patch, \(\Delta A_i\) is its area and \((x_i^*, y_i^*)\) is a sample point in that patch. When the limit exists, \(f\) is integrable on \(D\).
If \(f(x,y)\) is continuous on a rectangle \(R = [a,b] \times [c,d]\), then the double integral can be computed as an iterated single integral in either order:
\[\iint_R f(x,y)\,dA = \int_a^b \int_c^d f(x,y)\,dy\,dx = \int_c^d \int_a^b f(x,y)\,dx\,dy\]
Example 6.1: First double integral
Evaluate \(\iint_D x\,dA\) where \(D\) is bounded by \(y = x^2\) and \(y = 4\) with \(x \ge 0\).
Solution.
First, find the limits of integration for the region \(D\).
The curves intersect where \(x^2 = 4\), so \(x = 2\) since \(x \ge 0\).
The variable \(x\) goes from \(0\) to \(2\), and for a fixed \(x\), \(y\) goes from \(x^2\) to \(4\).
Set up the iterated integral: \(\int_0^2 \int_{x^2}^4 x\,dy\,dx\).
Integrate with respect to \(y\) first: \(\int_{x^2}^4 x\,dy = x(4 - x^2) = 4x - x^3\).
Now integrate with respect to \(x\): \(\int_0^2 (4x - x^3)\,dx\).
Find the antiderivative: \([2x^2 - \frac{1}{4}x^4]_0^2\).
Evaluate at the limits: \((2(4) - \frac{1}{4}(16)) - (0) = 8 - 4 = 4\).
General regions
Most interesting regions are not neat rectangles. They have curved boundaries. To integrate over them, we classify regions into two standard shapes based on how their boundaries behave.
Picture a region that is trapped between a lower curve and an upper curve, while moving strictly between two vertical lines on the left and right. If you slice this region vertically, every vertical line enters through the same lower function of \(x\) and exits through the same upper function of \(x\). This is a vertical slice region.
A region \(D\) is of Type I if it lies between two vertical lines \(x = a\) and \(x = b\), and its vertical bounds are given by two continuous functions of \(x\):
\[D = \{ (x,y) \mid a \le x \le b, \, g_1(x) \le y \le g_2(x) \}\]
The double integral over a Type I region is evaluated as:
\[\iint_D f(x,y)\,dA = \int_a^b \int_{g_1(x)}^{g_2(x)} f(x,y)\,dy\,dx\]
Now picture a region trapped between a left curve and a right curve, while moving strictly between two horizontal lines at the bottom and top. If you slice this region horizontally, every horizontal line enters through the same left function of \(y\) and exits through the same right function of \(y\).
A region \(D\) is of Type II if it lies between two horizontal lines \(y = c\) and \(y = d\), and its horizontal bounds are given by two continuous functions of \(y\):
\[D = \{ (x,y) \mid c \le y \le d, \, h_1(y) \le x \le h_2(y) \}\]
The double integral over a Type II region is evaluated as:
\[\iint_D f(x,y)\,dA = \int_c^d \int_{h_1(y)}^{h_2(y)} f(x,y)\,dx\,dy\]
Reversing the order
Sometimes an iterated integral is given in a particular order, but the inner integral is impossible to solve with standard calculus techniques because the antiderivative cannot be written in terms of elementary functions. When this happens, we sketch the region of integration, flip our perspective, and rewrite the region using the opposite variable type.
To reverse the order of an integral \(\int_a^b \int_{g_1(x)}^{g_2(x)} f(x,y)\,dy\,dx\):
- Read the limits to reconstruct the region \(D\) as a Type I region.
- Sketch the region in the \(xy\)-plane.
- Treat the same region as a Type II region by finding new outer bounds on \(y\) and inner bounds on \(x\) in terms of \(y\).
- Write down the new iterated integral with \(dx\) on the inside and \(dy\) on the outside.
Example 6.2: Reversing integration order
Evaluate \(\int_0^2 \int_{y/2}^1 \cos(x^2)\,dx\,dy\) by reversing the order.
Solution.
The current integral is set up as Type II.
The inner limits show \(x\) goes from \(y/2\) to \(1\), which means \(x = y/2\) is the left curve and \(x = 1\) is the right curve.
The outer limits show \(y\) goes from \(0\) to \(2\).
Sketching this region: it is bounded on the left by \(y = 2x\), on the right by \(x = 1\), at the bottom by \(y = 0\), and at the top by \(y = 2\).
To view this as a Type I region, \(x\) goes from \(0\) to \(1\).
For a fixed \(x\), the bottom curve is \(y = 0\) and the top curve is \(y = 2x\).
Rewrite the integral with the order reversed: \(\int_0^1 \int_0^{2x} \cos(x^2)\,dy\,dx\).
Integrate with respect to \(y\) first: \(\int_0^{2x} \cos(x^2)\,dy = [y \cos(x^2)]_0^{2x} = 2x \cos(x^2)\).
Now integrate with respect to \(x\): \(\int_0^1 2x \cos(x^2)\,dx\).
Use the substitution \(u = x^2\), so \(du = 2x\,dx\).
The integral becomes \(\int_0^1 \cos(u)\,du\).
Evaluate the antiderivative: \([\sin u]_0^1 = \sin 1 - \sin 0 = \sin 1\).
Polar coordinates
When a region has circular symmetry, such as a disc or a ring, using rectangular coordinates \(x\) and \(y\) leads to messy square roots and difficult integrals. It is much easier to describe circular regions using polar coordinates \(r\) and \(\theta\), where \(r\) is the distance from the origin and \(\theta\) is the angle from the positive \(x\)-axis.
The conversion formulas are \(x = r \cos \theta\) and \(y = r \sin \theta\), with \(x^2 + y^2 = r^2\).
When we switch to polar coordinates, a rectangular grid in \(r\) and \(\theta\) forms little curved patches on the plane. The sides of these patches have lengths \(\Delta r\) and \(r\,\Delta \theta\), because the arc length of a circle of radius \(r\) is \(r\) times the angle. Therefore, the area element is not just \(dr\,d\theta\).
The area element for a polar coordinate transformation is:
\[dA = r\,dr\,d\theta\]
Never forget the extra factor of \(r\). It comes from the stretching of space as you move further away from the origin.
To evaluate a double integral in polar coordinates over a region \(D\) defined by \(\alpha \le \theta \le \beta\) and \(h_1(\theta) \le r \le h_2(\theta)\):
\[\iint_D f(x,y)\,dA = \int_\alpha^\beta \int_{h_1(\theta)}^{h_2(\theta)} f(r \cos \theta, r \sin \theta)\,r\,dr\,d\theta\]
Example 6.3: Polar coordinate integration
Find \(\iint_D e^{-(x^2+y^2)}\,dA\) over the disc \(x^2 + y^2 \le 1\).
Solution.
The region \(D\) is a disc of radius \(1\) centered at the origin.
In polar coordinates, the disc is described by \(0 \le \theta \le 2\pi\) and \(0 \le r \le 1\).
Substitute \(r^2 = x^2 + y^2\) and \(dA = r\,dr\,d\theta\) into the integral:
\[\int_0^{2\pi} \int_0^1 e^{-r^2} r\,dr\,d\theta\]
Notice that the integrand has an extra factor of \(r\), which makes the \(r\) integral solvable using substitution.
Evaluate the inner integral with respect to \(r\) using \(u = r^2\), so \(du = 2r\,dr\) and \(r\,dr = \frac{1}{2}\,du\).
When \(r = 0\), \(u = 0\); when \(r = 1\), \(u = 1\).
The inner integral is \(\int_0^1 e^{-u} \frac{1}{2}\,du = [-\frac{1}{2} e^{-u}]_0^1 = -\frac{1}{2}e^{-1} - (-\frac{1}{2}(1)) = \frac{1}{2}(1 - e^{-1})\).
Now integrate with respect to \(\theta\): \(\int_0^{2\pi} \frac{1}{2}(1 - e^{-1})\,d\theta\).
Since the integrand does not depend on \(\theta\), multiply by the length of the interval, which is \(2\pi\):
\[\frac{1}{2}(1 - e^{-1}) \times 2\pi = \pi(1 - e^{-1})\]
Applications
Double integrals let us calculate many physical and geometric quantities beyond mere volume.
The area of a region \(D\) is found by integrating the constant function \(1\) over the region:
\[\text{Area}(D) = \iint_D 1\,dA\]
The average value of a continuous function \(f(x,y)\) over a region \(D\) is the integral of the function divided by the total area of the region:
\[f_{\text{avg}} = \frac{1}{\text{Area}(D)} \iint_D f(x,y)\,dA\]
If a flat plate, called a lamina, occupies a region \(D\) in the plane and has a variable mass density \(\rho(x,y)\) at each point, we can compute its total mass and balance point.
The total mass \(M\) of a lamina with density \(\rho(x,y)\) over a region \(D\) is:
\[M = \iint_D \rho(x,y)\,dA\]
The coordinates \((\bar{x}, \bar{y})\) of the centre of mass of the lamina are given by:
\[\bar{x} = \frac{1}{M} \iint_D x\,\rho(x,y)\,dA, \quad \bar{y} = \frac{1}{M} \iint_D y\,\rho(x,y)\,dA\]
We can also measure the surface area of a curved roof resting above a region \(D\). If the surface is given by the equation \(z = f(x,y)\), where the partial derivatives \(f_x\) and \(f_y\) are continuous, a small patch of surface area is slightly larger than the flat patch underneath it due to the slope.
The surface area \(S\) of the graph \(z = f(x,y)\) over a region \(D\) in the \(xy\)-plane is:
\[S = \iint_D \sqrt{1 + (f_x)^2 + (f_y)^2}\,dA\]
Practice
Practice 1: try it first
Evaluate \(\int_1^2 \int_0^1 (2x + y)\,dx\,dy\).
Show the answer
\(\frac{5}{2}\)
Practice 2: try it first
Find the average value of \(x^2 + y^2\) on the disc of radius \(2\) centred at the origin.
Show the answer
\(2\)
Practice 3: try it first
Find the area inside the cardioid \(r = 1 + \cos\theta\).
Show the answer
\(\frac{3 \pi}{2}\)
Want a hint instead of an answer? Practise this chapter with the tutor.