Docsity

Taylor Series, Lecture Notes - Mathematics, Study notes of Calculus

Toggle sidebar
bg1
Taylor Series
Adrian Down
January 24, 2006
1 Taylor’s Formula
1.1 Motivation
We want to rigorously derive the Taylor series formula,
f(a+h) =
∞
X
n=0
f(n)(a)
n!hn∀|h|< R
where Ris 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.
1.2 Derivation
his small, so consider the difference in fover the distance h. Rewrite it
using the Fundamental Theorem of Calculus,
f(a+h)−f(a) = Zh
0
f0(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≡f0(a+t)dv ≡dt
1
pf3
pf4
pf5

Partial preview of the text

Download Taylor Series, Lecture Notes - Mathematics and more Study notes Calculus in PDF only on Docsity!

Taylor Series

Adrian Down

January 24, 2006

1 Taylor’s Formula

1.1 Motivation

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.

1.2 Derivation

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

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)!

2.3 h < 0

To integrate from left to right, use the orientation property of integration to switch the limits of integration and get a minus sign,

R = −

h

f (N^ +1)(a + h − s)

sN N!

ds

Consider the same upper bound M on the integrand,

|R| ≤ M

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,

|R| ≤ M

|h|N^ + (N + 1)!

where M = max x∈(h−a,h+a)

f (N^ +1)(x)

2.4 Comments

  • |R| is bounded above by a positive constant times |h|N^ +1. This power dependence on h is usually the most important fact for numerical anal- ysis. We use Big O notation to indicate the power dependence of a quantity,

R = O(hN^ +1)

  • As an alternate formulation, we showed on the first problem set

R =

∫ (^) 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

3.1 Finite difference approximation of f ′′(a)

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 )