What if you have an area that is bounded by limits on both the \(x\) and the \(y\)-axes? This is where double integrals come into play. We use double integrals in physics for finding mass in a region given a density function, engineering for determining properties of materials with varying thickness, and economics for analysing changes in multivariable contexts.
\(z=f(x,y)\) is a continuous function on the region \(R\)
\(R\) is a region of integration in the \(x\)-\(y\) plane
\(dA\) is an infinitesimal element of area in \(R\) and \(dA=dxdy=dydx\).
If \(f(x,y)\geq0\), then the double integral is equal to the volume below the surface \(f(x,y)\) and above the region \(R\).
We can evaluate a double integral in two ways:
Integrating first with respect to \(x\), keeping \(y\) constant, with \(a\leq x\leq b\) and \(c\leq y\leq d\):
\[\underset{R}{\iint}f(x,y)dA=\int_{c}^{d}\left[\int_{a}^{b}f(x,y)dx\right]dy\]
The "inner" integral is the integral with respect to \(x\) and the "outer" integral is the integral with respect to \(y\).
Integrating first with respect to \(y\), keeping \(x\) constant, with \(a\leq y\leq b\) and \(c\leq x\leq d\):
The "inner" integral is the integral with respect to \(y\) and the "outer" integral is the integral with respect to \(x\).
In practice, one may be easier than the other.
Evaluating double integrals
To evaluate a double integral, it is helpful to:
Sketch the region of integration.
Determine the limits of integration.
Evaluate the inner integral.
Evaluate the outer integral.
The most straightforward example is when the region \(R\) is a rectangle. This is covered in Example 1.
In many cases, the region of integration is not bounded by limits of integration that are constants; sometimes, they are functions. It is important to be able to sketch the region to identify the limits of integration. See Example 2 and 3 for how to do this.
Example 1 – evaluating double integrals
Evaluate \(\underset{R}{\iint}(3x^{2}-2xy)dxdy\), where \(R\) is the rectangle with vertices \((2,1),\) \((2,3),\) \((4,1),\) \((4,3)\).
First, sketch the region.
Let's look at both ways of integrating. In this example, you could reverse the order of integration and still obtain the same answer.
Integrating with respect to \(x\) then \(y\)
The "inner" integral is the integral with respect to \(x\) and the "outer" integral is the integral with respect to \(y\).
The limits of integration for the inner integral are \(x=2\) to \(x=4\).
The limits of integration for the outer integral are \(y=1\) to \(y=3\).
The integral becomes:
\[\int_{1}^{3}\left[\int_{2}^{4}(3x^{2}-2xy)dx\right]dy\]
First, we work out the inner integral, integrating with respect to \(x\) while treating \(y\) as a constant. Then, we integrate with respect to \(y\) and evaluate.
\[\begin{align*} \int_{1}^{3}\left[\int_{2}^{4}(3x^{2}-2xy)dx\right]dy & = \int_{1}^{3}\left[\left(\frac{3x^{3}}{3}-\frac{2x^{2}y}{2}\right)_{2}^{4}\right]dy\\
& = \int_{1}^{3}\left[\left(x^{3}-x^{2}y\right)_{2}^{4}\right]dy\\
& = \int_{1}^{3}\left[\left(4^{3}-4^{2}y\right)-\left(2^{3}-2^{2}y\right)\right]dy\\
& = \int_{1}^{3}\left[\left(64-16y\right)-\left(8-4y\right)\right]dy\\
& = \int_{1}^{3}\left[56-12y\right]dy\\
& = \left[56y-\frac{12y^{2}}{2}\right]_{1}^{3}\\
& = \left[56y-6y^{2}\right]_{1}^{3}\\
& = \left(56(3)-6(3)^{2}\right)-\left(56(1)-6(1)^{2}\right)\\
& = 168-54-56+6\\
& = 64
\end{align*}\]
Integrating with respect to \(y\) then \(x\)
In this case, the integral becomes:
\[\int_{2}^{4}\left[\int_{1}^{3}(3x^{2}-2xy)dy\right]dx\]
First, we work out the inner integral, integrating with respect to \(y\) while treating \(x\) as a constant. Then, we integrate with respect to \(x\) and evaluate.
\[\begin{align*} \int_{2}^{4}\left[\int_{1}^{3}(3x^{2}-2xy)dy\right]dx & = \int_{2}^{4}\left[\left(3x^{2}y-2x\frac{y^{2}}{2}\right)_{1}^{3}\right]dx\\
& = \int_{2}^{4}\left[\left(3x^{2}y-xy^{2}\right)_{1}^{3}\right]dx\\
& = \int_{2}^{4}\left[\left(3x^{2}(3)-x(3)^{2}\right)-\left(3x^{2}(1)-x(1)^{2}\right)\right]dx\\
& = \int_{2}^{4}\left[\left(9x^{2}-9x\right)-\left(3x^{2}-x\right)\right]dx\\
& = \int_{2}^{4}\left[6x^{2}-8x\right]dx\\
& = \left[\frac{6x^{3}}{3}-\frac{8x^{2}}{2}\right]_{2}^{4}\\
& = \left[2x^{3}-4x^{2}\right]_{2}^{4}\\
& = \left(2(4)^{3}-4(4)^{2}\right)-\left(2(2)^{3}-4(2)^{2}\right)\\
& = 128-64-16+16\\
& = 64
\end{align*}\]
As expected, the same answer is obtained regardless of the order of integration.
Evaluate \(\underset{R}{\iint}(10x-4y+5)dxdy\), where \(R\) is the region bounded by the curve \(y=\sqrt{x}\) and the \(x\)-axis, from \(x=0\) to \(x=1\).
Integrating with respect to \(x\) then \(y\)
First, sketch the region of integration on the \(x-y\) plane. The "inner" integration is with respect to \(x\), so we draw an arrow across the region of integration, parallel to the \(x\)-axis (keeping \(y\) constant) from left to right.
Now, we can find the limits of integration. The left boundary is \(x=y^{2}\) (making \(x\) the subject of the equation \(y=\sqrt{x}\)). The right boundary is \(x=1\). These are the limits of integration for \(x\).
The outer integration is with respect to \(y\). The limits of integration are simply the lower and upper limits of \(y\) for the region of integration. The lower limit is \(y=0\) and the upper limit is \(y=1\).
Therefore, the integral becomes:
\[\int_{0}^{1}\left[\int_{x=y^{2}}^{1}(10x-4y+5)dx\right]dy\]
Now, we can integrate with respect to \(x\), and then with respect to \(y\).
Again, we can sketch the region of integration. The "inner" integration is with respect to \(y\), so we draw an arrow across the region of integration, parallel to the \(y\)-axis (keeping \(x\) constant) from bottom to top.
Now, we can find the limits of integration. The lower limit is \(y=0\) and the upper limit is \(y\sqrt{x}\). These are the limits of integration for \(y\).
The outer integration is with respect to \(x\). The limits of integration are simply the left and right limits of \(x\) for the region of integration. The left limit is \(x=0\) and the right limit is \(x=1\).
Therefore, the integral becomes:
\[\int_{0}^{1}\left[\int_{0}^{y=\sqrt{x}}(10x-4y+5)dy\right]dx\]
We integrate with respect to \(y\) and then with respect to \(x\). The answer is the same as integrating with respect to \(x\) first.
Determine the limits of integration for\(\underset{R}{\iint}(2xy)dA\) over the region shown by:
integrating with respect to \(x\) first
integrating with respect to \(y\) first.
Integrating with respect to \(x\) then \(y\).
We draw an arrow parallel to the \(x\)-axis.
The left limit is \(x=-\dfrac{1}{3}(y-4)\), found by rearranging the equation \(y=-3x+4\)). The right limit is \(x=y\).
The \(y\) limits are the lower and upper values of \(y\). The lower limit is \(y=1\) and the upper limit is \(y=4\).
Therefore, the integral becomes:
\[\int_{1}^{4}\left[\int_{x=-\frac{1}{3}(y-4)}^{x=y}(2xy)dx\right]dy\]
Integrating with respect to \(y\) then \(x\).
In this case, we need to divide the region in two and draw two lines parallel to the \(y\)-axis.
Although the upper limit is always \(y=4\), the lower limit changes from \(y=-3x+4\) (between \(x=0\) and \(x=1)\), to \(y=x\) (from \(x=1\) to \(x=4\)).
This gives two double integrals that must be added together to cover the entire region.
\[\int_{0}^{1}\left[\int_{y=-3+4}^{y=4}(2xy)dy\right]\ dx+\int_{1}^{4}\left[\int_{y=x}^{y=4}(2xy)dy\right]dx\]
In this case, it appears that integrating with respect to \(x\) first is the easier option. In fact, sometimes one order may be impossible, but if the order of integration is reversed then the double integral can be evaluated.
Exercise – evaluating double integrals
Evaluate the following.
\(\underset{R}{\iint}(4xy)dxdy\), where \(R\) is the rectangle with vertices \((0,1)\), \((0,3)\), \((3,1)\) and \((3,3)\)
\(\underset{R}{\iint}(6e^{x}+e^{y})dydx\), where \(R\) is the region bounded by the lines \(x=0\), \(x=4\), \(y=1\) and \(y=2\)