Documentation

BV.Mathlib.Analysis.Calculus.Deriv.Slope

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) :