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.
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.
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.
Candela Citations
- CP 4.3. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 3. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/books/calculus-volume-3/pages/1-introduction. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-3/pages/1-introduction