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 / V17. Differential calculus in normed spaces

Mathlib.Analysis.Calculus.TaylorIntegral

3 declarations. Mathlib docs · Source

Taylor's formula with an integral remainder in higher dimensions

In this file we prove Taylor's formula with the remainder term in integral form.

  • map_add_eq_sum_add_integral_iteratedFDeriv: version for higher dimensions with iteratedFDeriv

TODO: add a version that assumes ContDiffOn f (closedBall x (‖y‖))

theorem DifferentiableAt.deriv_comp_add_smul E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : NormedAddCommGroup E] [inst_1 : NormedAddCommGroup F]
  [inst_2 : NontriviallyNormedField 𝕜] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace 𝕜 F] {f : E → F} {x y : E}
  {t : 𝕜}, DifferentiableAt 𝕜 f (x + t • y) → deriv (fun s ↦ f (x + s • y)) t = (fderiv 𝕜 f (x + t • y)) y

theorem ContDiffAt.deriv_fderiv_add_smul E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : NormedAddCommGroup E] [inst_1 : NormedAddCommGroup F]
  [inst_2 : NontriviallyNormedField 𝕜] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace 𝕜 F] {f : E → F} {x y : E}
  {t : 𝕜} {n : ℕ},
  ContDiffAt 𝕜 (↑n + 1) f (x + t • y) →
    deriv (fun s ↦ (iteratedFDeriv 𝕜 n f (x + s • y)) fun x ↦ y) t = (iteratedFDeriv 𝕜 (n + 1) f (x + t • y)) fun x ↦ y

theorem map_add_eq_sum_add_integral_iteratedFDeriv E3 #

∀ {E : Type u_2} {F : Type u_3} [inst : NormedAddCommGroup E] [inst_1 : NormedAddCommGroup F] [inst_2 : NormedSpace ℝ E]
  [inst_3 : NormedSpace ℝ F] {f : E → F} {x y : E} {n : ℕ} [CompleteSpace F],
  (∀ t ∈ Set.Icc 0 1, ContDiffAt ℝ (↑n + 1) f (x + t • y)) →
    f (x + y) =
      (∑ k ∈ Finset.range (n + 1), (↑k.factorial)⁻¹ • (iteratedFDeriv ℝ k f x) fun x ↦ y) +
        (↑n.factorial)⁻¹ • ∫ (t : ℝ) in 0..1, (1 - t) ^ n • (iteratedFDeriv ℝ (n + 1) f (x + t • y)) fun x ↦ y

Taylor's theorem with remainder in integral form. If f is n + 1 times continuously differentiable, then f (x + y) is given by ∑ k in 0..n, D^k f(x; y,..,y) / k! + 1/n! ∫ t in 0..1, (1 - t) ^ n • D^{n+1}f (x + t • y; y,..,y), where D^k f denotes the iterated derivative of f.

In the case that n = 1, this is a reformulation of the fundamental theorem of calculus, namely f (x + y) = f x + ∫ t in 0..1, D f(x + t • y; y).