Documentation

Mathlib.Analysis.Calculus.TaylorIntegral

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.

TODO: add a version that assumes ContDiffOn f (closedBall x (โ€–yโ€–))

theorem DifferentiableAt.deriv_comp_add_smul {๐•œ : Type u_1} {E : Type u_2} {F : Type u_3} [NormedAddCommGroup E] [NormedAddCommGroup F] [NontriviallyNormedField ๐•œ] [NormedSpace ๐•œ E] [NormedSpace ๐•œ F] {f : E โ†’ F} {x y : E} {t : ๐•œ} (hf : 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 {๐•œ : Type u_1} {E : Type u_2} {F : Type u_3} [NormedAddCommGroup E] [NormedAddCommGroup F] [NontriviallyNormedField ๐•œ] [NormedSpace ๐•œ E] [NormedSpace ๐•œ F] {f : E โ†’ F} {x y : E} {t : ๐•œ} {n : โ„•} (hf : ContDiffAt ๐•œ (โ†‘n + 1) f (x + t โ€ข y)) :
deriv (fun (s : ๐•œ) => (iteratedFDeriv ๐•œ n f (x + s โ€ข y)) fun (x : Fin n) => y) t = (iteratedFDeriv ๐•œ (n + 1) f (x + t โ€ข y)) fun (x : Fin (n + 1)) => y
theorem map_add_eq_sum_add_integral_iteratedFDeriv {E : Type u_2} {F : Type u_3} [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedSpace โ„ E] [NormedSpace โ„ F] {f : E โ†’ F} {x y : E} {n : โ„•} [CompleteSpace F] (hf : โˆ€ 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 : Fin k) => y) + (โ†‘n.factorial)โปยน โ€ข โˆซ (t : โ„) in 0..1, (1 - t) ^ n โ€ข (iteratedFDeriv โ„ (n + 1) f (x + t โ€ข y)) fun (x : Fin (n + 1)) => 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).