Free Extrema in Several Variables
In questa pagina 4
This note builds on Differentiability and the Gradientf is differentiable at x0 if f(x) = f(x0) + grad f(x0)·(x - x0) + o(‖x - x0‖), i.e. near x0 the graph is indistinguishable from the tangent plane z = f(x0) + grad f(x0)·(x - x0). Differentiable implies continuous, with partial derivatives and D_v f = grad f · v; continuous partial derivatives imply differentiable. The gradient gives the direction of steepest increase (slope ‖grad f‖) and is orthogonal to level curves.Differentiability and the Gradient → and Hessian Matrix and Taylor FormulaThe second derivatives form the Hessian matrix H_f, symmetric by Schwarz's theorem (continuous mixed derivatives). Second-order Taylor: f(x0 + h) = f(x0) + grad f(x0)·h + (1/2) h^T H_f(x0) h + o(‖h‖^2). A symmetric matrix is positive or negative definite, semidefinite or indefinite according to the sign of the quadratic form h^T A h, recognized via eigenvalues or leading principal minors (in 2x2: determinant and first entry).Hessian Matrix and Taylor Formula →.
Critical points
Let be a function defined on an open set . A point is called:
Definition. A relative maximum (minimum) point if there is a neighbourhood of such that () for every .
Example. has a relative (also absolute) maximum at : .
If is differentiable at and is a relative extremum interior to , then Fermat's theorem must hold:
Theorem (Fermat). If is a relative extremum point for and is differentiable at , then .
Example. has its minimum at and indeed there.
Why. Fix a direction: the one-variable function has a relative extremum at , which is interior to its domain (because is interior). By Fermat's theorem in one variable , and . This holds for every , so the whole gradient vanishes.
The points where the gradient vanishes are called critical points (or stationary points) of the function. As in one variable, the condition is only necessary: has zero gradient at , but the origin is neither a maximum nor a minimum.
Definition. A critical point is a saddle point if in every neighbourhood of it there are points where and points where .
Example. at : and in every neighbourhood, so is a saddle point.
Second-order conditions
To classify the critical points, suppose . The nature of the point depends on the quadratic form associated with the Hessian matrixThe second derivatives form the Hessian matrix H_f, symmetric by Schwarz's theorem (continuous mixed derivatives). Second-order Taylor: f(x0 + h) = f(x0) + grad f(x0)·h + (1/2) h^T H_f(x0) h + o(‖h‖^2). A symmetric matrix is positive or negative definite, semidefinite or indefinite according to the sign of the quadratic form h^T A h, recognized via eigenvalues or leading principal minors (in 2x2: determinant and first entry).Hessian Matrix and Taylor Formula → , defined by .
Theorem. Let be a critical point of .
- If is positive definite, then is a local minimum.
- If is negative definite, then is a local maximum.
- If is indefinite, then is a saddle point.
- If is semidefinite, the test is inconclusive.
Example. has critical points and . At : is positive definite, local minimum. At : is indefinite, saddle.
Idea of the proof. At the critical point the Taylor formula gives If the quadratic form is positive definite, it is at least for some (the smallest eigenvalue), and for small it dominates the error : the difference is positive, so is a minimum. If it is indefinite, along one direction the difference is positive and along another negative: saddle. If it is semidefinite, in the directions where the form vanishes the error decides, i.e. the higher-order derivatives: that is why the test is silent.
For we recover the second-derivative test: is positive definite if .
Sylvester's criterion for
For , let . Define .
- If : the matrix is definite (positive if , negative if ).
- If : the matrix is indefinite (saddle point).
- If : the test fails (a local study is necessary).
In the case it suffices to look at : for we must have , so and have the same sign.
The case : three functions with the same zero Hessian at .
- : away from the origin, absolute minimum.
- : maximum.
- : on the axis it is positive, on the axis negative, saddle.
The Hessian cannot tell them apart: one needs the study of the sign of near the point, for instance with restrictions to lines or curves.
Worked example
Let , defined and on all of .
- Gradient: , .
- Critical points. if or (we factored to split the system into two cases).
- : , so or : points and .
- : , so : points and .
- Hessian: , , :
- Classification:
- : , and : local maximum, .
- : , and : local minimum, .
- : , : saddles.
Neither extremum is absolute: along the axis, goes to as and to as .
Grafico interattivo: Level curves of f = 3x²y + 4y³ − 3x² − 12y² + 1: local maximum at (0, 0), local minimum at (0, 2), saddles at (±2, 1) where the level −7 crosses itself
Common mistakes
- Failed test: when , do not conclude that the point is a saddle or an extremum. One must study the variation of directly (e.g. restrictions to lines or ).
- Losing solutions of the system : do not divide by a variable that may be zero ( splits into or ).
- Forgetting the points of non-differentiability: Fermat holds where is differentiable. has a minimum at the origin, where the gradient does not exist.
- Confusing local and absolute: a relative maximum may not be the maximum of the function.
Versione ripasso
Relative maxima and minima. is a relative maximum (minimum) if there is a neighbourhood with () for every .
Fermat's theorem. If is an interior relative extremum and is differentiable at , then . Proof: each has an extremum at , so .
- The condition is only necessary: has zero gradient at , but it is a saddle.
- Saddle: in every neighbourhood there are points with and points with .
Hessian test. If and is critical, with :
- positive definite: local minimum.
- negative definite: local maximum.
- indefinite: saddle.
- semidefinite: the test does not decide.
Idea: . With positive definite the quadratic term dominates; with semidefinite the higher-order derivatives decide.
Case . With :
- and : minimum;
- and : maximum;
- : saddle;
- : study the sign of . Examples with zero Hessian at : minimum, maximum, saddle.
Worked example. .
- , . The system splits into or .
- Critical points: , , .
- .
- : , , maximum with . : , , minimum with . : , saddles with .
Along the axis, goes to : the two extrema are not absolute.
Typical mistakes.
- Concluding with instead of studying directly.
- Losing solutions of the system by dividing by a variable that may be zero.
- Applying Fermat at points of non-differentiability: has a minimum at the origin, where the gradient does not exist.
- Confusing local and absolute extrema.