The Mean Value Theorem says f(x)=f(x0)+f′(c)(x−x0) for some unknown c between x and x0. This is a linear approximation with an imprecise remainder. Taylor’s Formula pushes the idea to all orders: approximate f by a degree-n polynomial and express the leftover error explicitly.
The Taylor polynomial
Definition. The Taylor polynomial of degree n of f at x0 is
Pn(x):=k=0∑nk!f(k)(x0)(x−x0)k=f(x0)+f′(x0)(x−x0)+2!f′′(x0)(x−x0)2+⋯+n!f(n)(x0)(x−x0)n.
The coefficients k!f(k)(x0) are the unique values that make Pn(k)(x0)=f(k)(x0) for k=0,1,…,n: the polynomial matches f and all its derivatives up to order n at x0.
Taylor’s formula with the Lagrange remainder
Theorem (Taylor’s Formula). Let f be (n+1)-times differentiable on an open interval containing x0 and x. Then
f(x)=Pn(x)+Rn(x),(1)
where the Lagrange remainder is
Rn(x)=(n+1)!f(n+1)(ξ)(x−x0)n+1(2)
for some ξ strictly between x0 and x.
Proof
Fix x=x0 and let J be the closed interval with endpoints x0 and x. Define
F(t):=f(x)−k=0∑nk!f(k)(t)(x−t)k,G(t):=(x−t)n+1.
Both are continuous on J and differentiable on the interior of J. Observe:
- F(x)=0 and G(x)=0.
- F(x0)=f(x)−Pn(x) and G(x0)=(x−x0)n+1=0.
Telescoping derivative of F. Differentiating using the product rule on each term k!f(k)(t)(x−t)k:
dtd[k!f(k)(t)(x−t)k]=k!f(k+1)(t)(x−t)k−(k−1)!f(k)(t)(x−t)k−1.
Summing from k=0 to n, the sum telescopes — each term (k−1)!f(k)(t)(x−t)k−1 cancels with the k↦k−1 instance of the first part — leaving only the k=n term of the first summand:
F′(t)=−n!f(n+1)(t)(x−t)n,G′(t)=−(n+1)(x−t)n.
Applying Rolle’s theorem. Form the auxiliary function
ϕ(t):=F(t)−G(x0)F(x0)G(t).
Then ϕ(x0)=0 and ϕ(x)=F(x)−G(x0)F(x0)⋅0=0. By Rolle’s Theorem, there exists ξ strictly between x0 and x with ϕ′(ξ)=0:
F′(ξ)−G(x0)F(x0)G′(ξ)=0.
Since ξ=x we have (x−ξ)n=0, so substituting F′ and G′:
−n!f(n+1)(ξ)(x−ξ)n+G(x0)F(x0)(n+1)(x−ξ)n=0⟹G(x0)F(x0)=(n+1)!f(n+1)(ξ).
Multiplying through by G(x0)=(x−x0)n+1 gives F(x0)=Rn(x) with the form in (2). □
Standard Maclaurin expansions
When x0=0 the formula is called a Maclaurin expansion. The following hold for all x∈R (sending n→∞ and verifying Rn→0):
ex=k=0∑∞k!xk=1+x+2!x2+3!x3+⋯
sinx=k=0∑∞(2k+1)!(−1)kx2k+1=x−6x3+120x5−⋯
cosx=k=0∑∞(2k)!(−1)kx2k=1−2x2+24x4−⋯
ln(1+x)=k=1∑∞k(−1)k−1xk=x−2x2+3x3−⋯(−1<x≤1)
(1+x)α=k=0∑∞(kα)xk=1+αx+2!α(α−1)x2+⋯(∣x∣<1)
where the generalised binomial coefficient is (kα):=k!α(α−1)⋯(α−k+1).
Using the remainder to estimate error
The Lagrange form (2) gives a concrete error bound. If ∣f(n+1)(t)∣≤M for all t between x0 and x, then
∣Rn(x)∣≤(n+1)!M∣x−x0∣n+1.
Example. Approximate e0.1 using P3 at x0=0.
P3(0.1)=1+0.1+20.01+60.001≈1.105166.
The remainder satisfies ∣R3(0.1)∣≤4!e0.1(0.1)4<243⋅10−4≈1.25×10−5. The approximation is accurate to five decimal places.
Limit computations
Taylor’s Formula makes indeterminate limits mechanical. To compute limx→0x3sinx−x, expand sinx=x−6x3+O(x5):
x3sinx−x=x3−x3/6+O(x5)→−61.
Summary
- The Taylor polynomial Pn of degree n at x0 matches f and all its derivatives up to order n at x0.
- Taylor’s Formula: f(x)=Pn(x)+Rn(x) with the Lagrange remainder Rn(x)=(n+1)!f(n+1)(ξ)(x−x0)n+1 for some ξ between x0 and x.
- Proof idea: define an auxiliary function whose value at x0 is the remainder; apply the Cauchy MVT to cancel all but the top-order derivative term.
- The Lagrange remainder gives a bound ∣Rn(x)∣≤(n+1)!M∣x−x0∣n+1 when ∣f(n+1)∣≤M.
- Standard power series for ex, sinx, cosx, ln(1+x), and (1+x)α follow by letting n→∞.