Subsections

# MA 1024 Lab 2: Surfaces

## Purpose

The purpose of this lab is to introduce you to some of the Maple commands that can be used to plot surfaces in three dimensions.

## Getting Started

To assist you, there is a worksheet associated with this lab that contains examples and even solutions to some of the exercises. 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/Surfaces_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 Surfaces_start.mws, and go through it carefully. Then you can start working on the exercises.

## Background

The graph of a function of a single real variable is a set of points  in the plane. Typically, the graph of such a function is a curve. For functions of two variables, the graph is a set of points   in three-dimensional space. For this reason, visualizing functions of two variables is usually more difficult.

One of the most valuable services provided by computer software such as Maple is that it allows us to produce intricate graphs with a minimum of effort on our part. This becomes especially apparent when it comes to functions of two variables, because there are many more computations required to produce one graph, yet Maple performs all these computations with only a little guidance from the user.

Two common ways of representing the graph of a function of two variables are the surface plot and the contour plot. The first is simply a representation of the graph in three-dimensional space. The second draws the level curves for several values of  in the plane. We will explore how to produce these kinds of graphs in Maple, and how to use the graphs to study the functions.

## Exercises

1. Generate a surface plot and contour plot for the following functions on the given domains.
1. for and .
2. for and .
What do the contour and surface plots tell you about the difference between these two functions? For example, which function has contours that look like nested ellipses? How is this the graph of this function different from the graph of the other function?

2. A group of oceanographers is mapping the ocean floor to assist in the recovery of a sunken ship. Using sonar, they develop the model

where is the depth and and are the distances in kilometers.
1. Graph the surface corresponding to the function over the given domain.

2. Plot at least contours of the function and note the values of at these contours.

3. Can you find a path on the ocean floor that connects the point to the point so that the depth is always between and ? (Hint - use a contour plot, and sketch your path by hand directly on the contour plot.)