Lesson 3.7 · Partial Derivatives
Maximum and minimum values
Optimization is one of the main reasons to learn calculus: the cheapest design, the strongest beam, the most profitable price. With two variables, the landscape is richer than in one variable. Besides peaks and valleys there are saddle points, which rise in one direction and fall in another. This lesson shows how to find candidate points with the gradient and how to sort them with a second derivative test.
Local extrema and critical points
Definition
Local maximum and minimum
has a local maximum at if for all in some disk around , and a local minimum if there. If the inequality holds for every in the domain, the extremum is absolute (or global).
At the top of a smooth hill, the ground is flat in every direction. In particular, the trace in the -direction has a horizontal tangent, so , and likewise . The tangent plane there is horizontal.
Critical points
If has a local extremum at and the first partials exist there, then and , that is, . A point where or where a partial derivative does not exist is called a critical point.
Every local extremum is a critical point, but not every critical point is an extremum. The classic counterexample is . At the origin both partials are , yet along the -axis the origin is a minimum of and along the -axis it is a maximum of . The surface looks like a saddle or a mountain pass. Such a point is a saddle point.
Level curves that cross, or hyperbolas that open in opposite directions around a point, are the contour-map signature of a saddle.
The second derivative test
To classify a critical point, look at the second partials. They combine into one number.
Second Derivative Test
Suppose the second partials of are continuous near and . Let
- If and , then is a local minimum.
- If and , then is a local maximum.
- If , then is a saddle point.
- If , the test is inconclusive.
Why does this work? Near the critical point, behaves like the quadratic in the displacements , . When this quadratic has the same sign in every direction (the sign of ); when it takes both signs. is the determinant of the matrix of second partials, often called the Hessian.
Worked example: Completing the picture
Find and classify the critical points of .
Set the partials to zero:
The first equation gives . Substituting into the second: , so and or . The critical points are and .
The second partials are , and , so .
- At : , a saddle point.
- At : and , a local minimum, with value .
Common mistake
When solving and , do not divide by an expression that could be zero. From , dividing by would lose the critical point . Factor instead, and find every solution of the system before you start classifying.
Absolute extrema on closed, bounded regions
In one variable, a continuous function on a closed interval attains an absolute maximum and minimum, either at a critical point or at an endpoint. The two-variable version replaces the interval with a region that is closed (contains its boundary) and bounded (fits inside some disk).
Closed Interval Method in two variables
If is continuous on a closed, bounded set , then attains an absolute maximum and minimum on . To find them:
- Find the values of at the critical points inside .
- Find the extreme values of on the boundary of .
- The largest value from steps 1 and 2 is the absolute maximum; the smallest is the absolute minimum.
The boundary step usually reduces to single-variable problems: parametrize each piece of the boundary and optimize.
Worked example: Absolute extrema on a disk
Find the absolute maximum and minimum of on the disk .
Interior. and vanish at , which is inside the disk. .
Boundary. On , replace with :
at , where (at the points ). At the endpoints, and .
Compare. The candidates are . The absolute maximum is at , and the absolute minimum is at .
Tip
In applied problems, you can often skip the second derivative test. If the physical situation guarantees a minimum exists (a box must have some least possible cost) and there is only one critical point in the sensible region, that point is the answer.
Practice
Find the critical point of .
Enter a point like (2, -3)
The function has a local minimum at its critical point. What is the minimum value?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Classify the critical point of .
Find all critical points of .
Separate answers with commas, e.g. 2, -5
Classify the critical points of .
The function has two critical points: one is a saddle point and the other is a local minimum. Find the local minimum value.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the absolute maximum value of on the closed square , .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the shortest distance from the origin to the plane by minimizing the squared distance with .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.