Skip to main content

Section 9.6 Contour Diagrams

Figure 9.4 shows the relationship between tables of data, contour lines, and contour diagrams. Figure 9.5 then shows the relationship of contour diagrams to the underlying graph.

Figure 9.4. The relationship between tables of data and contour diagrams. Click on the check boxes to examine each of these features separately.
Figure 9.5. The relationship between contour diagrams and graphs. Click and drag the figure!

Activity 9.3.

Can you determine the function whose data is shown in Figures 9.4–9.5?

Solution.

The level sets are circles, each with an equation of the form \(x^2+y^2=\hbox{constant}\text{.}\) So the underlying function is \(f(x,y)=x^2+y^2\text{.}\) The three-dimensional graph (click and drag!) in Figure 9.5 shows the paraboloid \(z=x^2+y^2\text{,}\) that is, \(z=f(x,y)\text{.}\)

Activity 9.4. Using technology to visualize level sets.

After you have thought about these questions yourself, you can use the Sage code below to explore several different mechanisms for visualizing level sets in two dimensions. The code in the first box defines and plots a function of two variables.

Now we can plot a contour diagram of the chosen function \(f\text{.}\)

Now try other functions by plugging something else in for \(f(x,y)\) in the first box and then redoing the other steps. A particularly nice choice is \(f=e^{y^2-x^2}\text{.}\)