Derivative as the limit of the slope #
In this file we relate the derivative of a function with its definition from a standard
undergraduate course as the limit of the slope (f y - f x) / (y - x) as y tends to π[β ] x.
Since we are talking about functions taking values in a normed space instead of the base field, we
use slope f x y = (y - x)β»ΒΉ β’ (f y - f x) instead of division.
We also prove some estimates on the upper/lower limits of the slope in terms of the derivative.
For a more detailed overview of one-dimensional derivatives in mathlib, see the module docstring of
analysis/calculus/deriv/basic.
Keywords #
derivative, slope
If the domain has dimension one, then FrΓ©chet derivative is equivalent to the classical
definition with a limit. In this version we have to take the limit along the subset {x}αΆ,
because for y=x the slope equals zero due to the convention 0β»ΒΉ=0.
Alias of the forward direction of hasDerivAt_iff_tendsto_slope_zero.
Given a set t such that s β© t is dense in s, then the range of derivWithin f s is
contained in the closure of the submodule spanned by the image of t.
Given a dense set t, then the range of deriv f is contained in the closure of the submodule
spanned by the image of t.
If a monotone function has a derivative within a set at a non-isolated point, then this derivative is nonnegative.
The derivative within a set of a monotone function is nonnegative.
If a monotone function has a derivative, then this derivative is nonnegative.
The derivative of a monotone function is nonnegative.
If an antitone function has a derivative within a set at a non-isolated point, then this derivative is nonpositive.
The derivative within a set of an antitone function is nonpositive.
If an antitone function has a derivative, then this derivative is nonpositive.
The derivative of an antitone function is nonpositive.
Upper estimates on liminf and limsup #
If f has derivative f' within s at x, then for any r > βf'β the ratio
βf z - f xβ / βz - xβ is less than r in some neighborhood of x within s.
In other words, the limit superior of this ratio as z tends to x along s
is less than or equal to βf'β.
If f has derivative f' within s at x, then for any r > βf'β the ratio
(βf zβ - βf xβ) / βz - xβ is less than r in some neighborhood of x within s.
In other words, the limit superior of this ratio as z tends to x along s
is less than or equal to βf'β.
This lemma is a weaker version of HasDerivWithinAt.limsup_norm_slope_le
where βf zβ - βf xβ is replaced by βf z - f xβ.
If f has derivative f' within (x, +β) at x, then for any r > βf'β the ratio
βf z - f xβ / βz - xβ is frequently less than r as z β x+0.
In other words, the limit inferior of this ratio as z tends to x+0
is less than or equal to βf'β. See also HasDerivWithinAt.limsup_norm_slope_le
for a stronger version using limit superior and any set s.
If f has derivative f' within (x, +β) at x, then for any r > βf'β the ratio
(βf zβ - βf xβ) / (z - x) is frequently less than r as z β x+0.
In other words, the limit inferior of this ratio as z tends to x+0
is less than or equal to βf'β.
See also
HasDerivWithinAt.limsup_norm_slope_lefor a stronger version using limit superior and any sets;HasDerivWithinAt.liminf_right_norm_slope_lefor a stronger version usingβf z - f xpβinstead ofβf zβ - βf xβ.