Rolle's Theorem #
In this file we prove Rolle's Theorem. The theorem says that for a function f : ℝ → ℝ
such that
is differentiable on an open interval , ; is continuous on the corresponding closed interval ; ,
there exists a point
We prove four versions of this theorem.
exists_hasDerivAt_eq_zero
is closest to the statement given above. It assumes that at every point function has derivative , then concludes that for some .exists_deriv_eq_zero
deals withderiv f
instead of an arbitrary functionf'
and a predicateHasDerivAt
; since we use zero as the "junk" value forderiv f c
, this version does not assume thatf
is differentiable on the open interval.exists_hasDerivAt_eq_zero'
is similar toexists_hasDerivAt_eq_zero
but instead of assuming continuity on the closed interval it assumes that tends to the same limit as tends to from the right and as tends to from the left.exists_deriv_eq_zero'
relates toexists_deriv_eq_zero
asexists_hasDerivAt_eq_zero'
relates to ``exists_hasDerivAt_eq_zero`.
References #
Tags #
local extremum, Rolle's Theorem
theorem
exists_hasDerivAt_eq_zero
{f f' : ℝ → ℝ}
{a b : ℝ}
(hab : a < b)
(hfc : ContinuousOn f (Set.Icc a b))
(hfI : f a = f b)
(hff' : ∀ x ∈ Set.Ioo a b, HasDerivAt f (f' x) x)
:
Rolle's Theorem HasDerivAt
version
theorem
exists_hasDerivAt_eq_zero'
{f f' : ℝ → ℝ}
{a b l : ℝ}
(hab : a < b)
(hfa : Filter.Tendsto f (nhdsWithin a (Set.Ioi a)) (nhds l))
(hfb : Filter.Tendsto f (nhdsWithin b (Set.Iio b)) (nhds l))
(hff' : ∀ x ∈ Set.Ioo a b, HasDerivAt f (f' x) x)
:
Rolle's Theorem, a version for a function on an open interval: if f
has derivative f'
on (a, b)
and has the same limit l
at 𝓝[>] a
and 𝓝[<] b
, then f' c = 0
for some c ∈ (a, b)
.
theorem
exists_deriv_eq_zero'
{f : ℝ → ℝ}
{a b l : ℝ}
(hab : a < b)
(hfa : Filter.Tendsto f (nhdsWithin a (Set.Ioi a)) (nhds l))
(hfb : Filter.Tendsto f (nhdsWithin b (Set.Iio b)) (nhds l))
:
Rolle's Theorem, a version for a function on an open interval: if f
has the same limit
l
at 𝓝[>] a
and 𝓝[<] b
, then deriv f c = 0
for some c ∈ (a, b)
. This version
does not require differentiability of f
because we define deriv f c = 0
whenever f
is not
differentiable at c
.