The questions are different
A local minimum compares to nearby values in the domain; an absolute minimum compares it to every value in the domain. Replace by away from for a strict minimum. Maxima are defined by reversing the inequalities. Neither local extremum need be absolute, and an absolute extremum may fail to exist. On a nonempty closed bounded set, continuity guarantees both absolute extrema, but locating them still requires checking all relevant candidates.
Theorem
First-order necessary condition
If is differentiable on an open neighbourhood of an interior point and has a local extremum at , then .
Proof
Restrict to coordinate lines
For every coordinate direction , the one-variable function has an interior local extremum at . Its derivative there is zero. Hence all entries of vanish.
This is necessary, not sufficient: has zero gradient at the origin but takes both positive and negative values arbitrarily close. If differentiability fails, a local extremum can occur where the gradient does not exist, as for at zero. Boundary points need not satisfy the interior condition.
The second derivative test
Theorem
Hessian classification
Let be near a stationary point . If for every nonzero , then is a strict local minimum. If the quadratic form is negative for every nonzero , it is a strict local maximum. If it takes both signs, is a saddle point, hence neither local minimum nor maximum. Semidefinite or zero forms make this test inconclusive.
Proof
Why the signs persist
Taylor's theorem gives . If the Hessian is positive definite, its continuous quadratic form has a positive minimum on the compact unit sphere. Thus the quadratic term is at least , which dominates the little- remainder for small nonzero . The negative case is analogous. For an indefinite form, choose one fixed direction of each sign; the quadratic term dominates along each sufficiently short ray.
For a symmetric Hessian at a stationary point, set . If and there is a strict minimum; if and a strict maximum; if a saddle. If the test is inconclusive. These are facts about a stationary point, not a license to classify an arbitrary point.
Worked example
Classifying two stationary points
Let . The equations and give and . The Hessian is . At it is positive definite, so this point is a strict local minimum with value . At it is indefinite, so this is a saddle with value . Neither statement alone decides global extrema; in fact the function is unbounded above and below as .
Worked example
An inconclusive Hessian still permits a proof
At the origin, and both have zero Hessian. Nevertheless away from zero, so it has a strict minimum. The function has positive values along the -axis and negative values along the -axis, so the origin is a saddle. Higher-order terms resolve what the second-order test cannot.
Absolute extrema on a region
- Establish existence where possible: continuity on a nonempty compact region guarantees extrema.
- Find interior stationary points and nondifferentiable points in the region.
- Optimize on every boundary piece, including endpoints, corners and singularities. Parametrize the boundary or use the multiplier method when its hypotheses hold.
- Evaluate at every candidate and compare the actual values. A boundary test can be necessary even when an interior point is a strict local extremum.
Worked example
Interior and boundary compete
On the closed disk , take . Continuity and compactness guarantee extrema. Interior stationarity requires , giving , which is on the boundary, not in the interior. On the boundary , , so its minimum is at and maximum is at . Both are absolute by the preceding existence and candidate analysis.
Method comparison
Use first derivatives to generate candidates, not to certify their type. Use a definite Hessian to obtain a strict local conclusion efficiently; use signs along curves or higher-order terms when the Hessian is inconclusive. For absolute extrema, local classification is optional but a complete boundary and value comparison is essential. On an open or unbounded domain, examine limiting behavior and possible nonattainment; compactness cannot be assumed.
Practice
- Classify every stationary point of .
- Find the absolute extrema of on .
- Determine the nature of the origin for and ; explain why the Hessian test alone does not answer.
- Give a continuous function on a noncompact domain with no absolute maximum and explain why the compactness theorem does not apply.
Full solutions
- The equations , yield . The Hessian has and , so this is a strict local minimum. Completing the square gives , proving it is the unique absolute minimum, value .
- Since and , . The minimum is at and the maximum is at .
- Both Hessians vanish at zero, so the test is inconclusive. For the first function the value is positive off the origin, giving a strict minimum. For the second, gives and gives for nonzero , giving a saddle.
- on is continuous but unbounded above; is not compact. Alternatively, on is bounded but does not attain its supremum.
Synthesis
Stationarity is the bridge from local optimality to equations. The Hessian examines second-order behavior but can be inconclusive. A global problem additionally needs existence and a complete accounting of boundary and exceptional points.