20
Taylor Series The Coefficients of a Power Series

Taylor Series

Embed Size (px)

DESCRIPTION

Taylor Series. The Coefficients of a Power Series. Coefficients of a Power Series. Suppose that we have function f given by a power series. What can we say about the relationship between f and the coefficients a 0 , a 1 , a 2 , a 3 , a 4 , a 5 , . . ?. - PowerPoint PPT Presentation

Citation preview

Page 1: Taylor Series

Taylor Series

The Coefficients of a Power Series

Page 2: Taylor Series

Coefficients of a Power Series

Suppose that we have function f given by a power series

2 30 1 0 2 0 3 0( ) ( ) ( ) ( )f x a a x x a x x a x x

What can we say about the relationship between f and the coefficients a0, a1, a2, a3, a4, a5, . . ?

Answer: Quite a bit, and the reasoning should look somewhat familiar to you.

Here’s how it goes . . .

Page 3: Taylor Series

2 30 1 0 2 0 3 0( ) ( ) ( ) ( )f x a a x x a x x a x x

2 30 0 1 0 0 2 0 0 3 0 0( ) ( ) ( ) ( )f x a a x x a x x a x x

Then

Furthermore, Theorem 13 (pg. 591 in OZ), says that

2 31 2 0 3 0 4 0( ) 2 ( ) 3 ( ) 4 ( )f x a a x x a x x a x x

0 1( ) .f x a Thus

Is this beginning to look familiar? It should remind you of the process by which we computed the coefficients of the Taylor polynomial approximations

0a

If

Page 4: Taylor Series

Continuing to take derivatives and evaluate at x0, we have . . .

22 3 0 4 0( ) 2 3 2 ( ) 4 3 ( )f x a a x x a x x

0 3( ) 3!f x a

0 2( ) 2f x a

02

( )

2

f xa

23 4 0 5 0( ) 3! 4! ( ) 5 4 3 ( )f x a a x x a x x

03

( )

3!

f xa

Page 5: Taylor Series

In general, we have:

( )0( ) !n

nf x n a

In other words, if a function f is given by a power series that is centered at x0, that power series must be the Taylor series for f based at x0.

2 30 1 0 2 0 3 0( ) ( ) ( ) ( )f x a a x x a x x a x x

which tells us that( )

0( )

!

n

n

f xa

n

If we have

Then(3)

2 30 00 0 0 0 0

( ) ( )( ) ( ) ( )( ) ( ) ( )

2 3!

f x f xf x f x f x x x x x x x

Page 6: Taylor Series

Notice what this does not say. •It does not say that every function is given by its Taylor Series. •It does not even say that every function that has a Taylor series is given by its Taylor Series.

It is easy to see that Taylor series are just a special kind of power series. Our discovery tells us that they are really the only kind of power series there is.

To reiterate: If a function f is given by a power series, that power series must be the Taylor Series for f at the same base point.

Page 7: Taylor Series

For a Function f, Some Questions Arise

1. If f has a Taylor Series, does the series converge?

Answer: Often, but not always, and certainly not always on the whole domain of the function. Consider the familiar case of

What is the Taylor Series for this function? What can we say about its convergence?

2

1( ) .

1 3f x

x

Page 8: Taylor Series

Next Question . . .2. If the Taylor Series for f converges, is it equal

to f on its interval of convergence?Answer: Often, but not always.

Consider the absolute value function

We know that we cannot expand it in a Taylor series about x=0. (Why?)

But f (x) = | x | has derivatives of all orders at all other points.

What if we consider a Taylor series expansion about x = 1?

( ) .f x x

Page 9: Taylor Series

Taylor Series for f (x)= |x| based at x = 1.

What about the derivatives of f at x = 1?

What do we get for the Taylor series expansion at x = 1?

The Taylor Series expansion for f (x) = | x | converges on the entire real line, but is equal to f only on the interval [0,∞)!

Page 10: Taylor Series

Things can get really weird

21

e if 0( )0 if 0

x xf xx

Facts:• f is continuous and has derivatives of all orders at x = 0.• f (n)(0)=0 for all n.

What does all this tell us about the Maclaurin Series for f ?

The Maclaurin Series for f converges everywhere, but is equal to f only at x = 0!

Page 11: Taylor Series

So where does this leave us?To Summarize:Even if we can compute the Taylor Series for a function, •the Taylor Series does not always converge. •If the Taylor Series converges, the Taylor Series is not necessarily equal to the function, even on its interval of convergence.

We know how to determine whether (and where) the Taylor series converges---Ratio test!But how do we know if the Taylor Series of the function is equal to the function on the interval where it converges? The answer is already familiar . . . Taylor’s Theorem.

Page 12: Taylor Series

Recall Taylor’s Theorem

Suppose that f is repeatedly differentiable on an interval I containing x0 and that

is the nth order Taylor polynomial based at x0. Suppose that Kn+1 is a number such that for all z in I,

Then for x in I,

2 30 1 0 2 0 3 0 0( ) ( ) ( ) ( ) ( )n

n nP x a a x x a x x a x x a x x

( 1)1| ( ) | .n

nf z K

11

0| ( ) ( ) |1 !

nnn

Kf x P x x x

n

Page 13: Taylor Series

What does this tell us?

Pointing out that a Taylor series for f “might converge at all x but perhaps to a limit other than f,” Ostebee and Zorn assure us that

“Taylor’s theorem guarantees that this unfortunate event seldom occurs.”

Page 14: Taylor Series

Pinning this down

Recall that Pn is the nth partial sum of theTaylor Series of f based at x0.

And thus

Measures the error made by Pn(x) in approximating f (x). Taylor’s theorem gives us an upper bound on this error!

| ( ) ( ) |nf x P x

The Taylor series for f will converge to f if and only if for all x| f (x) - Pn(x) |

goes to zero as n →∞. Taylor’s theorem can help us establish this.

Page 15: Taylor Series

Using Taylor’s Theorem

( ) sin( )f x x

1. Find the Taylor series for f that is based at x = /4.2. Show that this Taylor series converges to f for all values of x.

Page 16: Taylor Series

1. Taylor Series for f (x) = sin(x)

n f (n)(x) f (n)( ) an= f (n)( )/n!

0

1

2

3

4

sin( )x

cos( )x

sin( )x

cos( )x

sin( )x

4

1

1 1 1

1!2 2a

1sin 4 2

1sin 4 2

1cos 4 2

1cos 4 2

1sin 4 2

4

0

1 1 1

0!2 2a

2

1 1

2!2a

3

1 1

3!2a

4

1 1

4!2a

2 3 4 51 1 1 1 1 1 1 1 1 14 4 4 4 42 3! 4! 5!2 2 2 2 2 2

x x x x x

Page 17: Taylor Series

We start with the general set-up for Taylor’s Theorem.

What is Kn+1?

It follows that

Show that this converges to sin(x)

1

4sin( ) ( ) for all .1 !

n

n

xx P x x

n

What happensto this quantity

As n→∞?

1

1sin( ) 1 for all and all .

n

n

dx n x

dx

1

1sin( ) ( ) 41 !

nn

n

Kx P x x

n

Notice that I didn’t have to know what Pn was in order to gather this information. (In

other words, our second question is independent of our

first.)

Page 18: Taylor Series

Now it’s your turn

Repeat this exercise with the Maclaurin series for f (x) = cos(2x) .

1. Find the Maclaurin series for f (x) = cos(2x).2. Show that this series converges to f for all values of x.

Page 19: Taylor Series

1. Taylor Series for f (x) = cos(2x)

n f (n)(x) f (n)(0) an= f (n)(0)/n!

0

1

2

3

4

2sin(2 )x

22 cos(2 )x

32 sin(2 )x

42 cos(2 )x

1 0a

2 22 cos 0 2

4 42 cos(0) 2

2sin 0 0

32 sin(0) 0

cos 0 1 0 1a

2

2

2

2!a

3 0a 4

4

2

4!a

4 6 2

2 4 6 2

0

2 2 2 ( 1) 21

2! 4! 6! 2 !

n nn

n

x x x xn

cos(2 )x

Page 20: Taylor Series

We start with the general set-up for Taylor’s Theorem.

What is Kn+1?

It follows that

Show that this converges to cos(2x)

11cos(2 ) ( ) 0

1 !nn

n

Kx P x x

n

12

cos(2 ) ( ) for all .1 !

n

n

xx P x x

n

This quantity goesto 0 as n→∞!

11

1cos(2 ) 2 for all and all .

nn

n

dx n x

dx