Part 9 - Double and triple integrals

Introduction

In this part we’ll cover how we integrate functions of several variables, specifically, over a rectangular domain. We’ll later cover general domains.

For now, let’s stick to rectangles and rectangular boxes.

Let’s define our approach.

Double integrals

Say we have a function, f(x,y)f(x, y) with rectangular domain, R=[a,b][c,d]R = [a, b] \cdot [c, d].

In mathematical terms: {(x,y)axb,cyy}\{(x, y) | a \leq x \leq b, c \leq y \leq y \}.

Let’s now imagine we divide, [a,b][a, b] into nn subintervals, of width Δx=ban\Delta x = \dfrac{b - a}{n}.

Divide [c,d][c, d] into mm subintervals, of width Δy=dcm\Delta y = \dfrac{d - c}{m}.

Now our rectangle is divided into nmnm subrectangles, let’s call them, RijR_{ij}, with area, ΔA=ΔxΔy\Delta A = \Delta x \Delta y.

In each RijR_{ij}, let’s choose a point denoted as, (xi\*,yj\*)(x_{i}^{\*}, y_{j}^{\*}).

If we sum up these rectangles:

j=1mi=1nf(xi\*,yj\*)ΔA\sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}) \Delta A

We get something that reminds us of the volume under the graph, taking the limit of these we get:

limmnj=1mi=1nf(xi\*,yj\*)ΔA\lim_{\substack{m \to \infty \newline n \to \infty}} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}) \Delta A

We get the exact volume under the graph (above the rectangle).

Usually, we write this as:

limΔx0Δy0j=1mi=1nf(xi\*,yj\*)ΔA\lim_{\substack{\Delta x \to 0 \newline \Delta y \to 0}} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}) \Delta A

This is the definition of the double integral!

Definition 1 (Double integral)

The double integral of the function, ff, on a rectangle, RR, is:

Rf(x,y) dA=limΔx0Δy0j=1mi=1nf(xi\*,yj\*)ΔA\iint_{R} f(x, y)\ dA = \lim_{\substack{\Delta x \to 0 \newline \Delta y \to 0}} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}) \Delta A

Assuming this limit exists, This limit exists for any continuous function.

Notation

We will use this notation:

Rf(x,y) dA\iint_{R} f(x, y)\ dA

But we can also write:

Rf(x,y) dx dy\iint_{R} f(x, y)\ dx\ dy

Geometrical sense

f(xi\*,yj\*)ΔA=f(x_{i}^{\*}, y_{j}^{\*}) \Delta A = volume of rectangular tube

Therefore:

limΔx0Δy0j=1mi=1nf(xi\*,yj\*)ΔA volume under the graph\lim_{\substack{\Delta x \to 0 \newline \Delta y \to 0}} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}) \Delta A \approx \text{ volume under the graph}

Which just means:

Rf(x,y) dA= volume under the graph, above R\iint_{R} f(x, y)\ dA = \text{ volume under the graph, above } R

General case - functions of three or more variables

The definition is similar, let’s define the triple integral.

Assume that the domain is a rectangular box, I=[a,b][c,d][e,f]I = [a, b] \cdot [c, d] \cdot [e, f]

We use the same approach, divide into n,m,ln, m, l sub-interval, the volume of one of these sub-boxes will be:

f(xi\*,yj\*,zk\*)ΔVf(x_{i}^{\*}, y_{j}^{\*}, z_{k}^{\*}) \Delta V

Summing these:

k=1lj=1mi=1nf(xi\*,yj\*,zk\*)ΔV\sum_{k = 1}^{l} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}, z_{k}^{\*}) \Delta V

Taking the limit:

limΔx0Δy0Δz0k=1lj=1mi=1nf(xi\*,yj\*,zk\*)ΔV\lim_{\substack{\Delta x \to 0 \newline \Delta y \to 0 \newline \Delta z \to 0}} \sum_{k = 1}^{l} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}, z_{k}^{\*}) \Delta V

Using integral notation:

If(x,y,z) dV\iiint_{I} f(x, y, z)\ dV

How to compute double and triple integrals

Recall how we compute integrals for functions of one variable, specifically recall the fundamental theorem of calculus:

abf(x) dx=F(b)F(a)\int_a^b f(x)\ dx = F(b) - F(a)

Where F(x)F(x) is the antiderivative/primitive function.

If we can boil it down to an integral of one variable we can use this, this is what we call iterated integrals.

Iterated integrals

Assume we have a function, ff, on R=[a,b][c,d]R = [a, b] \cdot [c, d].

Fix yy, meaning, assume yy is a constant.

Therefore:

f(x,y) dx\int f(x, y)\ dx

is a function that will depend on yy, the value we get out from this, is only dependant on yy. Therefore:

cd(abf(x,y) dx)dy\int_c^d \left(\int_a^b f(x, y)\ dx \right) dy

We usually just write this as:

cdabf(x,y) dx dy\int_c^d \int_a^b f(x, y)\ dx\ dy

This is what we call for iterated integrals. We can also do the other way around!

abcdf(x,y) dy dx\int_a^b \int_c^d f(x, y)\ dy\ dx

Notice how our dxdx and dydy are now swapped, this order indicates what order we are integrating.

But does these functions yield the same integral?

Theorem 1 (Fubini’s Theorem)

Let, ff, be continuous function on rectangle, R=[a,b][c,d]R = [a, b] \cdot [c, d]. Then:

Rf(x,y)dA=cdabf(x,y)dx dy=abcdf(x,y)dy dx\iint_R f(x, y) dA = \int_c^d \int_a^b f(x, y) dx\ dy = \int_a^b \int_c^d f(x, y) dy\ dx
Example 1

Find R(x3y2)dA\iint_R (x - 3y^2) dA, where R=[0,2][1,2]R = [0, 2] \cdot [1, 2].

Using Fubini:

1202(x3y2)dx dy\int_1^2 \int_0^2 (x - 3y^2) dx\ dy12(x223xy2)x=0x=2 dy\int_1^2 \left(\dfrac{x^2}{2} -3xy^2\right) \bigg\rvert_{x = 0}^{x = 2}\ dy12(26y2)dy\int_1^2 (2 - 6y^2) dy(2y2y3)y=1y=2(2y - 2y^3) \bigg\rvert_{y = 1}^{y = 2}(416)(22)=12(4 - 16) - (2 - 2) = \boxed{-12}

Let’s do the integral the otherway around as well!

0212(x3y2)dy dx\int_0^2 \int_1^2 (x - 3y^2) dy\ dx02(xyy3)y=1y=2 dx\int_0^2 \left(xy - y^3\right) \bigg\rvert_{y = 1}^{y = 2}\ dx02(x7)dx\int_0^2 (x - 7) dx(x227x)x=0x=2(\dfrac{x^2}{2} - 7x) \bigg\rvert_{x = 0}^{x = 2}(214)0=12(2 - 14) - 0 = \boxed{-12}

Same answer!

Let’s do a triple integral now!

Example 2

Find Rxzexy dV\iiint_R xz \cdot e^{xy}\ dV on the rectangle, R=[0,1][0,1][0,1]=[0,1]3R = [0, 1] \cdot [0, 1] \cdot [0, 1] = [0, 1]^3.

According to Fubini’s Theorem, we can choose any order when computing iterated integrals. If we do a quick analysis, we find that integrating with respect to zz first is a good idea.

010101xzexy dz dx dy\int_0^1 \int_0^1 \int_0^1 xz \cdot e^{xy}\ dz\ dx\ dy0101z2xexy2z=0z=1dx dy\int_0^1 \int_0^1 \dfrac{z^2 x e^{xy}}{2} \bigg\rvert_{z = 0}^{z = 1} dx\ dy

Let’s integrate with respect to yy, to make it easier.

0101xexy2dx dy\int_0^1 \int_0^1 \dfrac{x e^{xy}}{2} dx\ dy01exy2y=0y=1 dx\int_0^1 \dfrac{e^{xy}}{2} \bigg\rvert_{y = 0}^{y = 1}\ dx01ex212 dx\int_0^1 \dfrac{e^x}{2} - \dfrac{1}{2}\ dxex2x2x=0x=1\dfrac{e^x}{2} - \dfrac{x}{2} \bigg\rvert_{x = 0}^{x = 1}(ex212)(120)=e21\left(\dfrac{e^x}{2} - \dfrac{1}{2}\right) - \left(\dfrac{1}{2} - 0\right) = \boxed{\dfrac{e}{2} - 1}

Let’s do one last example.

Example 3

Find Rysin(xy) dA\iint_R y \cdot sin(xy)\ dA on the rectangle, R=[1,2][0,π]R = [1, 2] \cdot [0, \pi].

Let’s integrate with respect to xx, firstly, it’s much easier.

0π12ysin(xy) dx dy\int_0^{\pi} \int_1^2 y \cdot sin(xy)\ dx\ dy0πcos(xy)x=1x=2 dy-\int_0^{\pi} cos(xy) \bigg\rvert_{x = 1}^{x = 2}\ dy0πcos(2y)cos(y) dy-\int_0^{\pi} cos(2y) - cos(y) \ dy(sin(2y)2sin(y))y=0y=π==0-\left( \dfrac{sin(2y)}{2} - sin(y)\right) \bigg\rvert_{y = 0}^{y = \pi} = \ldots = \boxed{0}