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) f ( x , y ) with rectangular domain, R = [ a , b ] ⋅ [ c , d ] R = [a, b] \cdot [c, d] R = [ a , b ] ⋅ [ c , d ] .
In mathematical terms: { ( x , y ) ∣ a ≤ x ≤ b , c ≤ y ≤ y } \{(x, y) | a \leq x \leq b, c \leq y \leq y \} {( x , y ) ∣ a ≤ x ≤ b , c ≤ y ≤ y } .
Let’s now imagine we divide, [ a , b ] [a, b] [ a , b ] into n n n subintervals, of width Δ x = b − a n \Delta x = \dfrac{b - a}{n} Δ x = n b − a .
Divide [ c , d ] [c, d] [ c , d ] into m m m subintervals, of width Δ y = d − c m \Delta y = \dfrac{d - c}{m} Δ y = m d − c .
Now our rectangle is divided into n m nm nm subrectangles, let’s call them, R i j R_{ij} R ij , with area, Δ A = Δ x Δ y \Delta A = \Delta x \Delta y Δ A = Δ x Δ y .
In each R i j R_{ij} R ij , let’s choose a point denoted as, ( x i \* , y j \* ) (x_{i}^{\*}, y_{j}^{\*}) ( x i \* , y j \* ) .
If we sum up these rectangles:
∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* ) Δ A \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}) \Delta A j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* ) Δ A
We get something that reminds us of the volume under the graph, taking the limit of these we get:
lim m → ∞ n → ∞ ∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* ) Δ 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 m → ∞ n → ∞ lim j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* ) Δ A
We get the exact volume under the graph (above the rectangle).
Usually, we write this as:
lim Δ x → 0 Δ y → 0 ∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* ) Δ 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 Δ x → 0 Δ y → 0 lim j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* ) Δ A
This is the definition of the double integral!
Definition 1 (Double integral) The double integral of the function, f f f , on a rectangle, R R R , is:
∬ R f ( x , y ) d A = lim Δ x → 0 Δ y → 0 ∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* ) Δ 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 ∬ R f ( x , y ) d A = Δ x → 0 Δ y → 0 lim j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* ) Δ A Assuming this limit exists, This limit exists for any continuous function.
Notation We will use this notation:
∬ R f ( x , y ) d A \iint_{R} f(x, y)\ dA ∬ R f ( x , y ) d A But we can also write:
∬ R f ( x , y ) d x d y \iint_{R} f(x, y)\ dx\ dy ∬ R f ( x , y ) d x d y
Geometrical sense
f ( x i \* , y j \* ) Δ A = f(x_{i}^{\*}, y_{j}^{\*}) \Delta A = f ( x i \* , y j \* ) Δ A = volume of rectangular tube
Therefore:
lim Δ x → 0 Δ y → 0 ∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* ) Δ 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} Δ x → 0 Δ y → 0 lim j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* ) Δ A ≈ volume under the graph
Which just means:
∬ R f ( x , y ) d A = volume under the graph, above R \iint_{R} f(x, y)\ dA = \text{ volume under the graph, above } R ∬ R f ( x , y ) d A = 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] I = [ a , b ] ⋅ [ c , d ] ⋅ [ e , f ]
We use the same approach, divide into n , m , l n, m, l n , m , l sub-interval, the volume of one of these sub-boxes will be:
f ( x i \* , y j \* , z k \* ) Δ V f(x_{i}^{\*}, y_{j}^{\*}, z_{k}^{\*}) \Delta V f ( x i \* , y j \* , z k \* ) Δ V
Summing these:
∑ k = 1 l ∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* , z k \* ) Δ V \sum_{k = 1}^{l} \sum_{j = 1}^{m} \sum_{i = 1}^{n} f(x_{i}^{\*}, y_{j}^{\*}, z_{k}^{\*}) \Delta V k = 1 ∑ l j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* , z k \* ) Δ V
Taking the limit:
lim Δ x → 0 Δ y → 0 Δ z → 0 ∑ k = 1 l ∑ j = 1 m ∑ i = 1 n f ( x i \* , y j \* , z k \* ) Δ 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 Δ x → 0 Δ y → 0 Δ z → 0 lim k = 1 ∑ l j = 1 ∑ m i = 1 ∑ n f ( x i \* , y j \* , z k \* ) Δ V
Using integral notation:
∭ I f ( x , y , z ) d V \iiint_{I} f(x, y, z)\ dV ∭ I f ( x , y , z ) d V
How to compute double and triple integrals
Recall how we compute integrals for functions of one variable, specifically recall the fundamental theorem of calculus:
∫ a b f ( x ) d x = F ( b ) − F ( a ) \int_a^b f(x)\ dx = F(b) - F(a) ∫ a b f ( x ) d x = F ( b ) − F ( a )
Where F ( x ) 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, f f f , on R = [ a , b ] ⋅ [ c , d ] R = [a, b] \cdot [c, d] R = [ a , b ] ⋅ [ c , d ] .
Fix y y y , meaning, assume y y y is a constant.
Therefore:
∫ f ( x , y ) d x \int f(x, y)\ dx ∫ f ( x , y ) d x
is a function that will depend on y y y , the value we get out from this, is only dependant on y y y . Therefore:
∫ c d ( ∫ a b f ( x , y ) d x ) d y \int_c^d \left(\int_a^b f(x, y)\ dx \right) dy ∫ c d ( ∫ a b f ( x , y ) d x ) d y
We usually just write this as:
∫ c d ∫ a b f ( x , y ) d x d y \int_c^d \int_a^b f(x, y)\ dx\ dy ∫ c d ∫ a b f ( x , y ) d x d y
This is what we call for iterated integrals. We can also do the other way around!
∫ a b ∫ c d f ( x , y ) d y d x \int_a^b \int_c^d f(x, y)\ dy\ dx ∫ a b ∫ c d f ( x , y ) d y d x
Notice how our d x dx d x and d y dy d y 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, f f f , be continuous function on rectangle, R = [ a , b ] ⋅ [ c , d ] R = [a, b] \cdot [c, d] R = [ a , b ] ⋅ [ c , d ] . Then:
∬ R f ( x , y ) d A = ∫ c d ∫ a b f ( x , y ) d x d y = ∫ a b ∫ c d f ( x , y ) d y d x \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 ∬ R f ( x , y ) d A = ∫ c d ∫ a b f ( x , y ) d x d y = ∫ a b ∫ c d f ( x , y ) d y d x
Example 1 Find ∬ R ( x − 3 y 2 ) d A \iint_R (x - 3y^2) dA ∬ R ( x − 3 y 2 ) d A , where R = [ 0 , 2 ] ⋅ [ 1 , 2 ] R = [0, 2] \cdot [1, 2] R = [ 0 , 2 ] ⋅ [ 1 , 2 ] .
Using Fubini:
∫ 1 2 ∫ 0 2 ( x − 3 y 2 ) d x d y \int_1^2 \int_0^2 (x - 3y^2) dx\ dy ∫ 1 2 ∫ 0 2 ( x − 3 y 2 ) d x d y ∫ 1 2 ( x 2 2 − 3 x y 2 ) ∣ x = 0 x = 2 d y \int_1^2 \left(\dfrac{x^2}{2} -3xy^2\right) \bigg\rvert_{x = 0}^{x = 2}\ dy ∫ 1 2 ( 2 x 2 − 3 x y 2 ) x = 0 x = 2 d y ∫ 1 2 ( 2 − 6 y 2 ) d y \int_1^2 (2 - 6y^2) dy ∫ 1 2 ( 2 − 6 y 2 ) d y ( 2 y − 2 y 3 ) ∣ y = 1 y = 2 (2y - 2y^3) \bigg\rvert_{y = 1}^{y = 2} ( 2 y − 2 y 3 ) y = 1 y = 2 ( 4 − 16 ) − ( 2 − 2 ) = − 12 (4 - 16) - (2 - 2) = \boxed{-12} ( 4 − 16 ) − ( 2 − 2 ) = − 12 Let’s do the integral the otherway around as well!
∫ 0 2 ∫ 1 2 ( x − 3 y 2 ) d y d x \int_0^2 \int_1^2 (x - 3y^2) dy\ dx ∫ 0 2 ∫ 1 2 ( x − 3 y 2 ) d y d x ∫ 0 2 ( x y − y 3 ) ∣ y = 1 y = 2 d x \int_0^2 \left(xy - y^3\right) \bigg\rvert_{y = 1}^{y = 2}\ dx ∫ 0 2 ( x y − y 3 ) y = 1 y = 2 d x ∫ 0 2 ( x − 7 ) d x \int_0^2 (x - 7) dx ∫ 0 2 ( x − 7 ) d x ( x 2 2 − 7 x ) ∣ x = 0 x = 2 (\dfrac{x^2}{2} - 7x) \bigg\rvert_{x = 0}^{x = 2} ( 2 x 2 − 7 x ) x = 0 x = 2 ( 2 − 14 ) − 0 = − 12 (2 - 14) - 0 = \boxed{-12} ( 2 − 14 ) − 0 = − 12 Same answer!
Let’s do a triple integral now!
Example 2 Find ∭ R x z ⋅ e x y d V \iiint_R xz \cdot e^{xy}\ dV ∭ R x z ⋅ e x y d V on the rectangle, R = [ 0 , 1 ] ⋅ [ 0 , 1 ] ⋅ [ 0 , 1 ] = [ 0 , 1 ] 3 R = [0, 1] \cdot [0, 1] \cdot [0, 1] = [0, 1]^3 R = [ 0 , 1 ] ⋅ [ 0 , 1 ] ⋅ [ 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 z z z first is a good idea.
∫ 0 1 ∫ 0 1 ∫ 0 1 x z ⋅ e x y d z d x d y \int_0^1 \int_0^1 \int_0^1 xz \cdot e^{xy}\ dz\ dx\ dy ∫ 0 1 ∫ 0 1 ∫ 0 1 x z ⋅ e x y d z d x d y ∫ 0 1 ∫ 0 1 z 2 x e x y 2 ∣ z = 0 z = 1 d x d y \int_0^1 \int_0^1 \dfrac{z^2 x e^{xy}}{2} \bigg\rvert_{z = 0}^{z = 1} dx\ dy ∫ 0 1 ∫ 0 1 2 z 2 x e x y z = 0 z = 1 d x d y Let’s integrate with respect to y y y , to make it easier.
∫ 0 1 ∫ 0 1 x e x y 2 d x d y \int_0^1 \int_0^1 \dfrac{x e^{xy}}{2} dx\ dy ∫ 0 1 ∫ 0 1 2 x e x y d x d y ∫ 0 1 e x y 2 ∣ y = 0 y = 1 d x \int_0^1 \dfrac{e^{xy}}{2} \bigg\rvert_{y = 0}^{y = 1}\ dx ∫ 0 1 2 e x y y = 0 y = 1 d x ∫ 0 1 e x 2 − 1 2 d x \int_0^1 \dfrac{e^x}{2} - \dfrac{1}{2}\ dx ∫ 0 1 2 e x − 2 1 d x e x 2 − x 2 ∣ x = 0 x = 1 \dfrac{e^x}{2} - \dfrac{x}{2} \bigg\rvert_{x = 0}^{x = 1} 2 e x − 2 x x = 0 x = 1 ( e x 2 − 1 2 ) − ( 1 2 − 0 ) = e 2 − 1 \left(\dfrac{e^x}{2} - \dfrac{1}{2}\right) - \left(\dfrac{1}{2} - 0\right) = \boxed{\dfrac{e}{2} - 1} ( 2 e x − 2 1 ) − ( 2 1 − 0 ) = 2 e − 1
Let’s do one last example.
Example 3 Find ∬ R y ⋅ s i n ( x y ) d A \iint_R y \cdot sin(xy)\ dA ∬ R y ⋅ s in ( x y ) d A on the rectangle, R = [ 1 , 2 ] ⋅ [ 0 , π ] R = [1, 2] \cdot [0, \pi] R = [ 1 , 2 ] ⋅ [ 0 , π ] .
Let’s integrate with respect to x x x , firstly, it’s much easier.
∫ 0 π ∫ 1 2 y ⋅ s i n ( x y ) d x d y \int_0^{\pi} \int_1^2 y \cdot sin(xy)\ dx\ dy ∫ 0 π ∫ 1 2 y ⋅ s in ( x y ) d x d y − ∫ 0 π c o s ( x y ) ∣ x = 1 x = 2 d y -\int_0^{\pi} cos(xy) \bigg\rvert_{x = 1}^{x = 2}\ dy − ∫ 0 π cos ( x y ) x = 1 x = 2 d y − ∫ 0 π c o s ( 2 y ) − c o s ( y ) d y -\int_0^{\pi} cos(2y) - cos(y) \ dy − ∫ 0 π cos ( 2 y ) − cos ( y ) d y − ( s i n ( 2 y ) 2 − s i n ( y ) ) ∣ y = 0 y = π = … = 0 -\left( \dfrac{sin(2y)}{2} - sin(y)\right) \bigg\rvert_{y = 0}^{y = \pi} = \ldots = \boxed{0} − ( 2 s in ( 2 y ) − s in ( y ) ) y = 0 y = π = … = 0