Functions of Several Variables: Learn It 3

Level Curves

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, where each contour line corresponds to points on the map that have equal elevation (Figure 1). A level curve of a function of two variables [latex]f(x,y)[/latex] works exactly the same way as a contour 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.

level curve

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].

Consider the function [latex]g(x,y)=\sqrt{9-x^{2}-y^{2}}[/latex] with range [latex][0,3][/latex]. To find a level curve, we choose a value in this interval—say, [latex]c=2[/latex]—and set the function equal to this value:

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

Square both sides:

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

Simplify by multiplying both sides by [latex]-1[/latex] and adding [latex]9[/latex]:

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

This equation describes a circle centered at the origin with radius [latex]\sqrt{5}[/latex]. Using different 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], the circle has radius [latex]0[/latex], so it consists solely of the origin. Figure 2 shows the level curves for [latex]c=0,1,2[/latex], and [latex]3[/latex].

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).
When contour lines are close together, the function is changing rapidly. When contour lines are far apart, the function is changing slowly. This is why steep mountain slopes show tightly packed contour lines on topographical maps.

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

contour map

A graph of the various level curves of a function is called 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]?

Vertical Traces

Level curves are always graphed in the [latex]xy[/latex]-plane, but vertical traces are graphed in the [latex]xz[/latex]– or [latex]yz[/latex]-planes. Vertical traces help you understand how a surface behaves when you “slice” through it parallel to a coordinate plane.

vertical traces

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].

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].

Functions of two variables can produce some striking-looking surfaces. Figure 7 shows two examples that combine different types of functions.

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.