Level Curves

Learning Outcomes

  • Sketch several traces or level curves of a function of two variables.

If hikers walk along rugged trails, they might use a topographical map that shows how steeply the trails change. A topographical map contains curved lines called contour lines. Each contour line corresponds to the points on the map that have equal elevation (Figure 1). A level curve of a function of two variables [latex]f\,(x,\ y)[/latex] is completely analogous to a counter line on a topographical map.

This figure consists of two figures marked a and b. Figure a shows a topographic map of Devil’s Tower, which has its lines very close together to indicate the very steep terrain. Figure b shows a picture of Devil’s Tower, which has very steep sides.

Figure 1. (a) A topographical map of Devil’s Tower, Wyoming. Lines that are close together indicate very steep terrain. (b) A perspective photo of Devil’s Tower shows just how steep its sides are. Notice the top of the tower has the same shape as the center of the topographical map.

Definition


Given a function [latex]f\,(x,\ y)[/latex] and a number [latex]c[/latex] in the range of [latex]f[/latex], a level curve of a function of two variables for the value [latex]c[/latex] is defined to be the set of points satisfying the equation [latex]f\,(x,\ y)=c[/latex].

Returning to the function [latex]g\,(x,\ y)=\sqrt{9-x^{2}-y^{2}}[/latex], we can determine the level curves of this function. The range of [latex]g[/latex] is the closed interval [latex][0,\ 3][/latex]. First, we choose any number in this closed interval—say, [latex]c=2[/latex]. The level curve corresponding to [latex]c=2[/latex] is described by the equation

[latex]\sqrt{9-x^{2}-y^{2}}=2[/latex].

To simplify, square both sides of this equation:

[latex]9-x^{2}-y^{2}=4[/latex].

Now, multiply both sides of the equation by [latex]-1[/latex] and add [latex]9[/latex] to each side:

[latex]x^{2}+y^{2}=5[/latex].

This equation describes a circle centered at the origin with radius [latex]\sqrt{5}[/latex]. Using values of [latex]c[/latex] between [latex]0[/latex] and [latex]3[/latex] yields other circles also centered at the origin. If [latex]c=3[/latex], then the circle has radius [latex]0[/latex], so it consists solely of the origin. Figure 2 is a graph of the level curves of this function corresponding to [latex]c=0,\ 1,\ 2[/latex], and [latex]3[/latex]. Note that in the previous derivation it may be possible that we introduced extra solutions by squaring both sides. This is not the case here because the range of the square root function is nonnegative.

Three concentric circles with center at the origin. The largest circle marked c = 0 has a radius of 3. The medium circle marked c = 1 has a radius slightly less than 3. The smallest circle marked c = 2 has a radius slightly more than 2.

Figure 2. Level curves of the function [latex]\small{g(x,y)=\sqrt{9-x^{2}-y^{2}}}[/latex], using [latex]\small{c=0,1,2}[/latex], and [latex]\small{3}[/latex] ([latex]\small{c=3}[/latex] corresponds to the origin).

A graph of the various level curves of a function is called a contour map.

Example: Making a Contour Map

Given the function [latex]f\,(x,\ y)=\sqrt{8+8x-4y-4x^{2}-y^{2}}[/latex], find the level curve corresponding to [latex]c=0[/latex]. Then create a contour map for this function. What are the domain and range of [latex]f[/latex]?

Try It

Find and graph the level curve of the function [latex]g\,(x,\ y)=x^{2}+y^{2}-6x+2y[/latex] corresponding to [latex]c=15[/latex].

Another useful tool for understanding the graph of a function of two variables is called a vertical trace. Level curves are always graphed in the [latex]xy[/latex]-plane, but as their name implies, vertical traces are graphed in the [latex]xz[/latex]– or [latex]yz[/latex]-planes.

Definition


Consider a function [latex]z=f\,(x,\ y)[/latex] with domain [latex]D\subseteq\mathbb{R}^{2}[/latex]. A vertical trace of the function can be either the set of points that solves the equation [latex]f\,(a,\ y)=z[/latex] for a given constant [latex]x=a[/latex] or [latex]f\,(x,\ b)=z[/latex] for a given constant [latex]y=b[/latex].

Example: Finding Vertical Traces

Find vertical traces for the function [latex]f\,(x,\ y)=\sin{x}\cos{y}[/latex] corresponding to [latex]x=-\frac{\pi}{4}, 0[/latex], and [latex]\frac{\pi}{4}[/latex], and [latex]y=-\frac{\pi}{4}, 0[/latex], and [latex]\frac{\pi}{4}[/latex].

Try It

Determine the equation of the vertical trace of the function [latex]g\,(x,\ y)=-x^{2}-y^{2}+2x+4y-1[/latex] corresponding to [latex]y=3[/latex], and describe its graph.

Watch the following video to see the worked solution to the above Try It

Functions of two variables can produce some striking-looking surfaces. The following figure shows two examples.

This figure consists of two figures marked a and b. In figure a, the function f(x, y) = x2 sin y is given; it has some sinusoidal properties by increases as the square along the maximums of the sine function. In figure b, the function f(x, y) = sin(ex) cos(ln y) is given in three dimensions; it decreases gently from the corner nearest (–2, 20) but then seems to bunch up into a series of folds that are parallel to the x and y axes.

Figure 7. Examples of surfaces representing functions of two variables: (a) a combination of a power function and a sine function and (b) a combination of trigonometric, exponential, and logarithmic functions.