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
Mathlib/Analysis/Calculus/Deriv/Basic.lean.
Keywords #
derivative, slope
theorem
HasDerivAt.nonneg_of_monotoneOn
{๐ : Type u}
[NontriviallyNormedField ๐]
{x : ๐}
[LinearOrder ๐]
[IsStrictOrderedRing ๐]
[OrderTopology ๐]
{g : ๐ โ ๐}
{g' : ๐}
(hd : HasDerivAt g g' x)
{s : Set ๐}
(hg : MonotoneOn g s)
(hs : AccPt x (Filter.principal s))
:
theorem
HasDerivAt.nonneg_of_monotoneOn_of_mem_nhds
{๐ : Type u}
[NontriviallyNormedField ๐]
{x : ๐}
[LinearOrder ๐]
[IsStrictOrderedRing ๐]
[OrderTopology ๐]
{g : ๐ โ ๐}
{g' : ๐}
(hd : HasDerivAt g g' x)
{s : Set ๐}
(hg : MonotoneOn g s)
(hs : s โ nhds x)
: