Local extrema of differentiable functions #
Main definitions #
In a real normed space E we define posTangentConeAt (s : Set E) (x : E).
This would be the same as tangentConeAt ℝ≥0 s x if we had a theory of normed semifields.
This set is used in the proof of Fermat's Theorem (see below), and can be used to formalize
Lagrange multipliers and/or
Karush–Kuhn–Tucker conditions.
Main statements #
For each theorem name listed below,
we also prove similar theorems for min, extr (if applicable),
and fderiv/deriv instead of HasFDerivAt/HasDerivAt.
IsLocalMaxOn.hasFDerivWithinAt_nonpos:f' y ≤ 0wheneverais a local maximum offons,fhas derivativef'atawithins, andybelongs to the positive tangent cone ofsata.IsLocalMaxOn.hasFDerivWithinAt_eq_zero: In the settings of the previous theorem, if bothyand-ybelong to the positive tangent cone, thenf' y = 0.IsLocalMax.hasFDerivAt_eq_zero: Fermat's Theorem, the derivative of a differentiable function at a local extremum point equals zero.
Implementation notes #
For each mathematical fact we prove several versions of its formalization:
- for maxima and minima;
- using
HasFDeriv*/HasDeriv*orfderiv*/deriv*.
For the fderiv*/deriv* versions we omit the differentiability condition whenever it is possible
due to the fact that fderiv and deriv are defined to be zero for non-differentiable functions.
References #
Tags #
local extremum, tangent cone, Fermat's Theorem
Positive tangent cone #
"Positive" tangent cone to s at x; the only difference from tangentConeAt
is that we require c n → ∞ instead of ‖c n‖ → ∞. One can think about posTangentConeAt
as tangentConeAt NNReal but we have no theory of normed semifields yet.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Fermat's Theorem (vector space) #
If f has a local max on s at a, f' is the derivative of f at a within s, and
y belongs to the positive tangent cone of s at a, then f' y ≤ 0.
If f has a local max on s at a and y belongs to the positive tangent cone
of s at a, then f' y ≤ 0.
If f has a local max on s at a, f' is a derivative of f at a within s, and
both y and -y belong to the positive tangent cone of s at a, then f' y ≤ 0.
If f has a local max on s at a and both y and -y belong to the positive tangent cone
of s at a, then f' y = 0.
If f has a local min on s at a, f' is the derivative of f at a within s, and
y belongs to the positive tangent cone of s at a, then 0 ≤ f' y.
If f has a local min on s at a and y belongs to the positive tangent cone
of s at a, then 0 ≤ f' y.
If f has a local max on s at a, f' is a derivative of f at a within s, and
both y and -y belong to the positive tangent cone of s at a, then f' y ≤ 0.
If f has a local min on s at a and both y and -y belong to the positive tangent cone
of s at a, then f' y = 0.
Fermat's Theorem: the derivative of a function at a local minimum equals zero.
Fermat's Theorem: the derivative of a function at a local minimum equals zero.
Fermat's Theorem: the derivative of a function at a local maximum equals zero.
Fermat's Theorem: the derivative of a function at a local maximum equals zero.
Fermat's Theorem: the derivative of a function at a local extremum equals zero.
Fermat's Theorem: the derivative of a function at a local extremum equals zero.
Fermat's Theorem #
Fermat's Theorem: the derivative of a function at a local minimum equals zero.
Fermat's Theorem: the derivative of a function at a local minimum equals zero.
Fermat's Theorem: the derivative of a function at a local maximum equals zero.
Fermat's Theorem: the derivative of a function at a local maximum equals zero.
Fermat's Theorem: the derivative of a function at a local extremum equals zero.
Fermat's Theorem: the derivative of a function at a local extremum equals zero.