Motivating Questions
- How can we find the points at which has a local maximum or minimum?
- How can we determine whether critical points of are local maxima or minima?
- How can we find the absolute maximum and minimum of on a closed and bounded domain?
We learn in single-variable calculus that the derivative is a useful tool for finding the local maxima and minima of functions, and that these ideas may often be employed in applied settings. In particular, if a function such as the one shown in Figure is everywhere differentiable, we know that the tangent line is horizontal at any point where has a local maximum or minimum. This, of course, means that the derivative is zero at any such point. Hence, one way that we seek extreme values of a given function is to first find where the derivative of the function is zero.

In multivariable calculus, we are often similarly interested in finding the greatest and/or least value(s) that a function may achieve. Moreover, there are many applied settings in which a quantity of interest depends on several different variables. In the following preview activity, we begin to see how some key ideas in multivariable calculus can help us answer such questions by thinking about the geometry of the surface generated by a function of two variables.
Preview Activity
Let be a differentiable function, and suppose that at the point achieves a local maximum. That is, the value of is greater than the value of for all nearby You might find it helpful to sketch a rough picture of a possible function that has this property.
- If we consider the trace given by holding constant, then the single-variable function defined by must have a local maximum at What does this say about the value of the partial derivative
- In the same way, the trace given by holding constant has a local maximum at What does this say about the value of the partial derivative
- What may we now conclude about the gradient at the local maximum? How is this consistent with the statement “ increases most rapidly in the direction ”
- How will the tangent plane to the surface appear at the point
- By first computing the partial derivatives, find any points at which may have a local maximum.
Extrema and Critical Points
One of the important applications of single-variable calculus is the use of derivatives to identify local extremes of functions (that is, local maxima and local minima). Using the tools we have developed so far, we can naturally extend the concept of local maxima and minima to several-variable functions.
Definition
Let be a function of two variables and
- The function has a local maximum at a point provided that for all points near In this situation we say that is a local maximum value.
- The function has a local minimum at a point provided that for all points near In this situation we say that is a local minimum value.
- An absolute maximum point is a point for which for all points in the domain of The value of at an absolute maximum point is the maximum value of
- An absolute minimum point is a point such that for all points in the domain of The value of at an absolute minimum point is the minimum value of
We use the term extremum point to refer to any point at which has a local maximum or minimum. In addition, the function value at an extremum is called an extremal value. Figure illustrates the graphs of two functions that have an absolute maximum and minimum, respectively, at the origin

In single-variable calculus, we saw that the extrema of a continuous function always occur at critical points, values of where fails to be differentiable or where Said differently, critical points provide the locations where extrema of a function may appear. Our work in Preview Activity suggests that something similar happens with two-variable functions.
Suppose that a continuous function has an extremum at In this case, the trace has an extremum at which means that is a critical value of Therefore, either does not exist or Similarly, either does not exist or This implies that the extrema of a two-variable function occur at points that satisfy the following definition.
Definition
A critical point of a function is a point in the domain of at which and or such that one of or fails to exist.
We can therefore find critical points of a function by computing partial derivatives and identifying any values of for which one of the partials doesn't exist or for which both partial derivatives are simultaneously zero. For the latter, note that we have to solve the system of equations
Activity
Find the critical points of each of the following functions. Then, using appropriate technology, plot the graphs of the surfaces near each critical point and compare the graph to your work.
Classifying Critical Points: The Second Derivative Test
While the extrema of a continuous function always occur at critical points, it is important to note that not every critical point leads to an extremum. Recall, for instance, from single variable calculus. We know that is a critical point since but is neither a local maximum nor a local minimum of
A similar situation may arise in a multivariable setting. Consider the function defined by whose graph and contour plot are shown in Figure . Because we see that the origin is a critical point. However, this critical point is neither a local maximum or minimum; the origin is a local minimum on the trace defined by while the origin is a local maximum on the trace defined by We call such a critical point a saddle point due to the shape of the graph near the critical point.

As in single-variable calculus, we would like to have some sort of test to help us identify whether a critical point is a local maximum, local maximum, or neither.
Activity
Recall that the Second Derivative Test for single-variable functions states that if is a critical point of a function so that and if exists, then
- if is a local maximum,
- if is a local minimum, and
- if this test yields no information.
Our goal in this activity is to understand a similar test for classifying extreme values of functions of two variables. Consider the following three functions:
You can verify that each function has a critical point at the origin You should check this.

- The graphs of these three functions are shown in Figure , with at left, in the middle, and at right. Use the graphs to decide if a function has a local maximum, local minimum, saddle point, or none of the above at the origin.
- There is no single second derivative of a function of two variables, so we consider a quantity that combines the second order partial derivatives. Let Calculate at the origin for each of the functions and What difference do you notice between the values of when a function has a maximum or minimum value at the origin versus when a function has a saddle point at the origin?
- Now consider the cases where It is in these cases that a function has a local maximum or minimum at a point. What is necessary in these cases is to find a condition that will distinguish between a maximum and a minimum. In the cases where at the origin, evaluate What value does have when has a local maximum value at the origin? When has a local minimum value at the origin? Explain why. (Hint: This should look very similar to the Second Derivative Test for functions of a single variable.) What would happen if we considered the values of instead?
Activity provides the basic ideas for the Second Derivative Test for functions of two variables.
The Second Derivative Test
Suppose is a critical point of the function for which and Let be the quantity defined by
- If and then has a local maximum at
- If and then has a local minimum at
- If then has a saddle point at
- If then this test yields no information about what happens at
The quantity is called the discriminant of the function at
To properly understand the origin of the Second Derivative Test, we could introduce a “second-order directional derivative.” If this second-order directional derivative were negative in every direction, for instance, we could guarantee that the critical point is a local maximum. A complete justification of the Second Derivative Test requires key ideas from linear algebra that are beyond the scope of this course, so instead of presenting a detailed explanation, we will accept this test as stated. In Activity , we apply the test to more complicated examples.
Activity
Find the critical points of the following functions and use the Second Derivative Test to classify the critical points.
As we learned in single-variable calculus, finding extremal values of functions can be particularly useful in applied settings. For instance, we can often use calculus to determine the least expensive way to construct something or to find the most efficient route between two locations. The same possibility holds in settings with two or more variables.
Activity
While the quantity of a product demanded by consumers is often a function of the price of the product, the demand for a product may also depend on the price of other products. For instance, the demand for blue jeans at Old Navy may be affected not only by the price of the jeans themselves, but also by the price of khakis.
Suppose we have two goods whose respective prices are and The demand for these goods, and depend on the prices as
\begin{align} q_1 & = 150 - 2p_1 - p_2 \\[4pt] q_2 & = 200 - p_1 - 3p_2. } \end{align}The seller would like to set the prices and in order to maximize revenue. We will assume that the seller meets the full demand for each product. Thus, if we let be the revenue obtained by selling items of the first good at price per item and items of the second good at price per item, we have
We can then write the revenue as a function of just the two variables and by using Equations \ref{eq_good1} and \ref{eq_good2}, giving us
A graph of as a function of and is shown in Figure .

- Find all critical points of the revenue function, (Hint: You should obtain a system of two equations in two unknowns which can be solved by elimination or substitution.)
- Apply the Second Derivative Test to determine the type of any critical point(s).
- Where should the seller set the prices and to maximize the revenue?
Optimization on a Restricted Domain
The Second Derivative Test helps us classify critical points of a function, but it does not tell us if the function actually has an absolute maximum or minimum at each such point. For single-variable functions, the Extreme Value Theorem told us that a continuous function on a closed interval always has both an absolute maximum and minimum on that interval, and that these absolute extremes must occur at either an endpoint or at a critical point. Thus, to find the absolute maximum and minimum, we determine the critical points in the interval and then evaluate the function at these critical points and at the endpoints of the interval. A similar approach works for functions of two variables.
For functions of two variables, closed and bounded regions play the role that closed intervals did for functions of a single variable. A closed region is a region that contains its boundary (the unit disk is closed, while its interior is not, for example), while a bounded region is one that does not stretch to infinity in any direction. Just as for functions of a single variable, continuous functions of several variables that are defined on closed, bounded regions must have absolute maxima and minima in those regions.
The Extreme Value Theorem
Let be a continuous function on a closed and bounded region Then has an absolute maximum and an absolute minimum in
The absolute extremes must occur at either a critical point in the interior of or at a boundary point of We therefore must test both possibilities, as we demonstrate in the following example.
Example
Suppose the temperature at each point on the circular plate is given by
The domain is a closed and bounded region, as shown on the left of Figure , so the Extreme Value Theorem assures us that has an absolute maximum and minimum on the plate. The graph of over its domain is shown in Figure . We will find the hottest and coldest points on the plate.

If the absolute maximum or minimum occurs inside the disk, it will be at a critical point so we begin by looking for critical points inside the disk. To do this, notice that critical points are given by the conditions and This means that there is one critical point of the function at the point which lies inside the disk.
We now find the hottest and coldest points on the boundary of the disk, which is the circle of radius 1. As we have seen, the points on the unit circle can be parametrized as
where The temperature at a point on the circle is then described by
To find the hottest and coldest points on the boundary, we look for the critical points of this single-variable function on the interval We have
This shows that we have critical points when or This occurs when and Since we have and the corresponding points are
| when |
| when |
| when |
| when |
These are the critical points of on the boundary and so this collection of points includes the hottest and coldest points on the boundary.
We now have a list of candidates for the hottest and coldest points: the critical point in the interior of the disk and the critical points on the boundary. We find the hottest and coldest points by evaluating the temperature at each of these points, and find that
So the maximum value of on the disk is which occurs at the two points on the boundary, and the minimum value of on the disk is which occurs at the critical point in the interior of
From this example, we see that we use the following procedure for determining the absolute maximum and absolute minimum of a function on a closed and bounded domain.
- Find all critical points of the function in the interior of the domain.
- Find all the critical points of the function on the boundary of the domain. Working on the boundary of the domain reduces this part of the problem to one or more single variable optimization problems. Note that there may be endpoints on portions of the boundary that need to be considered.
- Evaluate the function at each of the points found in Steps 1 and 2.
- The maximum value of the function is the largest value obtained in Step 3, and the minimum value of the function is the smallest value obtained in Step 3.
Activity
Let with triangular domain whose vertices are at and The domain and a graph of on the domain appear in Figure .

- Find all of the critical points of in
- Parameterize the horizontal leg of the triangular domain, and find the critical points of on that leg. (Hint: You may need to consider endpoints.)
- Parameterize the vertical leg of the triangular domain, and find the critical points of on that leg. (Hint: You may need to consider endpoints.)
- Parameterize the hypotenuse of the triangular domain, and find the critical points of on the hypotenuse. (Hint: You may need to consider endpoints.)
- Find the absolute maximum and absolute minimum values of on
Summary
- To find the extrema of a function we first find the critical points, which are points where one of the partials of fails to exist, or where and
- The Second Derivative Test helps determine whether a critical point is a local maximum, local minimum, or saddle point.
- If is defined on a closed and bounded domain, we find the absolute maxima and minima by finding the critical points in the interior of the domain, finding the critical points on the boundary, and testing the value of at both sets of critical points.