Lesson 3.1 · Partial Derivatives
Functions of several variables
Most quantities you meet outside a textbook depend on more than one input. The temperature in a room depends on where you stand, the cost of a box depends on its length, width and height, and the monthly payment on a loan depends on the principal, the rate and the term. To do calculus with these quantities, you first need a clear picture of what a function of several variables is and how to see one.
Functions of two variables
A function of two variables takes an ordered pair and returns one number.
Definition
Function of two variables
A function of two variables assigns to each point in a set exactly one real number . The set is the domain of , and the set of all output values is the range.
You will often write and call and the independent variables and the dependent variable. Evaluating works just like one-variable functions: substitute and simplify. For ,
The same idea extends to three or more variables. A function takes a point in space and returns a number, such as the temperature at that point.
Finding the domain
When a function is given only by a formula, its domain is every point where the formula makes sense as a real number. The usual restrictions carry over from single-variable calculus:
- you cannot divide by zero,
- the expression under an even root must be ,
- the input of a logarithm must be .
The difference is that the domain is now a region in the plane, so describe it with an inequality in and and, when you can, a sketch.
Worked example: Domain of a square-root function
Find and describe the domain and range of .
The radicand must be nonnegative: , or . The domain is the closed disk of radius centered at the origin, including its boundary circle.
For the range, runs from (at the origin) to (on the circle), so runs from down to and its square root runs from down to . The range is .
Worked example: Domain of a logarithm
Find the domain of .
The logarithm needs , which is the same as . The domain is every point strictly below the line . The line itself is not included, because is undefined.
Graphs are surfaces
The graph of is the set of points in space with . Above each input point in the -plane you plot a height, so the graph is a surface.
Some graphs you already know from the quadric surfaces in the first unit. The graph of is the upper half of the sphere . The graph of is a paraboloid opening upward, and the graph of is a plane.
Surfaces are hard to draw by hand, and a single 3D picture hides as much as it shows. That is why the next tool is so useful.
Level curves and contour maps
A topographic map shows a mountain on flat paper by drawing curves of constant elevation. You can do the same for any function of two variables.
Definition
Level curve
The level curves of are the curves in the -plane, one for each constant in the range of . A picture of several level curves is a contour map.
Each level curve is what you get by slicing the surface with the horizontal plane and dropping the slice straight down into the -plane. If you draw level curves for equally spaced values of , then curves that crowd together mean the surface is steep there, and curves that spread apart mean it is nearly flat.
Worked example: Level curves of an elliptic paraboloid
Sketch level curves of for , and .
Set . For this is an ellipse. Dividing by gives , so the ellipse crosses the -axis at and the -axis at .
- : intercepts , .
- : intercepts , .
- : intercepts , .
The heights are not equally spaced, but notice that the ellipses spread apart at a steady rate while the heights grow faster and faster. That is the signature of a surface that gets steeper as you move away from the origin, which is exactly what an upward paraboloid does. For the level "curve" is the single point , the bottom of the bowl, and for there is no level curve at all.
Worked example: Level curves that are parabolas
Describe the level curves of .
Setting gives : a family of upward parabolas, each a vertical shift of .
Because the curves are identical parabolas shifted by equal amounts, the surface rises at a steady rate as you move straight up in the direction.
Tip
To find the level curve through a particular point, first evaluate at that point to get , then write .
Three variables: level surfaces
The graph of a function would live in four dimensions, so you cannot draw it. Instead, you study its level surfaces . For , the level surfaces are spheres centered at the origin with radius . If gives the temperature at each point, the level surfaces are surfaces of constant temperature.
Common mistake
Level curves live in the -plane, not on the surface. A level curve is an equation in two variables only. Writing into it, or treating it as the surface itself, is a common source of confusion. The value tells you which height the curve represents.
Practice
Let . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which set is the domain of ?
The range of is an interval . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The level curve of passes through the point . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The level curve of at height is the graph of . Enter .
Enter an expression, e.g. 3x^2 - 2x + 1
What are the level surfaces (with ) of ?
The level curve of that passes through is a line . Enter .
Enter an expression, e.g. 3x^2 - 2x + 1