0% found this document useful (0 votes)
24 views12 pages

Taylor Mclauren

Chapter 10.16 discusses Taylor Series, a method for representing functions as power series around a point 'a'. It outlines the process for determining coefficients using derivatives and introduces the Maclaurin Series as a special case when 'a' is zero. The chapter also provides examples of finding Taylor Series for various functions, emphasizing the importance of recognizing patterns in derivatives.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views12 pages

Taylor Mclauren

Chapter 10.16 discusses Taylor Series, a method for representing functions as power series around a point 'a'. It outlines the process for determining coefficients using derivatives and introduces the Maclaurin Series as a special case when 'a' is zero. The chapter also provides examples of finding Taylor Series for various functions, emphasizing the importance of recognizing patterns in derivatives.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Chapter 10 : Series and Sequences Section 10.

16 : Taylor Series

10.16 Taylor Series

In the previous section we started looking at writing down a power series representation of a func-
tion. The problem with the approach in that section is that everything came down to needing to be
able to relate the function in some way to
1
1−x
and while there are many functions out there that can be related to this function there are many
more that simply can’t be related to this.
So, without taking anything away from the process we looked at in the previous section, what we
need to do is come up with a more general method for writing a power series representation for a
function.
So, for the time being, let’s make two assumptions. First, let’s assume that the function f (x) does
in fact have a power series representation about x = a,

X
f (x) = cn (x − a)n = c0 + c1 (x − a) + c2 (x − a)2 + c3 (x − a)3 + c4 (x − a)4 + · · ·
n=0

Next, we will need to assume that the function, f (x), has derivatives of every order and that we
can in fact find them all.
Now that we’ve assumed that a power series representation exists we need to determine what
the coefficients, cn , are. This is easier than it might at first appear to be. Let’s first just evaluate
everything at x = a. This gives,
f (a) = c0

So, all the terms except the first are zero and we now know what c0 is. Unfortunately, there isn’t
any other value of x that we can plug into the function that will allow us to quickly find any of the
other coefficients. However, if we take the derivative of the function (and its power series) then
plug in x = a we get,

f 0 (x) = c1 + 2c2 (x − a) + 3c3 (x − a)2 + 4c4 (x − a)3 + · · ·


f 0 (a) = c1

and we now know c1 .


Let’s continue with this idea and find the second derivative.

f 00 (x) = 2c2 + 3 (2) c3 (x − a) + 4 (3) c4 (x − a)2 + · · ·


f 00 (a) = 2c2

So, it looks like,


f 00 (a)
c2 =
2

© Paul Dawkins Calculus – 871 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Using the third derivative gives,

f 000 (x) = 3 (2) c3 + 4 (3) (2) c4 (x − a) + · · ·


f 000 (a)
f 000 (a) = 3 (2) c3 ⇒ c3 =
3 (2)

Using the fourth derivative gives,

f (4) (x) = 4 (3) (2) c4 + 5 (4) (3) (2) c5 (x − a) · · ·


f (4) (a)
f (4) (a) = 4 (3) (2) c4 ⇒ c4 =
4 (3) (2)

Hopefully by this time you’ve seen the pattern here. It looks like, in general, we’ve got the following
formula for the coefficients.
f (n) (a)
cn =
n!

This even works for n = 0 if you recall that 0! = 1 and define f (0) (x) = f (x).
So, provided a power series representation for the function f (x) about x = a exists the Taylor
Series for f (x) about x = a is,

Taylor Series

X f (n) (a)
f (x) = (x − a)n
n!
n=0
f 00 (a) f 000 (a)
= f (a) + f 0 (a) (x − a) + (x − a)2 + (x − a)3 + · · ·
2! 3!

If we use a = 0, so we are talking about the Taylor Series about x = 0, we call the series a
Maclaurin Series for f (x) or,

Maclaurin Series


X f (n) (0)
f (x) = xn
n!
n=0
f 00 (0) 2 f 000 (0) 3
= f (0) + f 0 (0) x + x + x + ···
2! 3!

Before working any examples of Taylor Series we first need to address the assumption that a Taylor
Series will in fact exist for a given function. Let’s start out with some notation and definitions that
we’ll need.

© Paul Dawkins Calculus – 872 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

To determine a condition that must be true in order for a Taylor series to exist for a function let’s
first define the nth degree Taylor polynomial of f (x) as,
n
X f (i) (a)
Tn (x) = (x − a)i
i!
i=0

Note that this really is a polynomial of degree at most n. If we were to write out the sum without the
summation notation this would clearly be an nth degree polynomial. We’ll see a nice application of
Taylor polynomials in the next section.
Notice as well that for the full Taylor Series,

X f (n) (a)
(x − a)n
n!
n=0

the nth degree Taylor polynomial is just the partial sum for the series.
Next, the remainder is defined to be,

Rn (x) = f (x) − Tn (x)

So, the remainder is really just the error between the function f (x) and the nth degree Taylor
polynomial for a given n.
With this definition note that we can then write the function as,

f (x) = Tn (x) + Rn (x)

We now have the following Theorem.

Theorem
Suppose that f (x) = Tn (x) + Rn (x). Then if,

lim Rn (x) = 0
n→∞

for |x − a| < R then,



X f (n) (a)
f (x) = (x − a)n
n!
n=0

on |x − a| < R.

In general, showing that


lim Rn (x) = 0
n→∞
is a somewhat difficult process and so we will be assuming that this can be done for some R in all
of the examples that we’ll be looking at.
Now let’s look at some examples.

© Paul Dawkins Calculus – 873 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Example 1
Find the Taylor Series for f (x) = ex about x = 0.

Solution
This is actually one of the easier Taylor Series that we’ll be asked to compute. To find the
Taylor Series for a function we will need to determine a general formula for f (n) (a). This is
one of the few functions where this is easy to do right from the start.
To get a formula for f (n) (0) all we need to do is recognize that,

f (n) (x) = ex n = 0, 1, 2, 3, . . .

and so,
f (n) (0) = e0 = 1 n = 0, 1, 2, 3, . . .

Therefore, the Taylor series for f (x) = ex about x = 0 is,


∞ ∞
X 1 n X xn
ex = x =
n! n!
n=0 n=0

Example 2
Find the Taylor Series for f (x) = e−x about x = 0.

Solution
There are two ways to do this problem. Both are fairly simple, however one of them requires
significantly less work. We’ll work both solutions since the longer one has some nice ideas
that we’ll see in other examples.
Solution 1
As with the first example we’ll need to get a formula for f (n) (0). However, unlike the first
one we’ve got a little more work to do. Let’s first take some derivatives and evaluate them

© Paul Dawkins Calculus – 874 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

at x = 0.

f (0) (x) = e−x f (0) (0) = 1


f (1) (x) = −e−x f (1) (0) = −1
f (2) (x) = e−x f (2) (0) = 1
f (3) (x) = −e−x f (3) (0) = −1
.. ..
. .
f (n) (x) = (−1)n e−x f (n) (0) = (−1)n n = 0, 1, 2, 3

After a couple of computations we were able to get general formulas for both f (n) (x) and
f (n) (0). We often won’t be able to get a general formula for f (n) (x) so don’t get too excited
about getting that formula. Also, as we will see it won’t always be easy to get a general
formula for f (n) (a).
So, in this case we’ve got general formulas so all we need to do is plug these into the Taylor
Series formula and be done with the problem.

X (−1)n xn
e−x =
n!
n=0

Solution 2
The previous solution wasn’t too bad and we often have to do things in that manner. How-
ever, in this case there is a much shorter solution method. In the previous section we used
series that we’ve already found to help us find a new series. Let’s do the same thing with this
one. We already know a Taylor Series for ex about x = 0 and in this case the only difference
is we’ve got a “−x” in the exponent instead of just an x.
So, all we need to do is replace the x in the Taylor Series that we found in the first example
with “−x”.
∞ ∞
X (−x)n X (−1)n xn
e−x = =
n! n!
n=0 n=0

This is a much shorter method of arriving at the same answer so don’t forget about using
previously computed series where possible (and allowed of course).

© Paul Dawkins Calculus – 875 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Example 3
2
Find the Taylor Series for f (x) = x4 e−3x about x = 0.

Solution
For this example, we will take advantage of the fact that we already have a Taylor Series for
ex about x = 0. In this example, unlike the previous example, doing this directly would be
significantly longer and more difficult.
∞ n
4 −3x2 4
X −3x2
x e =x
n!
n=0

X (−3)n x2n
= x4
n!
n=0

X (−3)n x2n+4
=
n!
n=0

To this point we’ve only looked at Taylor Series about x = 0 (also known as Maclaurin Series)
so let’s take a look at a Taylor Series that isn’t about x = 0. Also, we’ll pick on the exponential
function one more time since it makes some of the work easier. This will be the final Taylor Series
for exponentials in this section.

Example 4
Find the Taylor Series for f (x) = e−x about x = −4.

Solution
Finding a general formula for f (n) (−4) is fairly simple.

f (n) (x) = (−1)n e−x f (n) (−4) = (−1)n e4

The Taylor Series is then,



X (−1)n e4
e−x
= (x + 4)n
n!
n=0

Okay, we now need to work some examples that don’t involve the exponential function since these
will tend to require a little more work.

© Paul Dawkins Calculus – 876 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Example 5
Find the Taylor Series for f (x) = cos (x) about x = 0.

Solution
First, we’ll need to take some derivatives of the function and evaluate them at x = 0.

f (0) (x) = cos(x) f (0) (0) = 1


f (1) (x) = − sin(x) f (1) (0) = 0
f (2) (x) = − cos(x) f (2) (0) = −1
f (3) (x) = sin(x) f (3) (0) = 0
f (4) (x) = cos(x) f (4) (0) = 1
f (5) (x) = − sin(x) f (5) (0) = 0
f (6) (x) = − cos(x) f (6) (0) = −1
.. ..
. .

In this example, unlike the previous ones, there is not an easy formula for either the gen-
eral derivative or the evaluation of the derivative. However, there is a clear pattern to the
evaluations. So, let’s plug what we’ve got into the Taylor series and see what we get,

X f (n) (0)
cos(x) = xn
n!
n=0
f 00 (0) 2 f 000 (0) 3 f (4) (0) 4 f (5) (0) 5
= f (0) + f 0 (0) x + x + x + x + x + ···
2! 3! 4! 5!
1 1 1
= |{z} 0 − x2 + |{z}
1 + |{z} 0 + x4 + |{z}0 − x6 + · · ·
n=0 |2!{z }
n=1 |4!{z }
n=3 |6!{z }
n=5
n=2 n=4 n=6

So, we only pick up terms with even powers on the x’s. This doesn’t really help us to get
a general formula for the Taylor Series. However, let’s drop the zeroes and “renumber” the
terms as follows to see what we can get.
1 2 1 4 1 6
1 −
cos(x) = |{z} x + x − x +···
n=0 |2!{z } |4!{z } |6!{z }
n=1 n=2 n=3

By renumbering the terms as we did we can actually come up with a general formula for the
Taylor Series and here it is,

X (−1)n x2n
cos(x) =
(2n)!
n=0

© Paul Dawkins Calculus – 877 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

This idea of renumbering the series terms as we did in the previous example isn’t used all that
often, but occasionally is very useful. There is one more series where we need to do it so let’s take
a look at that so we can get one more example down of renumbering series terms.

Example 6
Find the Taylor Series for f (x) = sin (x) about x = 0.

Solution
As with the last example we’ll start off in the same manner.

f (0) (x) = sin(x) f (0) (0) = 0


f (1) (x) = cos(x) f (1) (0) = 1
f (2) (x) = − sin(x) f (2) (0) = 0
f (3) (x) = − cos(x) f (3) (0) = −1
f (4) (x) = sin(x) f (4) (0) = 0
f (5) (x) = cos(x) f (5) (0) = 1
f (6) (x) = − sin(x) f (6) (0) = 0
.. ..
. .

So, we get a similar pattern for this one. Let’s plug the numbers into the Taylor Series.

X f (n) (0)
sin(x) = xn
n!
n=0
1 1 1 1
= x − x3 + x5 − x7 + · · ·
1! 3! 5! 7!

In this case we only get terms that have an odd exponent on x and as with the last problem
once we ignore the zero terms there is a clear pattern and formula. So renumbering the
terms as we did in the previous example we get the following Taylor Series.

X (−1)n x2n+1
sin(x) =
(2n + 1)!
n=0

We really need to work another example or two in which f (x) isn’t about x = 0.

© Paul Dawkins Calculus – 878 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Example 7
Find the Taylor Series for f (x) = ln (x) about x = 2.

Solution
Here are the first few derivatives and the evaluations.

f (0) (x) = ln (x) f (0) (2) = ln 2


1 1
f (1) (x) = f (1) (2) =
x 2
1 1
f (2) (x) = − 2 f (2) (2) = − 2
x 2
(3) 2 (3) 2
f (x) = 3 f (2) = 3
x 2
2 (3) 2 (3)
f (4) (x) = − 4 f (4) (2) = − 4
x 2
2 (3) (4) 2 (3) (4)
f (5) (x) = 5
f (5) (2) = 5
x 2
.. ..
. .
(−1)n+1 (n − 1)! (−1)n+1 (n − 1)!
f (n) (x) = f (n) (2) = n = 1, 2, 3, . . .
xn 2n

Note that while we got a general formula here it doesn’t work for n = 0. This will happen on
occasion so don’t worry about it when it does.
In order to plug this into the Taylor Series formula we’ll need to strip out the n = 0 term
first.

X f (n) (2)
ln (x) = (x − 2)n
n!
n=0

X f (n) (2)
= f (2) + (x − 2)n
n!
n=1

X (−1)n+1 (n − 1)!
= ln (2) + (x − 2)n
n! 2n
n=1

X (−1)n+1
= ln (2) + (x − 2)n
n 2n
n=1

Notice that we simplified the factorials in this case. You should always simplify them if there
are more than one and it’s possible to simplify them.
Also, do not get excited about the term sitting in front of the series. Sometimes we need to
do that when we can’t get a general formula that will hold for all values of n.

© Paul Dawkins Calculus – 879 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Example 8
1
Find the Taylor Series for f (x) = about x = −1.
x2

Solution
Again, here are the derivatives and evaluations.
1 1
f (0) (x) = f (0) (−1) = =1
x2 (−1)2
2 2
f (1) (x) = − f (1) (−1) = − =2
x3 (−1)3
2 (3) 2 (3)
f (2) (x) = f (2) (−1) = = 2 (3)
x4 (−1)4
2 (3) (4) 2 (3) (4)
f (3) (x) = − f (3) (−1) = − = 2 (3) (4)
x5 (−1)5
.. ..
. .
(−1)n (n + 1)! (−1)n (n + 1)!
f (n) (x) = f (n) (−1) = = (n + 1)!
xn+2 (−1)n+2

Notice that all the negative signs will cancel out in the evaluation. Also, this formula will work
for all n, unlike the previous example.
Here is the Taylor Series for this function.

X f (n) (−1)
1
= (x + 1)n
x2 n!
n=0

X (n + 1)!
= (x + 1)n
n!
n=0
X∞
= (n + 1) (x + 1)n
n=0

Now, let’s work one of the easier examples in this section. The problem for most students is that it
may not appear to be that easy (or maybe it will appear to be too easy) at first glance.

© Paul Dawkins Calculus – 880 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Example 9
Find the Taylor Series for f (x) = x3 − 10x2 + 6 about x = 3.

Solution
Here are the derivatives for this problem.

f (0) (x) = x3 − 10x2 + 6 f (0) (3) = −57


f (1) (x) = 3x2 − 20x f (1) (3) = −33
f (2) (x) = 6x − 20 f (2) (3) = −2
f (3) (x) = 6 f (3) (3) = 6
.. ..
. .
f (n) (x) = 0 f (4) (3) = 0 n≥4

This Taylor series will terminate after n = 3. This will always happen when we are finding
the Taylor Series of a polynomial. Here is the Taylor Series for this one.

X f (n) (3)
3 2
x − 10x + 6 = (x − 3)n
n!
n=0
f 00 (3) f 000 (3)
= f (3) + f 0 (3) (x − 3) + (x − 3)2 + (x − 3)3 + 0
2! 3!
= −57 − 33 (x − 3) − (x − 3)2 + (x − 3)3

When finding the Taylor Series of a polynomial we don’t do any simplification of the right-
hand side. We leave it like it is. In fact, if we were to multiply everything out we just get back
to the original polynomial!
While it’s not apparent that writing the Taylor Series for a polynomial is useful there are times
where this needs to be done. The problem is that they are beyond the scope of this course
and so aren’t covered here. For example, there is one application to series in the field of
Differential Equations where this needs to be done on occasion.

So, we’ve seen quite a few examples of Taylor Series to this point and in all of them we were able
to find general formulas for the series. This won’t always be the case. To see an example of one
that doesn’t have a general formula check out the last example in the next section.
Before leaving this section there are three important Taylor Series that we’ve derived in this section
that we should summarize up in one place. In my class I will assume that you know these formulas
from this point on.

© Paul Dawkins Calculus – 881 –


Chapter 10 : Series and Sequences Section 10.16 : Taylor Series

Fact

X xn
ex =
n!
n=0

X (−1)n x2n
cos(x) =
(2n)!
n=0

X (−1)n x2n+1
sin(x) =
(2n + 1)!
n=0

© Paul Dawkins Calculus – 882 –

You might also like