Skip to main content

Section 3.14 ID1: Integrals Over Rectangles

Handout ID1: Lecture Scaffold

Recall: Riemann Integral in 1 variable.

Let \(y=f(x)\) be a function defined on the interval \([a,b]\text{.}\) Further, suppose that \(a=x_0< x_1\cdots< x_n=b\) so that the points partition the interval \([a,b]\) into \(n\) pieces of equal width \(\Delta x=\frac{b-a}{n}\text{.}\) Then the following Riemann sum:
\begin{equation*} \sum_{i=0}^nf(x^*_{i})\Delta x, \end{equation*}
where \(x^*_i\in[x_i,x_{i+1}]\) represents an approximation of the area between the graph of \(y=f(x)\) and the interval \([a,b]\text{.}\)
If \(f(x)\) is integrable then, as our partitions get finer and finer, the limit of these approximations exist to what we call the integral:
\begin{equation*} \lim_{n\to\infty}\sum_{i=0}^nf(x^*_{i})\Delta x=\int_a^bf(x)dx \end{equation*}

How this works in 2 variables.

Now let \(y=f(x,y)\) be a function defined on the rectangle
\begin{equation*} R=[a,b]\times [c,d]=\{(x,y)\colon a\leq x\leq b,\ c\leq y\leq d\}. \end{equation*}
and suppose we want to estimate the volume of the three-dimensional regional above the rectangle \(R\) and below the graph of \(z=f(x,y)\text{.}\)
One way to approximate this would be as follows:
  • Choose points \(a=x_0< x_1\dots < x_n=b\text{,}\) \(y_0=c< y_1<\cdots< y_m=d\) to subdivide \(R\) into \(n\cdot m\) rectangles of dimension \(\Delta A=\Delta x\cdot \Delta y=\frac{b-a}{n}\frac{d-c}{m}\text{.}\)
  • Inside each rectangle \(R_{ij}=[x_i,x_{i+1}]\times[y_j,y_{j+1}]\text{,}\) choose a point \((x_i^*,y_j^*)\in R_i\) as a sample point.
  • Then the quantity \(f(x_i^*,y_j^*)\Delta x\Delta y\) represents the volume of a rectangular prism with base \(R_i\) and height equal to \(f(x_i^*,y_j^*)\text{.}\)
  • The sum
    \begin{equation*} \sum_{ij}f(x_i^*,y_j^*)\Delta x\Delta y=\sum_{i=0}^{n-1}\sum_{j=0}^{m-1}f(x_i^*,y_j^*)\Delta x\Delta y \end{equation*}
    is then an approximation of the volume we seek.

Definition 3.14.1.

If these approximations converge to a common value as we take finer and finer partitions, we say \(f\) is integrable and the common limit is the (double) integral:
\begin{equation*} \lim_{n,m\to\infty}\sum_{ij}f(x_i^*,y_j^*)\Delta x\Delta y=\sum_{i=0}^{n-1}\sum_{j=0}^{m-1}f(x_i^*,y_j^*)\Delta x\Delta y=\int\int_R f(x,y)dA. \end{equation*}

Calculating Using Cross-Sections.

Recall that if \(A(x)\) represents the cross-sectional area of a solid body along the interval \([a,b]\text{,}\) then
\begin{equation*} \int_a^bA(x)dx \end{equation*}
is the volume of the solid.
We can use this to help calculate the kinds of integrals we just defined:
Suppose we want to calculate the area under \(z=4-x-y\) over the rectangular region \(R=[0,2]\times [0,1]\text{.}\)

Definition 3.14.2.

Expressions of the form \(\int_a^b\int_c^df(x,y)dydx\) or \(\int_c^d\int_a^bf(x,y)dxdy\) are called iterated integrals.
Note that the order of \(dx,dy\) tells us what order to integrate: from the inside out.

Example 3.14.4.

Calculate \(\int\int_Rf(x,y)\) where \(f(x,y)=100-6x^2y\text{,}\) and \(R=[0,2]\times[-1,1]\)

Problem 3.14.5 ID1 Representative Assessment.

(a)

Evaluate the following integrals:
  1. \(\displaystyle \int_{-1}^2\int_0^{\frac{\pi}{2}}y\sin{x}dxdy\)
  2. \(\displaystyle \int_1^4\int_1^e\frac{\ln{x}}{xy}dxdy\)
Solution.
  1. First note:
    \begin{align*} \int_{-1}^2\int_0^{\frac{\pi}{2}} y\sin(x) \, dx \, dy \amp = \int_{-1}^2y\int_0^{\frac{\pi}{2}}\sin{x} \, dx \, dy=\int_{-1}^2y \ dy\cdot\int_0^{\frac{\pi}{2}}\sin{x} \ dx \end{align*}
    Evaluating each single-variable integral:
    \begin{align*} \int_{-1}^2 y \, dy \amp = \left[ \frac{y^2}{2} \right]_{-1}^2 = \frac{4}{2} - \frac{1}{2} = \frac{3}{2}\\ \int_0^{\frac{\pi}{2}} \sin(x) \, dx \amp = \left[ -\cos(x) \right]_0^{\frac{\pi}{2}} = -\cos\left(\frac{\pi}{2}\right) - (-\cos(0)) = 0 + 1 = 1 \end{align*}
    Multiplying the results gives:
    \begin{gather*} \frac{3}{2} \cdot 1 = \frac{3}{2} \end{gather*}
  2. We first compute the inner integral with respect to \(x\text{:}\) \(\int_1^e \frac{\ln(x)}{x} dx\text{.}\) Using substitution with \(u = \ln(x)\) and \(du = \frac{1}{x} dx\text{:}\)
    \begin{align*} \int_1^e \frac{\ln(x)}{x} \, dx \amp = \int_0^1 u \, du = \left[ \frac{u^2}{2} \right]_0^1 = \frac{1}{2} \end{align*}
    Now substitute this result into the outer integral with respect to \(y\text{:}\)
    \begin{align*} \int_1^4 \frac{1}{y} \left( \frac{1}{2} \right) \, dy \amp = \frac{1}{2} \int_1^4 \frac{1}{y} \, dy = \frac{1}{2} \left[ \ln|y| \right]_1^4\\ \amp = \frac{1}{2} (\ln 4 - \ln 1) = \frac{1}{2} \ln 4 = \ln 2 \end{align*}

(b)

Explain and demonstrate why using Fubini’s theorem to evaluate the following integral is helpful:
\begin{equation*} \int_0^1\int_0^3xe^{xy}dxdy. \end{equation*}
Solution.
Evaluating the integral in the original order with respect to \(x\) first requires integration by parts (since \(x e^{xy}\) has \(x\) multiplied by an exponential function of \(x\)).
By applying Fubini’s Theorem, we can swap the order of integration to integrate with respect to \(y\) first:
\begin{gather*} \int_0^3 \int_0^1 x e^{xy} \, dy \, dx \end{gather*}
With respect to \(y\text{,}\) \(x\) is treated as a constant, making the antiderivative of \(x e^{xy}\) simply \(e^{xy}\) without requiring integration by parts:
\begin{align*} \int_0^1 x e^{xy} \, dy \amp = \left[ e^{xy} \right]_{y=0}^{y=1} = e^x - e^0 = e^x - 1 \end{align*}
Now integrating this simpler expression with respect to \(x\) from \(0\) to \(3\text{:}\)
\begin{align*} \int_0^3 (e^x - 1) \, dx \amp = \left[ e^x - x \right]_0^3 = (e^3 - 3) - (e^0 - 0) = e^3 - 4 \end{align*}