Multivariable Calculus · Undergraduate
Maxima, Minima and Saddle Points
Quick answer
At a local maximum or minimum of a smooth function of two variables both partial derivatives are zero, so extremes lie among the critical points, where ∇f = 0. At a saddle point, though, the surface rises one way and falls another. The second derivative test sorts them with D = f_xx f_yy − f_xy²: D > 0 gives a minimum or maximum depending on the sign of f_xx, and D < 0 gives a saddle. On a closed, bounded region the absolute extremes also have to be sought on the boundary.
What you'll learn
- Find the critical points of a function of two variables
- Classify critical points with the second derivative test
- Recognize saddle points
- Find absolute extremes on a closed, bounded region
Where the surface levels out
At the top of a smooth hill, every slice through the summit also has a top there, so its slope is zero. In particular the slices in the and directions level out, and both partial derivatives vanish. Points where
or where a partial derivative fails to exist, are the critical points. Every local maximum or minimum of a smooth function is one.
The converse fails. For the origin is a critical point, yet the slice along the -axis curves up and the slice along the -axis curves down. The origin is a saddle point: a low point in one direction and a high point in another.
- slice y = 0: z = x²
- slice x = 0: z = −y²
The second derivative test
At a critical point , compute
- and : local minimum.
- and : local maximum.
- : saddle point.
- : the test gives no answer.
Why D decides
Near a critical point the gradient term vanishes, so the second-order behavior takes over. Writing , and at the point, a small step changes by about . Completing the square, as for a quadratic,
When , both coefficients share the sign of , so every step changes the same way. If every step goes up, a minimum; if every step goes down, a maximum. When the two coefficients have opposite signs, and some steps raise while others lower it. The sign of says whether the surface curves the same way in every direction; the sign of then says which way.
Worked examples
Common mistakes
Practice problems
-
Find and classify the critical point of .
Answer
A local minimum at , with value
Full solution
and vanish at . and .
-
Classify the critical point of .
Answer
A saddle at the origin
Full solution
and vanish only at . . Along the function is , and along it is .
-
Find and classify the critical point of .
Answer
A local maximum at , with value
Full solution
and vanish at . and .
-
Find and classify the critical points of .
Answer
A local minimum at with value , and a saddle at
Full solution
gives , and gives . , which is at and at .
-
Compute at the origin for . What kind of point is it?
Answer
; it is a minimum.
Full solution
All second partial derivatives vanish at the origin, so the test says nothing. But everywhere else, so the origin is the lowest point.
-
Show that has a minimum at the origin.
Answer
and .
Full solution
and both vanish only at , and the test gives a local minimum.
-
At a critical point, , and . Classify it.
Answer
A saddle point
Full solution
. Both and are negative, yet the mixed term is large enough to make some directions rise.
-
A box with a lid has volume . Show that the cube, by by , has the least surface area.
Answer
has its critical point at .
Full solution
With , . and give and . The area is .
-
Why must a continuous function on the square , have an absolute maximum?
Answer
The square is closed and bounded.
Full solution
The extreme value theorem guarantees both an absolute maximum and an absolute minimum for a continuous function on a closed, bounded region.
-
A student finds the critical points of on the rectangle of Example 4, gets only , and reports as both the maximum and the minimum. What went wrong?
Hint
Evaluate at the corner .
Answer
The boundary was skipped. The maximum is at and the minimum is .
Full solution
On a closed region, extremes often occur on the edge, where the gradient is not zero. Checking all four edges, as in Example 4, finds the true extremes.
Frequently asked questions
How do you find critical points of f(x, y)?
Solve f_x = 0 and f_y = 0 together. Points where a partial derivative does not exist are also critical points.
What is the second derivative test for two variables?
At a critical point, compute D = f_xx f_yy − (f_xy)². If D > 0 and f_xx > 0 it is a local minimum; if D > 0 and f_xx < 0, a local maximum; if D < 0, a saddle point; if D = 0 the test says nothing.
What is a saddle point?
A critical point where the function increases in some directions and decreases in others, like the middle of a horse's saddle or a mountain pass.
How do you find absolute extremes on a closed region?
Evaluate f at every critical point inside the region and find the extremes of f along the boundary. The largest and smallest of all those values are the absolute maximum and minimum.
What does D = 0 mean?
The test is inconclusive. x⁴ + y⁴ has D = 0 at the origin and a minimum there, while x³ + y³ has D = 0 and neither.