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.
Sign of the remainder. As a function of the expansion point, the derivative of
x₀ ↦ taylorWithinEval f n s x₀ xis(x - x₀)ⁿ / n! · f⁽ⁿ⁺¹⁾(x₀). If(-1)ⁿ f⁽ⁿ⁺¹⁾ ≥ 0on(x, y), this derivative is nonnegative there, so the Taylor polynomial of ordernexpanded atyand evaluated at the left endpointxdominatesf x: the Taylor remainder has a sign.Derivatives of
f(x) / x. By the Leibniz rule anddᵐ/dxᵐ x⁻¹ = (-1)ᵐ m! x⁻ᵐ⁻¹,dⁿ/dtⁿ (f(t) / t) = (-1)ⁿ n! t⁻ⁿ⁻¹ · Σ_{k ≤ n} f⁽ᵏ⁾(t) (0 - t)ᵏ / k!,the last factor being the Taylor polynomial of order
noffexpanded attand evaluated at0.
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 #
TauCeti.le_taylorWithinEval_of_neg_one_pow_mul_iteratedDerivWithin_nonneg: if(-1)ⁿ f⁽ⁿ⁺¹⁾ ≥ 0on(x, y), thenf xis at most the Taylor polynomial of ordernaty, evaluated atx.TauCeti.iteratedDeriv_div_id: the formula for then-th derivative oft ↦ f t / t.
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.
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.