1. Taylor Series

By M. Bourne

Our aim is to find a polynomial that gives us a good approximation to some function. (See why we want to do this in the Introduction.)

We find the desired polynomial approximation using the Taylor Series.

If we want a good approximation to the function in the region near x = a, we need to find the first, second, third (and so on) derivatives of the function and substitute the value of a. Then we need to multiply those values by corresponding powers of (x − a), giving us the Taylor Series expansion of the function f(x) about x = a:

taylors

Getting Lost?

See some background to why this sum converges to a polynomial in Infinite Geometric Series from an earlier chapter.

We can write this more conveniently using summation notation as:

summation


Conditions

In order to find such a series, some conditions have to be in place:

  1. The function f(x) has to be infinitely differentiable (that is, we can find each of the first derivative, second derivative, third derivative, and so on forever).
  2. The function f(x) has to be defined in a region near the value x = a.

Let's see what a Taylor Series is all about with an example.

Example - Expansion of ln x

Find the Taylor Expansion of f(x) = ln x near x = 10.

Answer

Recall the natural logarithm, ln x. Recall also the graph of y = ln x:

ln x

Our aim is to find a good polynomal approximation to the curve in the region near x = 10.

We need to use the Taylor Series with a = 10.

The first term in the Taylor Series is f(a). In this example,

f(a) = f(10) = ln 10 = 2. 302585093.

Now for the derivatives.

Recall the derivative of ln x, which is 1/x. So

deriv ln x

We need f '(10), which is 1/10 = 0.1

Now for the second derivative:

2nd derivative

At x = 10, this has value -0.01.

3rd derivative

The third derivative at x = 10 has value 0.002.

4th derivative

At x = 10, this has value -0.0006.

You can see that we could continue forever. This function is infinitely differentiable.

Now to substitute these values into the Taylor Series:

taylors

We have:

taylor

subs

Expanding this all out and collecting like terms, we obtain the polynomial:

ln x = 0.21925 + 0.4x − 0.03x2 + 0.00133x3 − 0.000025x4 + ...

This is the approximating polynomial that we were looking for.

We see from the graph that our polynomial (in blue) is a good approximation for the graph of the natural logarithm function in the region near x = 10.

overlay

Notice that the graph is not so good as we get further away from x = 10. The regions near x = 0 and x = 20 are showing some divergence.

Let's zoom out some more and observe what happens with the approximation:

zoomed out

Clearly, it is no longer a good approximation for values of x less than 3 or greater than 20. How do we get a better approximation? We would need to take more terms of the polynomial.

We now move on to the Maclaurin Series, which is a special case of the Taylor Series (and easier :-).

 


Win a scholarship through Zinch. Double your money!

Didn't find what you are looking for on this page? Try search:

The IntMath Newsletter

Sign up for the free IntMath Newsletter. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!

Given name: * required

Family name:

email: * required

See the Interactive Mathematics spam guarantee.

Calculus Lessons on DVD

get MathTutorDVDs

Easy to understand calculus lessons on DVD. See samples before you commit.

More info: Calculus videos

 

Book mark this page

Add this page to Del.icio.us, Furl, Digg, StumbleUpon, Google, whatever...

 


Need a break? Play a math game. Well, they all involve math... No, really!

dumbolf memoTST bola shadow factory mindfields trick-hoops-challenge crystal clear