Definition: Function of 2 Variables f(x,y)

  • assigns every ordered pair in the domain of f

  • A unique number in the range of


An Example Multivariable Function

Volume of a Cylinder:

Filled out:


Contour Maps

Simple Python MatplotLib contour map:

Python
Output

Now, projecting this onto a 2d plane:

Python
Output

You might notice that the “tighter” the contours, the “steeper” the surface.

How do you go back and forth between the projection and the 3d graph?

2D Vs. 3D Contour Maps: Projection and Lifting

In a 3D contour map, we’re “lifting” the contours off the surface, giving each curve a specific height (or z value). Imagine slowly pulling up a flexible surface to see its shape in space. Each contour line represents a different height level, like a slice of the shape.

When we “squish” this back down into a 2D contour map, we flatten the surface while still showing where those height changes occur. The heights aren’t lost, but represented through lines on the flat plane, much like a topographical map of terrain. Each line corresponds to a different elevation, giving us a view of the shape without the 3D depth.

NOTE

This is similar to how topographical maps show mountains and valleys. Instead of showing peaks, we use contour lines to indicate changes in elevation.


Example

Let’s make a contour map for the following equation:

In the plane :

Plotting this with MatPlotLib yields:

Python
Output

Contour Density and Steepness

In a contour map, the spacing between lines reveals the steepness of the surface. When the contours are far apart, the elevation is changing gradually. But when the contours get closer together, the surface becomes steeper, showing a rapid change in elevation.

In the case of the hyperbolic contour map for , as the contours tighten around certain regions, it indicates that the surface is becoming much steeper there. This is similar to how, on a topographical map, closely packed lines represent a sharp incline on a mountain.

NOTE

The tighter the contours, the faster the change in height, just like on steep slopes in nature!