f(x,y) assigns every ordered pair (x,y) in the domain D of f
A unique number z=f(x,y) in the range of f
An Example Multivariable Function
Volume of a Cylinder:
v(h,r)=πr2h
Filled out:
v(2,3)=π322=18π
Contour Maps
Simple Python MatplotLib contour map:
Now, projecting this onto a 2d plane:
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:
4x2−9y2=z
In the plane z=1:
4x2−9y2=1
Plotting this with MatPlotLib yields:
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 4x2−9y2=1, 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!