Documentation

TauCeti.Analysis.Calculus.Taylor

Taylor polynomials: sign of the remainder and the derivatives of f(x) / x #

Two facts about Mathlib's Taylor polynomials taylorWithinEval f n s x₀ x.

Combined, they show that the iterated derivatives of f(t) / t alternate in sign whenever f is nonnegative and the derivatives of f' alternate in sign — the statement that a Bernstein function divided by its parameter is completely monotone.

Main declarations #

theorem TauCeti.le_taylorWithinEval_of_neg_one_pow_mul_iteratedDerivWithin_nonneg {f : ℝ → ℝ} {s : Set ℝ} {n : ℕ} {x y : ℝ} (hs : IsOpen s) (hxy : x ≤ y) (hsub : Set.Icc x y ⊆ s) (hf : ContDiffOn ℝ (↑n + 1) f s) (hsign : ∀ z ∈ Set.Ioo x y, 0 ≤ (-1) ^ n * iteratedDerivWithin (n + 1) f s z) :
f x ≤ taylorWithinEval f n s y x

The Taylor remainder has a sign. Let f be C^(n+1) on an open set s containing [x, y], with (-1)ⁿ f⁽ⁿ⁺¹⁾ ≥ 0 on (x, y). Then the Taylor polynomial of order n of f expanded at y and evaluated at x is at least f x.

theorem TauCeti.iteratedDeriv_div_id {f : ℝ → ℝ} {s : Set ℝ} {n : ℕ} {t : ℝ} (hs : IsOpen s) (ht : t ∈ s) (ht0 : t ≠ 0) (hf : ContDiffOn ℝ (↑n) f s) :
iteratedDeriv n (fun (x : ℝ) => f x / x) t = (-1) ^ n * ↑n.factorial * (t ^ (n + 1))⁻¹ * taylorWithinEval f n s t 0

The derivatives of f(t) / t. If f is C^n on an open set s containing t ≠ 0, then dⁿ/dtⁿ (f(t) / t) = (-1)ⁿ n! t⁻ⁿ⁻¹ · T(0), where T is the Taylor polynomial of order n of f expanded at t.