13 Functions of Several Variables

13.1 Introduction to Multivariable Functions

Definition 13.1.1 Function of Two Variables

Let D be a subset of 2. A function f of two variables is a rule that assigns each pair (x,y) in D a value z=f(x,y) in . The set D is the domain of f; the set of all outputs of f is the range.

Example 13.1.1 Understanding a function of two variables

Let z=f(x,y)=x2-y. Evaluate f(1,2), f(2,1), and f(-2,4); find the domain and range of f.

SolutionUsing the definition f(x,y)=x2-y, we have:

f(1,2) =12-2=-1
f(2,1) =22-1=3
f(-2,4) =(-2)2-4=0

The domain is not specified, so we take it to be all possible pairs in 2 for which f is defined. In this example, f is defined for all pairs (x,y), so the domain D of f is 2.

The output of f can be made as large or small as possible; any real number r can be the output. (In fact, given any real number r, f(0,-r)=r.) So the range R of f is .

margin: x29+y24=1-55-55xy Figure 13.1.1: Illustrating the domain of f(x,y) in Example 13.1.2. Λ
Example 13.1.2 Understanding a function of two variables

Let f(x,y)=1-x29-y24. Find the domain and range of f.

SolutionThe domain is all pairs (x,y) allowable as input in f. Because of the square-root, we need (x,y) such that 01-x29-y24:

x29+y241

The above equation describes an ellipse and its interior as shown in Figure 13.1.1. We can represent the domain D graphically with the figure; in set notation, we can write D={(x,y)|x29+y241}.

The range is the set of all possible output values. The square-root ensures that all output is 0. Since the x and y terms are squared, then subtracted, inside the square-root, the largest output value comes at x=0, y=0: f(0,0)=1. Thus the range R is the interval [0,1].

Graphing Functions of Two Variables

The graph of a function f of two variables is the set of all points (x,y,f(x,y)) where (x,y) is in the domain of f. This creates a surface in space.

margin:
(fullscreen)
(a)
(fullscreen)
(b)
Figure 13.1.2: Graphing a function of two variables. Λ

One can begin sketching a graph by plotting points, but this has limitations. Consider Figure 13.1.2(a) where 25 points have been plotted of f(x,y)=1x2+y2+1. More points have been plotted than one would reasonably want to do by hand, yet it is not clear at all what the graph of the function looks like. Technology allows us to plot lots of points, connect adjacent points with lines and add shading to create a graph like Figure 13.1.2(b) which does a far better job of illustrating the behavior of f.

While technology is readily available to help us graph functions of two variables, there is still a paper-and-pencil approach that is useful to understand and master as it, combined with high-quality graphics, gives one great insight into the behavior of a function. This technique is known as sketching level curves.

Level Curves

It may be surprising to find that the problem of representing a three dimensional surface on paper is familiar to most people (they just don’t realize it). Topographical maps, like the one shown in Figure 13.1.3, represent the surface of Earth by indicating points with the same elevation with contour lines. The elevations marked are equally spaced; in this example, each thin line indicates an elevation change in 50ft increments and each thick line indicates a change of 200ft. When lines are drawn close together, elevation changes rapidly (as one does not have to travel far to rise 50ft). When lines are far apart, such as near “Aspen Campground,” elevation changes more gradually as one has to walk farther to rise 50ft.

margin: Figure 13.1.3: A topographical map displays elevation by drawing contour lines, along with the elevation is constant.Sample taken from the public domain USGS Digital Raster Graphics, http://topmaps.usgs.gove/drg/. Λ

Given a function z=f(x,y), we can draw a “topographical map” of f by drawing level curves (or, contour lines). A level curve at z=c is a curve in the x-y plane such that for all points (x,y) on the curve, f(x,y)=c.

When drawing level curves, it helps to evenly space the c values as that gives the best insight to how quickly the “elevation” is changing. Examples will help one understand this concept.

Example 13.1.3 Drawing Level Curves

Let f(x,y)=1-x29-y24. Find the level curves of f for c=0, 0.2, 0.4, 0.6, 0.8 and 1.

SolutionConsider first c=0. The level curve for c=0 is the set of all points (x,y) such that 0=1-x29-y24. Squaring both sides gives us

x29+y24=1,

an ellipse centered at (0,0) with horizontal major axis of length 6 and minor axis of length 4. Thus for any point (x,y) on this curve, f(x,y)=0.

Now consider the level curve for c=0.2

0.2 =1-x29-y24
0.04 =1-x29-y24
x29+y24 =0.96
x28.64+y23.84 =1.

This is also an ellipse, where a=8.642.94 and b=3.841.96.

In general, for z=c, the level curve is:

c =1-x29-y24
c2 =1-x29-y24
x29+y24 =1-c2
x29(1-c2)+y24(1-c2) =1,

ellipses that are decreasing in size as c increases. A special case is when c=1; there the ellipse is just the point (0,0).

margin: -112-23-3-11-22c=1c=0.6xy (a)
(fullscreen)
(b)
Figure 13.1.4: Graphing the level curves in Example 13.1.3. Λ

The level curves are shown in Figure 13.1.4(a). Note how the level curves for c=0 and c=0.2 are very, very close together: this indicates that f is growing rapidly along those curves.

In Figure 13.1.4(b), the curves are drawn on a graph of f in space. Note how the elevations are evenly spaced. Near the level curves of c=0 and c=0.2 we can see that f indeed is growing quickly.

Example 13.1.4 Analyzing Level Curves

Let f(x,y)=x+yx2+y2+1. Find the level curves for z=c.

SolutionWe begin by setting f(x,y)=c for an arbitrary c and seeing if algebraic manipulation of the equation reveals anything significant.

x+yx2+y2+1 =c
x+y =c(x2+y2+1).
We recognize this as a circle, though the center and radius are not yet clear. By completing the square, we can obtain:
(x-12c)2+(y-12c)2 =12c2-1,

a circle centered at (1/(2c),1/(2c)) with radius 1/(2c2)-1, where |c|<1/2. The level curves for c=±0.2,±0.4 and ±0.6 are sketched in Figure 13.1.5(a). To help illustrate “elevation,” we use thicker lines for c values near 0, and dashed lines indicate where c<0.

margin: -55-4-224c=0c=0.2c=0.4xy (a)
(fullscreen)
(b)
Figure 13.1.5: Graphing the level curves in Example 13.1.4. Λ

There is one special level curve, when c=0. The level curve in this situation is x+y=0, the line y=-x.

In Figure 13.1.5(b) we see a graph of the surface. Note how the y-axis is pointing away from the viewer to more closely resemble the orientation of the level curves in (a).

Seeing the level curves helps us understand the graph. For instance, the graph does not make it clear that one can “walk” along the line y=-x without elevation change, though the level curve does.

Functions of Three Variables

We extend our study of multivariable functions to functions of three variables. (One can make a function of as many variables as one likes; we limit our study to three variables so that we are able to view the domain without exceeding three dimensions.)

Definition 13.1.2 Function of Three Variables

Let D be a subset of 3. A function f of three variables is a rule that assigns each triple (x,y,z) in D a value w=f(x,y,z) in . The set D is the domain of f; the set of all outputs of f is the range.

Note how this definition closely resembles that of Definition 13.1.1.

Example 13.1.5 Understanding a function of three variables

Let f(x,y,z)=x2+z+3sinyx+2y-z. Evaluate f at the point (3,0,2) and find the domain and range of f.

Solutionf(3,0,2)=32+2+3sin03+2(0)-2=11.

As the domain of f is not specified, we take it to be the set of all triples (x,y,z) for which f(x,y,z) is defined. As we cannot divide by 0, we find the domain D is

D={(x,y,z)|x+2y-z0}.

We recognize that the set of all points in 3 that are not in D form a plane in space that passes through the origin (with normal vector 1,2,-1).

We determine the range R is ; that is, all real numbers are possible outputs of f. There is no set way of establishing this. Rather, to get numbers near 0 we can let y=0 and choose z-x2. To get numbers of arbitrarily large magnitude, we can let zx+2y.

Level Surfaces

It is very difficult to produce a meaningful graph of a function of three variables. A function of one variable is a curve drawn in 2 dimensions; a function of two variables is a surface drawn in 3 dimensions; a function of three variables is a hypersurface drawn in 4 dimensions.

There are a few techniques one can employ to try to “picture” a graph of three variables. One is an analogue of level curves: level surfaces. Given w=f(x,y,z), the level surface at w=c is the surface in space formed by all points (x,y,z) where f(x,y,z)=c.

Example 13.1.6 Finding level surfaces

If a point source S is radiating energy, the intensity I at a given point P in space is inversely proportional to the square of the distance between S and P. That is, when S=(0,0,0), I(x,y,z)=kx2+y2+z2 for some constant k.

Let k=1; find the level surfaces of I.

SolutionWe can (mostly) answer this question with “common sense.” If energy (say, in the form of light) is emanating from the origin, its intensity will be the same at all points equidistant from the origin. That is, at any point on the surface of a sphere centered at the origin, the intensity should be the same. Therefore, the level surfaces are spheres.

We now find this mathematically. The level surface at I=c is defined by

c =1x2+y2+z2.
taking reciprocals reveals
x2+y2+z2 =1c.

Given an intensity c, the level surface I=c is a sphere of radius 1/c, centered at the origin.

margin: c r 16. 0.25 18. 0.35 14. 0.5 12. 0.71 11. 1. 10.5 1.41 10.25 2. 10.125 2.83 10.0625 4. Figure 13.1.6: A table of c values and the corresponding radius r of the spheres of constant value in Example 13.1.6. Λ

Figure 13.1.6 gives a table of the radii of the spheres for given c values. Normally one would use equally spaced c values, but these values have been chosen purposefully. At a distance of 0.25 from the point source, the intensity is 16; to move to a point of half that intensity, one just moves out 0.1 to 0.35 — not much at all. To again halve the intensity, one moves 0.15, a little more than before.

Note how each time the intensity if halved, the distance required to move away grows. We conclude that the closer one is to the source, the more rapidly the intensity changes.

In the next section we apply the concepts of limits to functions of two or more variables.

Exercises 13.1

 

Terms and Concepts

  1. 1.

    Give two examples (other than those given in the text) of “real world” functions that require more than one input.

  2. 2.

    The graph of a function of two variables is a             .

  3. 3.

    Most people are familiar with the concept of level curves in the context of              maps.

  4. 4.

    T/F: Along a level curve, the output of a function does not change.

  5. 5.

    The analogue of a level curve for functions of three variables is a level             .

  6. 6.

    What does it mean when level curves are close together? Far apart?

Problems

In Exercises 7–14., give the domain and range of the multivariable function.

  1. 7.

    f(x,y)=x2+y2+2

  2. 8.

    f(x,y)=x+2y

  3. 9.

    f(x,y)=x-2y

  4. 10.

    f(x,y)=1x+2y

  5. 11.

    f(x,y)=1x2+y2+1

  6. 12.

    f(x,y)=sinxcosy

  7. 13.

    f(x,y)=9-x2-y2

  8. 14.

    f(x,y)=1x2+y2-9

In Exercises 15–22., describe in words and sketch the level curves for the function and given c values.

  1. 15.

    f(x,y)=3x-2y; c=-2,0,2

  2. 16.

    f(x,y)=x2-y2; c=-1,0,1

  3. 17.

    f(x,y)=x-y2; c=-2,0,2

  4. 18.

    f(x,y)=1-x2-y22y-2x; c=-2,0,2

  5. 19.

    f(x,y)=2x-2yx2+y2+1; c=-1,0,1

  6. 20.

    f(x,y)=y-x3-1x; c=-3,-1,0,1,3

  7. 21.

    f(x,y)=x2+4y2; c=1,2,3,4

  8. 22.

    f(x,y)=x2+4y2; c=1,2,3,4

In Exercises 23–26., give the domain and range of the functions of three variables.

  1. 23.

    f(x,y,z)=xx+2y-4z

  2. 24.

    f(x,y,z)=11-x2-y2-z2

  3. 25.

    f(x,y,z)=z-x2+y2

  4. 26.

    f(x,y,z)=z2sinxcosy

In Exercises 27–30., describe the level surfaces of the given functions of three variables.

  1. 27.

    f(x,y,z)=x2+y2+z2

  2. 28.

    f(x,y,z)=z-x2+y2

  3. 29.

    f(x,y,z)=x2+y2z

  4. 30.

    f(x,y,z)=zx-y

  1. 31.

    Compare the level curves of Exercises 21. and 22.. How are they similar, and how are they different? Each surface is a quadric surface; describe how the level curves are consistent with what we know about each surface.

Modern Campus CMS