The areas / V15. Real analysis in one variable
Mathlib.Analysis.Calculus.IteratedDeriv.Defs
50 declarations. Mathlib docs Β· Source
One-dimensional iterated derivatives
We define the n-th derivative of a function f : π β F as a function
iteratedDeriv n f : π β F, as well as a version on domains iteratedDerivWithin n f s : π β F,
and prove their basic properties.
Main definitions and results
Let π be a nontrivially normed field, and F a normed vector space over π. Let f : π β F.
iteratedDeriv n fis then-th derivative off, seen as a function fromπtoF. It is defined as then-th FrΓ©chet derivative (which is a multilinear map) applied to the vector(1, ..., 1), to take advantage of all the existing framework, but we show that it coincides with the naive iterative definition.iteratedDeriv_eq_iteratestates that then-th derivative offis obtained by starting fromfand differentiating itntimes.iteratedDerivWithin n f sis then-th derivative offwithin the domains. It only behaves well whenshas the unique derivative property.iteratedDerivWithin_eq_iteratestates that then-th derivative offin the domainsis obtained by starting fromfand differentiating itntimes withins. This only holds whenshas the unique derivative property.
Implementation notes
The results are deduced from the corresponding results for the more general (multilinear) iterated
FrΓ©chet derivative. For this, we write iteratedDeriv n f as the composition of
iteratedFDeriv π n f and a continuous linear equiv. As continuous linear equivs respect
differentiability and commute with differentiation, this makes it possible to prove readily that
the derivative of the n-th derivative is the n+1-th derivative in iteratedDerivWithin_succ,
by translating the corresponding result iteratedFDerivWithin_succ_apply_left for the
iterated FrΓ©chet derivative.
Properties of the iterated derivative within a set
Properties of the iterated derivative on the whole space
def iteratedDeriv E3 #
{π : Type u_1} β
[inst : NontriviallyNormedField π] β
{F : Type u_2} β [inst_1 : NormedAddCommGroup F] β [NormedSpace π F] β β β (π β F) β π β F
The n-th iterated derivative of a function from π to F, as a function from π to F.
def iteratedDerivWithin E3 #
{π : Type u_1} β
[inst : NontriviallyNormedField π] β
{F : Type u_2} β [inst_1 : NormedAddCommGroup F] β [NormedSpace π F] β β β (π β F) β Set π β π β F
The n-th iterated derivative of a function from π to F within a set s, as a function
from π to F.
theorem iteratedDerivWithin_univ E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F}, iteratedDerivWithin n f Set.univ = iteratedDeriv n f
theorem iteratedDerivWithin_eq_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π} {x : π},
UniqueDiffOn π s β ContDiffAt π (βn) f x β x β s β iteratedDerivWithin n f s x = iteratedDeriv n f x
theorem iteratedDerivWithin_eq_iteratedFDerivWithin E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π} {x : π},
iteratedDerivWithin n f s x = (iteratedFDerivWithin π n f s x) fun x β¦ 1
theorem iteratedDerivWithin_eq_equiv_comp E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π},
iteratedDerivWithin n f s = β(ContinuousMultilinearMap.piFieldEquiv π (Fin n) F).symm β iteratedFDerivWithin π n f s
Write the iterated derivative as the composition of a continuous linear equiv and the iterated FrΓ©chet derivative
theorem iteratedFDerivWithin_eq_equiv_comp E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π},
iteratedFDerivWithin π n f s = β(ContinuousMultilinearMap.piFieldEquiv π (Fin n) F) β iteratedDerivWithin n f s
Write the iterated FrΓ©chet derivative as the composition of a continuous linear equiv and the iterated derivative.
theorem iteratedFDerivWithin_apply_eq_iteratedDerivWithin_mul_prod E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π} {x : π} {m : Fin n β π},
(iteratedFDerivWithin π n f s x) m = (β i, m i) β’ iteratedDerivWithin n f s x
The n-th FrΓ©chet derivative applied to a vector (m 0, ..., m (n-1)) is the derivative
multiplied by the product of the m is.
theorem norm_iteratedFDerivWithin_eq_norm_iteratedDerivWithin E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π} {x : π},
βiteratedFDerivWithin π n f s xβ = βiteratedDerivWithin n f s xβ
theorem iteratedDerivWithin_zero E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π}, iteratedDerivWithin 0 f s = f
theorem iteratedDerivWithin_one E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π}, iteratedDerivWithin 1 f s = derivWithin f s
theorem contDiffOn_of_continuousOn_differentiableOn_deriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : ββ},
(β (m : β), βm β€ n β ContinuousOn (fun x β¦ iteratedDerivWithin m f s x) s) β
(β (m : β), βm < n β DifferentiableOn π (fun x β¦ iteratedDerivWithin m f s x) s) β ContDiffOn π (βn) f s
If the first n derivatives within a set of a function are continuous, and its first n-1
derivatives are differentiable, then the function is C^n. This is not an equivalence in general,
but this is an equivalence when the set has unique derivatives, see
contDiffOn_iff_continuousOn_differentiableOn_deriv.
theorem contDiffOn_of_differentiableOn_deriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : ββ},
(β (m : β), βm β€ n β DifferentiableOn π (iteratedDerivWithin m f s) s) β ContDiffOn π (βn) f s
To check that a function is n times continuously differentiable, it suffices to check that its
first n derivatives are differentiable. This is slightly too strong as the condition we
require on the n-th derivative is differentiability instead of continuity, but it has the
advantage of avoiding the discussion of continuity in the proof (and for n = β this is optimal).
theorem ContDiffOn.continuousOn_iteratedDerivWithin E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : WithTop ββ} {m : β},
ContDiffOn π n f s β βm β€ n β UniqueDiffOn π s β ContinuousOn (iteratedDerivWithin m f s) s
On a set with unique derivatives, a C^n function has derivatives up to n which are
continuous.
theorem ContDiffWithinAt.differentiableWithinAt_iteratedDerivWithin E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {x : π} {n : WithTop ββ} {m : β},
ContDiffWithinAt π n f s x β
βm < n β UniqueDiffOn π (insert x s) β DifferentiableWithinAt π (iteratedDerivWithin m f s) s x
theorem ContDiffOn.differentiableOn_iteratedDerivWithin E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : WithTop ββ} {m : β},
ContDiffOn π n f s β βm < n β UniqueDiffOn π s β DifferentiableOn π (iteratedDerivWithin m f s) s
On a set with unique derivatives, a C^n function has derivatives less than n which are
differentiable.
theorem contDiffOn_iff_continuousOn_differentiableOn_deriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : ββ},
UniqueDiffOn π s β
(ContDiffOn π (βn) f s β
(β (m : β), βm β€ n β ContinuousOn (iteratedDerivWithin m f s) s) β§
β (m : β), βm < n β DifferentiableOn π (iteratedDerivWithin m f s) s)
The property of being C^n, initially defined in terms of the FrΓ©chet derivative, can be
reformulated in terms of the one-dimensional derivative on sets with unique derivatives.
theorem contDiffOn_nat_iff_continuousOn_differentiableOn_deriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : β},
UniqueDiffOn π s β
(ContDiffOn π (βn) f s β
(β m β€ n, ContinuousOn (iteratedDerivWithin m f s) s) β§ β m < n, DifferentiableOn π (iteratedDerivWithin m f s) s)
The property of being C^n, initially defined in terms of the FrΓ©chet derivative, can be
reformulated in terms of the one-dimensional derivative on sets with unique derivatives.
theorem iteratedDerivWithin_succ E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π},
iteratedDerivWithin (n + 1) f s = derivWithin (iteratedDerivWithin n f s) s
The n+1-th iterated derivative within a set with unique derivatives can be obtained by
differentiating the n-th iterated derivative.
theorem iteratedDerivWithin_eq_iterate E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π} {x : π},
iteratedDerivWithin n f s x = (fun g β¦ derivWithin g s)^[n] f x
The n-th iterated derivative within a set with unique derivatives can be obtained by
iterating n times the differentiation operation.
theorem iteratedDerivWithin_succ' E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π},
iteratedDerivWithin (n + 1) f s = iteratedDerivWithin n (derivWithin f s) s
The n+1-th iterated derivative within a set with unique derivatives can be obtained by
taking the n-th derivative of the derivative.
theorem contDiffOn_nat_succ_iff_contDiffOn_one_iteratedDerivWithin E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {s : Set π} {n : β},
UniqueDiffOn π s β
(ContDiffOn π (β(n + 1)) f s β ContDiffOn π (βn) f s β§ ContDiffOn π 1 (iteratedDerivWithin n f s) s)
C^{n + 1} is equivalent to C^n and the n-th derivative being C^1.
theorem iteratedDeriv_eq_iteratedFDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {x : π}, iteratedDeriv n f x = (iteratedFDeriv π n f x) fun x β¦ 1
theorem iteratedDeriv_eq_equiv_comp E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F},
iteratedDeriv n f = β(ContinuousMultilinearMap.piFieldEquiv π (Fin n) F).symm β iteratedFDeriv π n f
Write the iterated derivative as the composition of a continuous linear equiv and the iterated FrΓ©chet derivative
theorem iteratedFDeriv_eq_equiv_comp E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F},
iteratedFDeriv π n f = β(ContinuousMultilinearMap.piFieldEquiv π (Fin n) F) β iteratedDeriv n f
Write the iterated FrΓ©chet derivative as the composition of a continuous linear equiv and the iterated derivative.
theorem iteratedFDeriv_apply_eq_iteratedDeriv_mul_prod E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {x : π} {m : Fin n β π},
(iteratedFDeriv π n f x) m = (β i, m i) β’ iteratedDeriv n f x
The n-th FrΓ©chet derivative applied to a vector (m 0, ..., m (n-1)) is the derivative
multiplied by the product of the m is.
theorem norm_iteratedFDeriv_eq_norm_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {x : π}, βiteratedFDeriv π n f xβ = βiteratedDeriv n f xβ
theorem iteratedDeriv_zero E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F}, iteratedDeriv 0 f = f
theorem iteratedDeriv_one E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F}, iteratedDeriv 1 f = deriv f
theorem contDiff_iff_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {n : ββ},
ContDiff π (βn) f β
(β (m : β), βm β€ n β Continuous (iteratedDeriv m f)) β§ β (m : β), βm < n β Differentiable π (iteratedDeriv m f)
The property of being C^n, initially defined in terms of the FrΓ©chet derivative, can be
reformulated in terms of the one-dimensional derivative.
theorem contDiff_nat_iff_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {n : β},
ContDiff π (βn) f β (β m β€ n, Continuous (iteratedDeriv m f)) β§ β m < n, Differentiable π (iteratedDeriv m f)
The property of being C^n, initially defined in terms of the FrΓ©chet derivative, can be
reformulated in terms of the one-dimensional derivative.
theorem contDiff_of_differentiable_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {n : ββ},
(β (m : β), βm β€ n β Differentiable π (iteratedDeriv m f)) β ContDiff π (βn) f
To check that a function is n times continuously differentiable, it suffices to check that its
first n derivatives are differentiable. This is slightly too strong as the condition we
require on the n-th derivative is differentiability instead of continuity, but it has the
advantage of avoiding the discussion of continuity in the proof (and for n = β this is optimal).
theorem ContDiff.continuous_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {n : WithTop ββ} (m : β),
ContDiff π n f β βm β€ n β Continuous (iteratedDeriv m f)
theorem ContDiff.continuous_iteratedDeriv' E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} (m : β), ContDiff π (βm) f β Continuous (iteratedDeriv m f)
theorem ContDiff.differentiable_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {n : WithTop ββ} (m : β),
ContDiff π n f β βm < n β Differentiable π (iteratedDeriv m f)
theorem ContDiff.differentiable_iteratedDeriv' E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} (m : β), ContDiff π (βm + 1) f β Differentiable π (iteratedDeriv m f)
theorem iteratedDeriv_succ E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F}, iteratedDeriv (n + 1) f = deriv (iteratedDeriv n f)
The n+1-th iterated derivative can be obtained by differentiating the n-th
iterated derivative.
theorem iteratedDeriv_eq_iterate E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F}, iteratedDeriv n f = deriv^[n] f
The n-th iterated derivative can be obtained by iterating n times the
differentiation operation.
theorem iteratedDerivWithin_of_isOpen E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π},
IsOpen s β Set.EqOn (iteratedDerivWithin n f s) (iteratedDeriv n f) s
theorem iteratedDerivWithin_congr_right_of_isOpen E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] (f : π β F) (n : β) {s t : Set π},
IsOpen s β IsOpen t β Set.EqOn (iteratedDerivWithin n f s) (iteratedDerivWithin n f t) (s β© t)
theorem iteratedDerivWithin_of_isOpen_eq_iterate E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F} {s : Set π},
IsOpen s β Set.EqOn (iteratedDerivWithin n f s) (deriv^[n] f) s
theorem iteratedDeriv_succ' E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {f : π β F}, iteratedDeriv (n + 1) f = iteratedDeriv n (deriv f)
The n+1-th iterated derivative can be obtained by taking the n-th derivative of the
derivative.
theorem AnalyticAt.hasFPowerSeriesAt E1 #
β {π : Type u_3} [inst : NontriviallyNormedField π] [CompleteSpace π] [CharZero π] {f : π β π} {x : π},
AnalyticAt π f x β
HasFPowerSeriesAt f (FormalMultilinearSeries.ofScalars π fun n β¦ iteratedDeriv n f x / βn.factorial) x
theorem iteratedDeriv_const E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {c : F} {x : π}, iteratedDeriv n (fun x β¦ c) x = if n = 0 then c else 0
theorem iteratedDerivWithin_const E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {c : F} {s : Set π} {x : π},
iteratedDerivWithin n (fun x β¦ c) s x = if n = 0 then c else 0
theorem iteratedDeriv_fun_const_zero E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {x : π}, iteratedDeriv n (fun x β¦ 0) x = 0
theorem iteratedDeriv_const_zero E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {x : π}, iteratedDeriv n 0 x = 0
theorem iteratedDerivWithin_fun_const_zero E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {x : π} {s : Set π}, iteratedDerivWithin n (fun x β¦ 0) s x = 0
theorem iteratedDerivWithin_const_zero E0 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {n : β} {x : π} {s : Set π}, iteratedDerivWithin n 0 s x = 0
theorem contDiff_nat_succ_iff_contDiff_one_iteratedDeriv E1 #
β {π : Type u_1} [inst : NontriviallyNormedField π] {F : Type u_2} [inst_1 : NormedAddCommGroup F]
[inst_2 : NormedSpace π F] {f : π β F} {n : β},
ContDiff π (β(n + 1)) f β ContDiff π (βn) f β§ ContDiff π 1 (iteratedDeriv n f)
C^{n + 1} is equivalent to C^n and the n-th derivative being C^1.