TOPIC 2 / 3
Hessians & Multivariable Extrema
For a long equation, swipe sideways inside its formula box to see every term.
Meaning & notation
At a smooth interior unconstrained optimum, every first-order directional change vanishes. The Hessian distinguishes second-order shapes. Constraints permit only feasible directions, so a constrained optimum can have a nonzero ordinary gradient.
- Stationary point and saddle
- A stationary point has zero gradient. A saddle is a stationary point with arbitrarily nearby larger and smaller function values, preventing either type of local extremum.
- Hessian
- The matrix of second partial derivatives. For a twice continuously differentiable function it is symmetric and describes the quadratic part of local change.
- Lagrange multiplier
- A scalar relating objective and constraint gradients at a regular constrained stationary point; the constraint must also hold.
Conditions before calculation
- The Hessian test requires continuous second partials near an interior stationary point. A zero determinant makes it inconclusive.
- A continuous function on a nonempty compact feasible set attains its absolute extrema; interior tests alone do not check the boundary.
- For one smooth equality constraint, the standard Lagrange necessary condition requires a nonzero constraint gradient. Inspect singular constraint points separately.
Why the method works
1. Find first-order candidates
Every directional rate must vanish at an interior differentiable extremum. Solve all first-partial equations simultaneously.
2. Classify the quadratic shape
For two variables, at a stationary point, a positive Hessian determinant gives a definite quadratic form, classified by the first diagonal entry. A negative determinant gives opposite directional signs and a saddle.
3. Restrict to feasible motion
At a regular constrained extremum, both gradients are normal to the constraint tangent and hence parallel. Solve this condition together with the constraint.
Worked examples
EXAMPLE 1
Locate the quadratic's stationary point, classify it, and determine whether the result is global.
Set both coordinate derivatives to zero and solve the linear system.
The Hessian has positive determinant and positive first diagonal entry, giving a strict local minimum.
Complete squares to compare with every point in the plane. Both squared terms are nonnegative and vanish together only at the candidate.
Conclusion: The point with coordinates 2 and 0 is the unique global minimum; there is no global maximum.
EXAMPLE 2
Find the largest and smallest coordinate products on the circle.
The circle is compact and its constraint gradient never vanishes on it, so extrema exist and satisfy the regular multiplier equations.
Multiply the first component equation by y and the second by x. This avoids dividing by a possibly zero coordinate and forces equal squares.
Compare all four feasible candidates. Equal signs yield the largest product; opposite signs yield the smallest.
Conclusion: The absolute maximum is 1 and the absolute minimum is negative 1, each attained at two points.
Pitfalls & counterexamples
Tempting claim: Zero gradient guarantees a local minimum.
Correction: It eliminates first-order change but leaves higher-order shape unresolved.
Test the claim: The difference of the squared coordinates has zero gradient at the origin, yet increases along the horizontal axis and decreases along the vertical axis.
Check your understanding
If the Hessian determinant is zero at a stationary point, does that prove a saddle?
Write a reason before opening the explanation. This reflection is not graded or saved.
Compare your reasoning
No.
The test is inconclusive: the sum of fourth powers has a strict minimum at the origin, while the difference of fourth powers has a saddle there.
Connect this idea
The Hessian extends the one-variable second-derivative test. Constraint gradients explain why optimization algorithms project proposed changes onto feasible directions.
Reference reading
Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.