The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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 f is the n-th derivative of f, seen as a function from π•œ to F. It is defined as the n-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_iterate states that the n-th derivative of f is obtained by starting from f and differentiating it n times.
  • iteratedDerivWithin n f s is the n-th derivative of f within the domain s. It only behaves well when s has the unique derivative property.
  • iteratedDerivWithin_eq_iterate states that the n-th derivative of f in the domain s is obtained by starting from f and differentiating it n times within s. This only holds when s has 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.