8 Graphs & Level Sets
So far in this course we have been studying parametric curves. These are functions which have a single input (the parameter) and multiple outputs (perhaps
In physics, functions with multiple inputs are often called fields. So yet another name for this class of things is a scalar field! Just as I have done in these notes elsewhere (with vector notation, for example) I will try to use all of these terms to help you prepare for the real world where there’s no standardization.
Definition 8.1 (Multivariate Function) A function
uch a function is written
Example 8.1 The domain of
Our goal in this chapter is to get comfortable with multivariable functions from two different perspectives: drawing graphs and drawing level sets.
8.0.1 Examples
Scalar fields show up everywhere in mathematics and the sciences. Consider the temperature in a room: this is a function that takes in a point (say, with three coordinates
If we wanted to track the temperature over time, this could be done with a function
Of course - temperature is just an arbitrary (but conceptually useful!) example. Any quantity you can measure at differet points in space(time) gives a scalar function of 3 or 4 variables!
Exercise 8.1 Come up with some examples of scalar functions that you think about in daily life (without necessarily having ever thought about them mathematically!)
8.1 Graphs
The graph of a 1-variable function
Definition 8.2 The graph of a function
This isn’t that useful for visualizing unless dimenisons are pretty small! If there are
If
Here’s a graphing calculator for functions
8.1.1 How to Draw Graphs
Drawing a 3D graph is difficult to do in general: but often we can use our knowledge of 2D graphs to try and build up an understanding by slicing. The idea is to take a function
Example 8.2 (Slicing
Thus, as
Example 8.3 (Slicing
Example 8.4 (Slicing
8.1.2 Useful Graphs to Know
There are a couple multivariable functions whose graphs are good to know. Indeed - we’ve already met some of these before! If
This is a plane! (It might help to rewrite as
What about
Another useful function to know is the saddle surface
8.2 Level Sets
Above we looked at one means of drawing a graph by slicing: we attempted to slice it by vertical planes into the graphs of simpler 1-dimensional functions that we already knew! This works sometimes, but if you can’t quickly stack the slices into a coherent image in your mind, knowing the slices won’t help you with much else.
So here, we seek other methods of understanding these functions, beyond their graphs. By far the most useful way to depict multivariable functions is by instead slicing with horizontal planes and drawing their level sets.
Definition 8.3 (Level set) The level set corresponding to
Here’s a graphing calculator that will draw for you the level sets of a function: I often think about “sea level” when I think of a level set - a coastline is the level set
A contour plot is a drawing of the domain of a function, with level sets representing various values of the range. These are perhaps most familiar from elevation maps. Drawing multiple level sets at once gives a good sense of the behavior of the entire function, though its most effective when the individual level sets are labled somehow (often by color) so you can get a sense of their relative values.
Below, we draw the same map but only plot the level curve corresponding to 200ft above sea level.
A single level set of a function is actually something that you’ve encountered in previous courses: we called it an implicit equation as it defines a shape implicitly by saying
Below is a graphing calculator to let you draw some contour plots. Can you imagine the 3D shape from its 2D slices?
After looking at several functions and their level sets, you’ll start to notice that there are a couple “important behaviors” that show up again and again. These are
- Concentric rings, around a point
- Nearly parallel lines
- Two lines crossing each other.
These signify three important types of behaivor, which we can see by looking back to our “useful graphs to know”
Concentric rings around a point signifies the function has either a maximum or a minimum there.
Nearly parallel lines means the function is increasing or decreasing there.
Two lines crossing means that we are at a saddle shaped point on our graph - it increases in two directions and decreases in the other two.
It turns out, that all behavior of level sets is built out of these three basic behaivors.
8.3 Functions of Variables
Drawing a contour plot is a form of dimension reduction: we’ve managed to understand the behavior of a function
This technique can help us level up our intuition to functions of three variables: things like
Exercise 8.2 What do the level sets of the function
In three dimensions there are more types of basic behavior than the ones we saw in 2D. You don’t need to learn all of them: but to try and get some intuition for the fourth dimension its a good exercise to try and imagine what the graphs of these functions must be like, if their contours are drawn below.
Three dimensional level sets describe implicit surfaces which are extremely useful objects. As we’ve already seen with curves, sometimes writing down a paramterization can be hard. Adn this is even more true for surfaces! So having another way to express complicated ones can be a huge help. Below are two examples where I have used implicit surfaces in mathematical rendering.
8.4 Videos
The Calculus Blue Series introduction to multivariate functions:
The Calculus Blue series on Level Sets: