



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




We want to rigorously derive the Taylor series formula,
f (a + h) =
n=
f (n)(a) n!
hn^ ∀|h| < R
where R is the radius of convergence. We will use only the tools we have developed thus far: the Fundamental Theorem of Calculus and repeated application of integration by parts. In numerical analysis, we are more interested in the error estimates of the partial sums.
h is small, so consider the difference in f over the distance h. Rewrite it using the Fundamental Theorem of Calculus,
f (a + h) − f (a) =
∫ (^) h
0
f ′(a + t)dt
Now use integration by parts. Comparing to the Taylor series formula, each integration by parts should increase the order of the derivative. This moti- vates the choices
u ≡ f ′(a + t) dv ≡ dt
We will see later that it will be more convenient to take v = t − h. This will cause the boundary term in the integration by parts formula to cancel. Invoking integration by parts, ∫ (^) h
0
f ′(a + t)dt = [f ′(a + t)(t − h)]h 0 +
∫ (^) h
0
f ′′(a + t)(h − t)dt
As desired, the boundary term evaluated at h is 0. Taking t = 0 gives f ′(a)h.
f (a + h) − f (a) = f ′(a)h +
∫ (^) h
0
f ′′(a + t)(h − t)dt
Integrate by parts again. u ≡ f ′′(a + t) dv = (h − t)dt
du = f (3)(a + t)dt v = −
(h − t)^2 2 As before, v is chosen to ensure that the boundary term goes to 0. Performing another integration by parts, ∫ (^) h
0
f ′′(a + t)(h − t)dt = −
f ′′(a + t)
(h − t)^2 2
]h
0
∫ (^) h
0
f (3)(a + t)
(h − t)^2 2
dt
Again, taking the upper limit of the boundary term gives 0. Taking t = 0 gives the next term in the Taylor series.
f (a + h) − f (a) = f ′(a)h +
f ′′(a) 2
h^2 +
∫ (^) h
0
f (3)(a + t)
(h − t)^2 2 We integrate by parts again, following the same method.
u ≡ f (3)(a + t) dv =
(h − t)^2 2
dt
du = f (4)(a + t)dt v = −
(h − t)^3 3!
dt
f (a + h) − f (a) = f ′(a)h +
f ′′(a) 2
h^2 +
f (3)(a) 3!
h^3 +
∫ (^) h
0
f (4)(a + t)
(h − t)^3 3!
dt
In general, we expect
f (a + h) =
n=
f (n)(a) n!
hn^ +
∫ (^) h
0
f (N^ +1)(a + t)
(h − t)N N!
dt
Substitute for the upper bound, M. Since it is constant, it can be brought outside of the integral. The N! is also constant. Only the integral of sN remains, which can be easily done. ∫ (^) h
0
sN^ ds =
sN^ + N + 1
|h 0 =
hN^ + N + 1
⇒ |R| ≤
M hN^ + (N + 1)!
To integrate from left to right, use the orientation property of integration to switch the limits of integration and get a minus sign,
h
f (N^ +1)(a + h − s)
sN N!
ds
Consider the same upper bound M on the integrand,
h
|s|N N!
ds
Because of the absolute value, sN^ is positive for s < 0. The area under the curve between h and 0 is the same as that between 0 and −h.
|R| ≤ M
∫ (^) −h
0
sN n!
ds =
(−h)N^ + (N + 1)! In summary, for all values of h,
|h|N^ + (N + 1)!
where M = max x∈(h−a,h+a)
f (N^ +1)(x)
R = O(hN^ +1)
∫ (^) h
0
f (N^ +1)(a + t)
(h − t)N N!
dt =
f (N^ +1)(ζ) (N + 1)!
hN^ +
for some ζ ∈ (a, a + h). Note. Taking N = 0 recovers the old mean value theorem,
Summarizing Taylor’s theorem,
f (a + h) =
n=
f (n)(a) n!
hn^ + f (N^ +1)(ζ)
hN^ + (N + 1)!
for some ζ between a and a + h.
3 Numerical applications
Suppose we want an approximation of f ′′(a) knowing only the values of f (a), f (a + h), and f (a − h). Write down a Taylor series of each of these.
f (a + h) = f (a) + f ′(a)h +
f ′′(a) 2
h^2 +
f ′′′(a) 3!
h^3 + O(h^4 )
Note. Since we are interested in the second derivative, keep the third term as an estimate of the error.
Now replace h by −h, by substituting into the formula above,
f (a − h) = f (a) − f ′(a)h +
f ′′(a) 2
h^2 −
f ′′′(a) 3!
h^3 + O(h^4 )
Add these two Taylor expansions cancels the odd terms
f (a + h) + f (a − h) = 2f (a) + f ′′(a)h^2 + O(h^4 )
With some algebra,
f (a − h) − 2 f (a) + f (a + h) h^2
= f ′′(a) + O(h^2 )