Definition 4.3.1: For an n-times differentiable function f near
x0 ∈ ℝ, the nth-order Taylor polynomial at x0 is
P_n^{x0}(x) = ∑_{k=0}^n f^(k)(x0) / k! * (x - x0)^k.
Equations
- taylorPolynomial f x0 n = ∑ k ∈ Finset.range (n + 1), Polynomial.C (iteratedDeriv k f x0 / ↑k.factorial) * (Polynomial.X - Polynomial.C x0) ^ k
Instances For
Identify taylorWithinEval on an interval with the explicit Taylor polynomial.
Taylor's theorem on a positively oriented interval.
Taylor's theorem on a negatively oriented interval, obtained by reflection.
Theorem 4.3.2 (Taylor): If f : ℝ → ℝ has n continuous derivatives on
[a, b] and the (n+1)st derivative exists on (a, b), then for distinct
points x₀, x ∈ [a, b] there is a point c between them such that
f x = Pₙ^{x₀}(x) + f^{(n+1)}(c) / (n+1)! * (x - x₀)^{n+1}.
Proposition 4.3.3 (Second derivative test). If f : (a, b) → ℝ is twice
continuously differentiable, x0 ∈ (a, b), f' x0 = 0, and f'' x0 > 0, then
x0 is a strict relative minimum of f.