Functions of several variables
A function of several variables takes more than one input. In this chapter we mainly study scalar-valued functions of two variables,
where the input is an ordered pair and the output is a single real number .
This is different from a single-variable function , which has one input and one output, and also different from a vector-valued function Vector-Valued Functions, which takes one input and returns a vector.
| Type | Input | Output | Typical graph |
|---|---|---|---|
| Single-variable function | one real number | one real number | curve in the plane |
| Vector-valued function | one real number | vector | curve in space |
| Function of two variables | two real numbers | one real number | surface in space |
The big geometric change is this: the graph of lives in , but the graph of lives in .
Domain, range, and graph
Let be a function of two variables.
The domain of is the set of all ordered pairs for which the formula makes sense.
The range of is the set of all values that the function can produce.
The graph of is the set of all points in space
For a two-variable function, the graph is a surface.
Examples of domain restrictions
- For , the expression under the square root must be nonnegative, so the domain is .
- For , the denominator cannot be zero, so the domain excludes the circle .
- For , we need .
Standard graphs of functions of two variables
The surfaces below are all standard examples from Cylinders and Quadratic Surfaces, except for the plane, which is also closely related to Lines and Planes.
1. Cone:
This is the upper nappe of a double cone. Each horizontal slice is a circle of radius .
Cone: z = sqrt(x² + y²)
x²/a² + y²/b² = z²/c² (double cone)
2. Paraboloid:
This is an elliptic paraboloid. Horizontal slices are circles, and the surface opens upward.
Paraboloid: z = x² + y²
z = x²/a² + y²/b²
3. Plane:
A plane is the graph of a linear function of two variables. Written in standard form, this becomes an equation of the type discussed in Lines and Planes.
Plane: z = 1 - x + 2y
4. Upper hemisphere:
This is the upper half of the sphere of radius centered at the origin.
Upper hemisphere: z = sqrt(9 - x² - y²)
Level sets
Given a function and a constant , the level set (or contour line) is the set of points where the function has constant value:
So a level set is the two-variable analogue of a contour map on a topographic chart: instead of showing height directly, it shows the points with the same height.
For example, if , then each level set is a circle centered at the origin. The interactive graph below shows a family of five nearby level curves together with their projections onto the -plane.
Level set of f(x, y) = x² + y²
The blue surface is z = x² + y². The colored circles are a family of five level curves, and the matching circles below are their projections onto the xy-plane.
As changes, the level sets of become circles of different radii. Larger values of give larger circles.
Exercises
Find the domain and range of
Answer: The domain is the disk . The output is always nonnegative, and the largest value occurs at , so the range is
Describe the graph of
Answer: This is an upward-opening elliptic paraboloid shifted down by unit. Its vertex is at .
Let
Find the level sets for , , and .
Answer:
- : .
- : , a circle of radius .
- : , a circle of radius .
Explain why and behave differently as graphs.
Answer: A single-variable function gives a curve in the plane because one input determines one output. A two-variable function gives a surface in space because two inputs determine one output. The extra input changes the geometry from a curve to a surface.