next up previous
Next: About this document ... Up: lab_template Previous: lab_template

Subsections


Double integrals with Maple

Purpose

The purpose of this lab is to acquaint you with using Maple to do double integrals.

Getting Started

To assist you, there is a worksheet associated with this lab that contains examples. You can copy that worksheet to your home directory with the following command, which must be run in a terminal window, not in Maple.

cp ~bfarr/Doubleint_start.mws ~

You can copy the worksheet now, but you should read through the lab before you load it into Maple. Once you have read to the exercises, start up Maple, load the worksheet Doubleint_start.mws, and go through it carefully. Then you can start working on the exercises.

Background

Volumes from double integrals

Suppose that $R$ is a rectangular region in the the $x-y$ plane, and that $f(x,y)$ is a continuous, non-negative function on $R$. Then the volume of the solid above $R$ and below $z=f(x,y)$ is given by the double integral

\begin{displaymath}\int_R \! \int f(x,y) \, dA \end{displaymath}

You learned in class that such integrals can be evaluated by either of the iterated integrals

\begin{displaymath}\int_a^b \left( \int_c^d f(x,y) \, dy \right) dx \end{displaymath}

or

\begin{displaymath}\int_c^d \left( \int_a^b f(x,y) \, dx \right) dy \end{displaymath}

where the rectangle $R$ is defined by the inequalities $a \leq x \leq
b$ and $c \leq y \leq d$.

The worksheet associated with this lab contains examples of how to use Maple to compute double integrals. It also has an example of how to use Maple if the region of integration is of the more complicated form $R = \left\{(x,y): g_1(x) \leq y \leq g_2(x), a \leq x \leq b \right\}$. This is the case where the base of the solid is not rectangular, but is bounded by two curves $y=g_1(x)$ and $y=g_2(x)$. If $f(x,y)$ is as before, then the volume of the solid above $S$ and below $z=f(x,y)$ is given by

\begin{displaymath}\int_a^b \left( \int_{g_1(x)}^{g_2(x)} f(x,y) \, dy \right) dx \end{displaymath}

The other case, where the region $R$ is $x$-simple can also be handled using Maple, and there is an example in the worksheet.

Exercises

  1. Use Maple to compute the following double integrals.

    1. \begin{displaymath}\int_{-1}^3 \int_0^5 x^2y \, dx \, dy\end{displaymath}


    2. \begin{displaymath}\int_{0}^{1} \int_{0}^{\pi} x \sin(xy) \, dy \, dx\end{displaymath}


    3. \begin{displaymath}\int_{1}^{2} \int_{0}^{1} \frac{y}{1+x^2} \, dx \, dy\end{displaymath}

  2. Let $R$ be the region in the $x-y$ plane containing the origin and bounded by the two curves $y=x^2+2x-5$ and $y= 5x+5$. Compute

    \begin{displaymath}\int_R \! \int f(x,y) \, dA \end{displaymath}

    where $f(x,y)=2x+y^2+1$. Include a plot of the region $R$ in your worksheet.

  3. Consider the following integral

    \begin{displaymath}\int_R \! \int x^2+y^3 \, dA \end{displaymath}

    where the region $R$ is bounded by $2x+3y=6$, $x=-1$, and $y=0$. First, plot the region $R$. Then compute the integral using $x$ as the inner variable of integration. Repeat the calculuation using $y$ as the inner variable of integration. You should get the same answer.

  4. Use a double integral to find the volume of the region beneath the plane with equation $x+2y+z=4$ and above the triangle with vertices $(0,0)$, $(1,0)$, and $(0,2)$. Include a plot of the region in the $xy$ plane.


next up previous
Next: About this document ... Up: lab_template Previous: lab_template
William W. Farr
2003-09-26