MAT37x
Franklin College
Spring2004
Erich Prisner,

What hills, what hills are those my love
That rise so fair and high?
Those are the hills of Heaven, my love
But not for you and I

Skiing and lava on

Example 1

We have a function

f(x,y) = 0.3*sin(x-1.5)*cos(2*y-4.7)+0.2*sin((x-2.6)*(y-1.6))+0.15*(x-2) + 0.05*(y-2)

Here is a 3D picture of the surface for x and y both between 0 and 6. Have a good look on the surface. Try to identify all hills (relative maximums), sinks (relative minimums) and saddle points. How many of each can you find?

How the applet works

In the applet below, you can play with the surface, thereby investigating it further. First note that you see a topographical map of the surface. The black curves are "streets"---lines of the same height. We call them level lines.

We start by simulating lava streams in Iceland. Press the "lava" button. Click on the map where the lava should start. Click several times (anywhere) on the map to let it run further. You can create up to 50 lava streams. Describe the way of the lava in terms of the level lines. Click until the line goes no further. In what kind of point does this happen.

Now click the "climb" button, the surface where we are to start, and again several times the surface anywhere. What is the resulting curve? Describe it again. What is the difference to the lava line? Again click until the line ends and describe at which kind of point this happens.

Now click the "roll ball" button. Click on the surface to start it, and click again several times anywhere on the surface to continue its way. If the ball moves too quick, reduce speed by decreasing the "factor" (click on the "decrease" button to the right of the "factor" field. What is the difference between the lava lines? Start a lava line and a ball line at the same point and see what happens. Describe the different behavior of lava and balls going down a hill.

Now increase or decrease the "slipperiness" of the snow, and again compare ball and lava. What do you observe for very small slipperiness (like 0.7 or so)?

Unfortunately your browser does not support Java applets.


Exercises:

  1. Find all 10 saddle points of the surface by starting on one of the saddle point buttons and clicking repeatedly on the landscape. After having found a saddle point, start two lava trails downhill untill they end in a sink, and two steepest ascend climb trails until they hit a hill. Solution.
  2. ......

The partial derivatives

See 3D views of fx and fy here (actually I made the x-y plane a water surface, so only the positive parts of fx and fy show):
f: fx: fy:

The eight directions

Standing at every point, there are eight natural directions to go. When clicking the "climb" button, the computer moves into the gradient direction (fx,fy), wheras with the "lava" button it moves in the opposite direction (-fx,-fy). With the "saddle1" button it moves in the direction (fx,-fy), and with the "saddle2" button again in the opposite direction (-fx,fy).

Sligtly differently works the "street" button, it lets the computer move into direction (fy,-fx), creating a level line. The same level lines in the other direction would be created by moving into (fy,-fx) direction. But what would happen if the computer would always move into direction (fy,fx)? Unfortunately there is no such button on the applet.

The four kinds of areas

What does fx>0 mean for a point in the original surface? It means that the surface increase when moving in the (positive) x-direction. In other words, at that point one can see the sunset (at least locally, disregardin all hills blocking the view that are farther away. On the other hand fx<0 means we can see the sunrise (locally). fy>0 means we have a local view south, and fy<0 northwards.

The most important part of fx and fy are the points (x,y) with fx=0 or fy=0. These are the points where the fx and fy surfaces touch the "water" x-y plane. Hold your mouse over this link to visualize these lines on the map of the surface. The black lines are the points where fx=0, and the red lines are those points with fy=0. Hold the mouse over this link to change the picture back. Here you see the four kind of areas, depending on the signs of fx and fy


Gradient

Now the gradient vector is obviously (fx,fy),(see the gradient field here) whereas (-fx,-fy) shows the direction where the steepest descend is. This steepest descend has the slope sqrt(fx^2+fy^2). if the mass is accellerated by factor when falling, we get the accelleration down this steepest descend as ... = (factor*fx/sqrt(slope^2+1),factor*fx/sqrt(slope^2+1)). This is the formula we use for the moving ball, in connection, of course with the Traegheit ...

... look ... ... back ... Project:
Open Project: Watershed Lines
Convexity/Concavity

And what hills, what hills are those my love
Those hills so dark and low?
Those are the hills of Hell, my love
Where you and I must go.
(House Carpenter)