Extrema and Constrained Extrema
Extrema of Multivariable Functions
Let be defined on a neighborhood of . If for every point in that neighborhood,
then has a local maximum (or local minimum) at , and is called a maximum point (or minimum point). Maxima and minima together are called extrema.
Note: an extremum is a local concept—it compares with values near the point only, not global maxima/minima over the whole domain. A function may have several maxima and minima, and a local maximum need not exceed a local minimum.
Necessary Condition — Fermat’s Theorem
Fermat’s theorem (necessary condition): if has partial derivatives at and attains an extremum there, then
For an -variable function, all first partials vanish at an extremum:
Cautions:
- The necessary condition requires the partial derivatives to exist. If they do not, the function can still attain an extremum—e.g. has a minimum at where the partials do not exist.
- Vanishing partials are necessary but not sufficient: a point with zero gradient need not be an extremum (it may be a saddle point).
Critical Points and Stationary Points
A point where both first partial derivatives vanish, i.e.
is called a stationary point (or critical point). More generally, any point with is a stationary point.
Relation between extrema and stationary points:
- A differentiable extremum point is always a stationary point (necessary condition).
- A stationary point need not be an extremum (it may be a saddle point).
- An extremum point may fail to be stationary if partials do not exist.
So candidate points are: (1) stationary points (), and (2) points where partial derivatives do not exist. Then use a sufficient condition (second-derivative test) or the definition to decide.
Saddle Point
A stationary point that is neither a local maximum nor a local minimum is called a saddle point—the surface goes up along some directions and down along others, like a horse’s saddle.
Second-Derivative Test
The Hessian matrix of at a stationary point is
Second-derivative test: let be a stationary point, and set
- If and : local minimum.
- If and : local maximum.
- If : saddle point.
- If : the test is inconclusive.
Worked Examples: Unconstrained Extrema
Example 1: Second-Derivative Test
Find the extrema of .
Detailed steps:
- Stationary point: , , so .
- Second derivatives:
- , and : local minimum.
Answer: local (and global) minimum at .
Example 2: Saddle Point
Find the extrema of .
Detailed steps:
- Stationary point: , , so .
- : saddle point.
Answer: is a saddle point—not an extremum.
Constrained Extrema and Lagrange Multipliers
Finding the extremum of (the objective function) subject to the constraint is called a constrained extremum problem. In general:
Unconstrained vs constrained:
- Unconstrained: the variables range freely over the domain.
- Constrained: the variables must satisfy constraint equations; the extremum is confined to the constraint surface.
Two solution methods:
- Substitution: solve the constraint for some variables and substitute into the objective function to reduce to an unconstrained problem. Fails when the constraint is complicated.
- Lagrange multipliers: introduce multipliers to turn the problem into a system of equations. This is the general method.
Lagrange Multiplier Method (Single Constraint)
To find possible extrema of subject to , form the Lagrangian:
where is the Lagrange multiplier. Set all first partials to zero:
Solving this system gives the candidate constrained extremum points.
Intuition: at a constrained extremum, the gradient of the objective function is parallel to the gradient of the constraint——so the level curves of are tangent to the constraint curve.
Example 3: Lagrange Multipliers
Maximize subject to .
Detailed steps:
- Lagrangian:
- Set partials to zero:
- From the first two:
- Substitute:
- gives ; gives
- ,
Answer: maximum at ; minimum at .
Summary
Symbols Used in This Article
| Symbol | Type | Reading/Explanation | Meaning in This Article |
|---|---|---|---|
| partial derivatives | f sub x, f sub y | First partial derivatives | |
| numbers | A, B, C | at a stationary point | |
| Greek letter | Delta | The discriminant | |
| Greek letter | Lambda | The Lagrange multiplier | |
| function | L | The Lagrangian function | |
| Greek letter | phi | The constraint function | |
| vector | nabla f | The gradient of |
English–Chinese Glossary
| English term | Chinese term | Phonetic | Explanation |
|---|---|---|---|
| extremum | 极值 | /ɪkˈstriːməm/ | A local maximum or minimum |
| critical point | 临界点 | /ˈkrɪtɪkəl pɔɪnt/ | A point where the gradient vanishes or does not exist |
| stationary point | 驻点 | /ˈsteɪʃənri pɔɪnt/ | A point where the gradient is zero |
| saddle point | 鞍点 | /ˈsædl pɔɪnt/ | A stationary point that is not an extremum |
| second-derivative test | 二阶导数判别法 | /ˈsekənd dɪˈrɪvətɪv test/ | Using the Hessian to classify stationary points |
| constrained extremum | 条件极值 | /kənˈstreɪnd ɪkˈstriːməm/ | An extremum subject to constraints |
| Lagrange multiplier | 拉格朗日乘数 | /ləˈɡrɑːndʒ ˈmʌltɪplaɪə/ | The multiplier in the Lagrangian |
| Lagrangian | 拉格朗日函数 | /ləˈɡrɑːndʒiən/ | |
| Hessian matrix | 黑塞矩阵 | /ˈhɛsiən ˈmeɪtrɪks/ | The matrix of second partial derivatives |
