Theorem: Let f be (n+1) times differentiable on an open interval containing a and x. Then
f(x)=∑k=0nk!f(k)(a)(x−a)k+(n+1)!f(n+1)(c)(x−a)n+1
for some c between a and x.
Step 1: Setup.
Define Tn(x)=∑k=0nk!f(k)(a)(x−a)k and Rn(x)=f(x)−Tn(x). We need to show that Rn(x)=(n+1)!f(n+1)(c)(x−a)n+1 for some c between a and x.
Fix x=a and define the constant M by the equation
Rn(x)=M⋅(n+1)!(x−a)n+1
We need to show M=f(n+1)(c) for some c between a and x.
Step 2: Construct an auxiliary function.
Define
g(t)=f(t)−Tn(t)−M⋅(n+1)!(t−a)n+1
where Tn(t)=∑k=0nk!f(k)(a)(t−a)k is viewed as a function of t.
We observe that g(a)=0 because Tn(a)=f(a) and the last term vanishes at t=a. Also g(x)=0 by our choice of M.
Step 3: Apply the generalized Rolle's theorem.
Since g(a)=g(x)=0 and g is differentiable, Rolle's theorem gives c1 between a and x with g′(c1)=0.
Now compute g′(t):
g′(t)=f′(t)−∑k=1n(k−1)!f(k)(a)(t−a)k−1−M⋅n!(t−a)n
We have g′(a)=f′(a)−f′(a)=0 (the sum at t=a gives f′(a) from the k=1 term). So g′(a)=g′(c1)=0, and Rolle's theorem gives c2 between a and c1 with g′′(c2)=0.
Continuing this process: at each stage, g(j)(a)=0 (since the Taylor polynomial was chosen to match f up to order n) and g(j)(cj)=0 from the previous step. By Rolle's theorem, there exists cj+1 between a and cj with g(j+1)(cj+1)=0.
Step 4: The (n+1)-th derivative.
After n+1 applications of Rolle's theorem, we obtain cn+1 (call it c) between a and x with g(n+1)(c)=0.
Now compute g(n+1)(t):
- dtn+1dn+1f(t)=f(n+1)(t)
- dtn+1dn+1Tn(t)=0 (since Tn is a polynomial of degree ≤n)
- dtn+1dn+1[M⋅(n+1)!(t−a)n+1]=M
Therefore g(n+1)(t)=f(n+1)(t)−M.
Setting g(n+1)(c)=0 gives f(n+1)(c)=M.
Step 5: Conclusion.
Substituting back: Rn(x)=M⋅(n+1)!(x−a)n+1=(n+1)!f(n+1)(c)(x−a)n+1. □