Paul's Online Notes
Home / Calculus II / Series & Sequences / Taylor Series
Show Mobile Notice Show All Notes Hide All Notes
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

### Section 4-16 : Taylor Series

In the previous section we started looking at writing down a power series representation of a function. 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

$\frac{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\left( x \right)$$ does in fact have a power series representation about $$x = a$$,

$f\left( x \right) = \sum\limits_{n = 0}^\infty {{c_n}{{\left( {x - a} \right)}^n}} = {c_0} + {c_1}\left( {x - a} \right) + {c_2}{\left( {x - a} \right)^2} + {c_3}{\left( {x - a} \right)^3} + {c_4}{\left( {x - a} \right)^4} + \cdots$

Next, we will need to assume that the function, $$f\left( x \right)$$, 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, $${c_n}$$, are. This is easier than it might at first appear to be. Let’s first just evaluate everything at $$x = a$$. This gives,

$f\left( a \right) = {c_0}$

So, all the terms except the first are zero and we now know what $${c_0}$$ 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,

\begin{align*}f'\left( x \right) & = {c_1} + 2{c_2}\left( {x - a} \right) + 3{c_3}{\left( {x - a} \right)^2} + 4{c_4}{\left( {x - a} \right)^3} + \cdots \\ f'\left( a \right) & = {c_1}\end{align*}

and we now know $${c_1}$$.

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

\begin{align*}f''\left( x \right) & = 2{c_2} + 3\left( 2 \right){c_3}\left( {x - a} \right) + 4\left( 3 \right){c_4}{\left( {x - a} \right)^2} + \cdots \\ f''\left( a \right) & = 2{c_2}\end{align*}

So, it looks like,

${c_2} = \frac{{f''\left( a \right)}}{2}$

Using the third derivative gives,

\begin{align*}f'''\left( x \right) & = 3\left( 2 \right){c_3} + 4\left( 3 \right)\left( 2 \right){c_4}\left( {x - a} \right) + \cdots \\ f'''\left( a \right) & = 3\left( 2 \right){c_3}\hspace{0.75in} \Rightarrow \hspace{0.75in}{c_3} = \frac{{f'''\left( a \right)}}{{3\left( 2 \right)}}\end{align*}

Using the fourth derivative gives,

\begin{align*}{f^{\left( 4 \right)}}\left( x \right) & = 4\left( 3 \right)\left( 2 \right){c_4} + 5\left( 4 \right)\left( 3 \right)\left( 2 \right){c_5}\left( {x - a} \right) \cdots \\ {f^{\left( 4 \right)}}\left( a \right) & = 4\left( 3 \right)\left( 2 \right){c_4}\hspace{0.75in} \Rightarrow \hspace{0.75in}{c_4} = \frac{{{f^{\left( 4 \right)}}\left( a \right)}}{{4\left( 3 \right)\left( 2 \right)}}\end{align*}

Hopefully by this time you’ve seen the pattern here. It looks like, in general, we’ve got the following formula for the coefficients.

${c_n} = \frac{{{f^{\left( n \right)}}\left( a \right)}}{{n!}}$

This even works for $$n = 0$$ if you recall that $$0! = 1$$ and define $${f^{\left( 0 \right)}}\left( x \right) = f\left( x \right)$$.

So, provided a power series representation for the function $$f\left( x \right)$$ about $$x = a$$ exists the Taylor Series for $$f\left( x \right)$$ about $$x = a$$ is,

#### Taylor Series

\begin{align*}f\left( x \right) & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( a \right)}}{{n!}}{{\left( {x - a} \right)}^n}} \\ & = f\left( a \right) + f'\left( a \right)\left( {x - a} \right) + \frac{{f''\left( a \right)}}{{2!}}{\left( {x - a} \right)^2} + \frac{{f'''\left( a \right)}}{{3!}}{\left( {x - a} \right)^3} + \cdots \end{align*}

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\left( x \right)$$ or,

#### Maclaurin Series

\begin{align*}f\left( x \right) & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( 0 \right)}}{{n!}}{x^n}} \\ & = f\left( 0 \right) + f'\left( 0 \right)x + \frac{{f''\left( 0 \right)}}{{2!}}{x^2} + \frac{{f'''\left( 0 \right)}}{{3!}}{x^3} + \cdots \end{align*}

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.

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\left( x \right)$$ as,

${T_n}\left( x \right) = \sum\limits_{i = 0}^n {\frac{{{f^{\left( i \right)}}\left( a \right)}}{{i!}}{{\left( {x - a} \right)}^i}}$

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,

$\sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( a \right)}}{{n!}}{{\left( {x - a} \right)}^n}}$

the $$n$$th degree Taylor polynomial is just the partial sum for the series.

Next, the remainder is defined to be,

${R_n}\left( x \right) = f\left( x \right) - {T_n}\left( x \right)$

So, the remainder is really just the error between the function $$f\left( x \right)$$ and the $$n$$th degree Taylor polynomial for a given $$n$$.

With this definition note that we can then write the function as,

$f\left( x \right) = {T_n}\left( x \right) + {R_n}\left( x \right)$

We now have the following Theorem.

#### Theorem

Suppose that $$f\left( x \right) = {T_n}\left( x \right) + {R_n}\left( x \right)$$. Then if,

$\mathop {\lim }\limits_{n \to \infty } {R_n}\left( x \right) = 0$

for $$\left| {x - a} \right| < R$$ then,

$f\left( x \right) = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( a \right)}}{{n!}}{{\left( {x - a} \right)}^n}}$

on $$\left| {x - a} \right| < R$$.

In general, showing that $\mathop {\lim }\limits_{n \to \infty } {R_n}\left( x \right) = 0$ 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.

Example 1 Find the Taylor Series for $$f\left( x \right) = {{\bf{e}}^x}$$ about $$x = 0$$.
Show 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^{\left( n \right)}}\left( a \right)$$. This is one of the few functions where this is easy to do right from the start.

To get a formula for $${f^{\left( n \right)}}\left( 0 \right)$$ all we need to do is recognize that,

${f^{\left( n \right)}}\left( x \right) = {{\bf{e}}^x}\hspace{0.5in}n = 0,1,2,3, \ldots$

and so,

${f^{\left( n \right)}}\left( 0 \right) = {{\bf{e}}^0} = 1\hspace{0.5in}n = 0,1,2,3, \ldots$

Therefore, the Taylor series for $$f\left( x \right) = {{\bf{e}}^x}$$ about $$x = 0$$ is,

${{\bf{e}}^x} = \sum\limits_{n = 0}^\infty {\frac{1}{{n!}}{x^n}} = \sum\limits_{n = 0}^\infty {\frac{{{x^n}}}{{n!}}}$
Example 2 Find the Taylor Series for $$f\left( x \right) = {{\bf{e}}^{ - x}}$$ about $$x = 0$$.
Show 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^{\left( n \right)}}\left( 0 \right)$$. However, unlike the first one we’ve got a little more work to do. Let’s first take some derivatives and evaluate them at $$x = 0$$.

\begin{align*}{f^{\left( 0 \right)}}\left( x \right) & = {{\bf{e}}^{ - x}} & \hspace{0.5in} &{f^{\left( 0 \right)}}\left( 0 \right) = 1\\ {f^{\left( 1 \right)}}\left( x \right) & = - {{\bf{e}}^{ - x}} & \hspace{0.5in} & {f^{\left( 1 \right)}}\left( 0 \right) = - 1\\ {f^{\left( 2 \right)}}\left( x \right) & = {{\bf{e}}^{ - x}} & \hspace{0.5in} & {f^{\left( 2 \right)}}\left( 0 \right) = 1\\ {f^{\left( 3 \right)}}\left( x \right) & = - {{\bf{e}}^{ - x}} & \hspace{0.5in} & {f^{\left( 3 \right)}}\left( 0 \right) = - 1\\ \vdots \,\,\,\,\,\,\,\,\,\,& & \hspace{0.5in} & \,\,\,\,\,\,\, \vdots \\ {f^{\left( n \right)}}\left( x \right) & = {\left( { - 1} \right)^n}{{\bf{e}}^{ - x}} & \hspace{0.5in}& {f^{\left( n \right)}}\left( 0 \right) = {\left( { - 1} \right)^n}\hspace{0.25in}n = 0,1,2,3 \end{align*}

After a couple of computations we were able to get general formulas for both $${f^{\left( n \right)}}\left( x \right)$$ and $${f^{\left( n \right)}}\left( 0 \right)$$. We often won’t be able to get a general formula for $${f^{\left( n \right)}}\left( x \right)$$ 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^{\left( n \right)}}\left( a \right)$$.

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.

${{\bf{e}}^{ - x}} = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{x^n}}}{{n!}}}$

Solution 2
The previous solution wasn’t too bad and we often have to do things in that manner. However, 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 $${{\bf{e}}^x}$$ 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$$”.

${{\bf{e}}^{ - x}} = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - x} \right)}^n}}}{{n!}}} = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{x^n}}}{{n!}}}$

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

Example 3 Find the Taylor Series for $$f\left( x \right) = {x^4}{{\bf{e}}^{ - 3{x^2}}}$$ about $$x = 0$$.
Show Solution

For this example, we will take advantage of the fact that we already have a Taylor Series for $${{\bf{e}}^x}$$ about $$x = 0$$. In this example, unlike the previous example, doing this directly would be significantly longer and more difficult.

\begin{align*}{x^4}{{\bf{e}}^{ - 3{x^2}}} & = {x^4}\sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 3{x^2}} \right)}^n}}}{{n!}}} \\ & = {x^4}\sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 3} \right)}^n}{x^{2n}}}}{{n!}}} \\ & = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 3} \right)}^n}{x^{2n + 4}}}}{{n!}}} \end{align*}

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\left( x \right) = {{\bf{e}}^{ - x}}$$ about $$x = - 4$$.
Show Solution

Finding a general formula for $${f^{\left( n \right)}}\left( { - 4} \right)$$ is fairly simple.

${f^{\left( n \right)}}\left( x \right) = {\left( { - 1} \right)^n}{{\bf{e}}^{ - x}}\hspace{0.5in}{f^{\left( n \right)}}\left( { - 4} \right) = {\left( { - 1} \right)^n}{{\bf{e}}^4}$

The Taylor Series is then,

${{\bf{e}}^{ - x}} = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{{\bf{e}}^4}}}{{n!}}} {\left( {x + 4} \right)^n}$

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.

Example 5 Find the Taylor Series for $$f\left( x \right) = \cos \left( x \right)$$ about $$x = 0$$.
Show Solution

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

\begin{align*}{f^{\left( 0 \right)}}\left( x \right) & = \cos x & \hspace{0.5in} & {f^{\left( 0 \right)}}\left( 0 \right) = 1\\ {f^{\left( 1 \right)}}\left( x \right) & = - \sin x & \hspace{0.5in} & {f^{\left( 1 \right)}}\left( 0 \right) = 0\\ {f^{\left( 2 \right)}}\left( x \right) & = - \cos x & \hspace{0.5in} & {f^{\left( 2 \right)}}\left( 0 \right) = - 1\\ {f^{\left( 3 \right)}}\left( x \right) & = \sin x & \hspace{0.5in} & {f^{\left( 3 \right)}}\left( 0 \right) = 0\\ {f^{\left( 4 \right)}}\left( x \right) & = \cos x & \hspace{0.5in} & {f^{\left( 4 \right)}}\left( 0 \right) = 1\\ {f^{\left( 5 \right)}}\left( x \right) & = - \sin x & \hspace{0.5in} & {f^{\left( 5 \right)}}\left( 0 \right) = 0\\ {f^{\left( 6 \right)}}\left( x \right) & = - \cos x & \hspace{0.5in} & {f^{\left( 6 \right)}}\left( 0 \right) = - 1\\ \vdots \,\,\,\,\,\,\,\,\,\, & & \hspace{0.5in} & \,\,\,\,\,\,\, \vdots \end{align*}

In this example, unlike the previous ones, there is not an easy formula for either the general 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,

\begin{align*}\cos x & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( 0 \right)}}{{n!}}{x^n}} \\ & = f\left( 0 \right) + f'\left( 0 \right)x + \frac{{f''\left( 0 \right)}}{{2!}}{x^2} + \frac{{f'''\left( 0 \right)}}{{3!}}{x^3} + \frac{{{f^{\left( 4 \right)}}\left( 0 \right)}}{{4!}}{x^4} + \frac{{{f^{\left( 5 \right)}}\left( 0 \right)}}{{5!}}{x^5} + \cdots \\ & = \underbrace {\,\,1\,\,}_{n = 0} + \underbrace {\,0\,}_{n = 1} - \underbrace {\frac{1}{{2!}}{x^2}}_{n = 2} + \underbrace {\,0\,}_{n = 3} + \underbrace {\frac{1}{{4!}}{x^4}}_{n = 4} + \underbrace {\,0\,}_{n = 5} - \underbrace {\frac{1}{{6!}}{x^6}}_{n = 6} + \cdots \end{align*}

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.

$\cos x = \underbrace {\,\,1\,\,}_{n = 0} - \underbrace {\frac{1}{{2!}}{x^2}}_{n = 1} + \underbrace {\frac{1}{{4!}}{x^4}}_{n = 2} - \underbrace {\frac{1}{{6!}}{x^6}}_{n = 3} + \cdots$

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

$\cos x = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{x^{2n}}}}{{\left( {2n} \right)!}}}$

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\left( x \right) = \sin \left( x \right)$$ about $$x = 0$$.
Show Solution

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

\begin{align*}{f^{\left( 0 \right)}}\left( x \right) & = \sin x & \hspace{0.5in} & {f^{\left( 0 \right)}}\left( 0 \right) = 0\\ {f^{\left( 1 \right)}}\left( x \right) & = \cos x & \hspace{0.5in} & {f^{\left( 1 \right)}}\left( 0 \right) = 1\\ {f^{\left( 2 \right)}}\left( x \right) & = - \sin x & \hspace{0.5in} & {f^{\left( 2 \right)}}\left( 0 \right) = 0\\ {f^{\left( 3 \right)}}\left( x \right) & = - \cos x & \hspace{0.5in} & {f^{\left( 3 \right)}}\left( 0 \right) = - 1\\ {f^{\left( 4 \right)}}\left( x \right) & = \sin x & \hspace{0.5in} & {f^{\left( 4 \right)}}\left( 0 \right) = 0\\ {f^{\left( 5 \right)}}\left( x \right) & = \cos x & \hspace{0.5in} & {f^{\left( 5 \right)}}\left( 0 \right) = 1\\ {f^{\left( 6 \right)}}\left( x \right) & = - \sin x & \hspace{0.5in} & {f^{\left( 6 \right)}}\left( 0 \right) = 0\\ \vdots \,\,\,\,\,\,\,\,\,\, & & \hspace{0.5in} & \,\,\,\,\,\,\, \vdots \end{align*}

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

\begin{align*}\sin x & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( 0 \right)}}{{n!}}{x^n}} \\ & = \frac{1}{{1!}}x - \frac{1}{{3!}}{x^3} + \frac{1}{{5!}}{x^5} - \frac{1}{{7!}}{x^7} + \cdots \end{align*}

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.

$\sin x = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{x^{2n + 1}}}}{{\left( {2n + 1} \right)!}}}$

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

Example 7 Find the Taylor Series for $$f\left( x \right) = \ln \left( x \right)$$ about $$x = 2$$.
Show Solution

Here are the first few derivatives and the evaluations.

\begin{align*}{f^{\left( 0 \right)}}\left( x \right) & = \ln \left( x \right) & \hspace{0.5in} & {f^{\left( 0 \right)}}\left( 2 \right) = \ln 2\\ {f^{\left( 1 \right)}}\left( x \right) & = \frac{1}{x} & \hspace{0.5in} & {f^{\left( 1 \right)}}\left( 2 \right) = \frac{1}{2}\\ {f^{\left( 2 \right)}}\left( x \right) & = - \frac{1}{{{x^2}}} & \hspace{0.5in} & {f^{\left( 2 \right)}}\left( 2 \right) = - \frac{1}{{{2^2}}}\\ {f^{\left( 3 \right)}}\left( x \right) & = \frac{2}{{{x^3}}} & \hspace{0.5in} & {f^{\left( 3 \right)}}\left( 2 \right) = \frac{2}{{{2^3}}}\\ {f^{\left( 4 \right)}}\left( x \right) & = - \frac{{2\left( 3 \right)}}{{{x^4}}} & \hspace{0.5in} & {f^{\left( 4 \right)}}\left( 2 \right) = - \frac{{2\left( 3 \right)}}{{{2^4}}}\\ {f^{\left( 5 \right)}}\left( x \right) & = \frac{{2\left( 3 \right)\left( 4 \right)}}{{{x^5}}} & \hspace{0.5in} & {f^{\left( 5 \right)}}\left( 2 \right) = \frac{{2\left( 3 \right)\left( 4 \right)}}{{{2^5}}}\\ \vdots \,\,\,\,\,\,\,\,\,\, & & \hspace{0.5in} & \,\,\,\,\,\,\, \vdots \\ {f^{\left( n \right)}}\left( x \right) & = \frac{{{{\left( { - 1} \right)}^{n + 1}}\left( {n - 1} \right)!}}{{{x^n}}} & \hspace{0.5in} & {f^{\left( n \right)}}\left( 2 \right) = \frac{{{{\left( { - 1} \right)}^{n + 1}}\left( {n - 1} \right)!}}{{{2^n}}}\hspace{0.25in}n = 1,2,3, \ldots \end{align*}

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.

\begin{align*}\ln \left( x \right) & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( 2 \right)}}{{n!}}{{\left( {x - 2} \right)}^n}} \\ & = f\left( 2 \right) + \sum\limits_{n = 1}^\infty {\frac{{{f^{\left( n \right)}}\left( 2 \right)}}{{n!}}{{\left( {x - 2} \right)}^n}} \\ & = \ln \left( 2 \right) + \sum\limits_{n = 1}^\infty {\frac{{{{\left( { - 1} \right)}^{n + 1}}\left( {n - 1} \right)!}}{{n!\,\,\,\,{2^n}}}{{\left( {x - 2} \right)}^n}} \\ & = \ln \left( 2 \right) + \sum\limits_{n = 1}^\infty {\frac{{{{\left( { - 1} \right)}^{n + 1}}}}{{n\,{2^n}}}{{\left( {x - 2} \right)}^n}} \end{align*}

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$$.

Example 8 Find the Taylor Series for $$\displaystyle f\left( x \right) = \frac{1}{{{x^2}}}$$ about $$x = - 1$$.
Show Solution

Again, here are the derivatives and evaluations.

\begin{align*}{f^{\left( 0 \right)}}\left( x \right) & = \frac{1}{{{x^2}}} & \hspace{0.5in} & {f^{\left( 0 \right)}}\left( { - 1} \right) = \frac{1}{{{{\left( { - 1} \right)}^2}}} = 1\\ {f^{\left( 1 \right)}}\left( x \right) & = - \frac{2}{{{x^3}}} & \hspace{0.5in} & {f^{\left( 1 \right)}}\left( { - 1} \right) = - \frac{2}{{{{\left( { - 1} \right)}^3}}} = 2\\ {f^{\left( 2 \right)}}\left( x \right) & = \frac{{2\left( 3 \right)}}{{{x^4}}} & \hspace{0.5in} & {f^{\left( 2 \right)}}\left( { - 1} \right) = \frac{{2\left( 3 \right)}}{{{{\left( { - 1} \right)}^4}}} = 2\left( 3 \right)\\ {f^{\left( 3 \right)}}\left( x \right) & = - \frac{{2\left( 3 \right)\left( 4 \right)}}{{{x^5}}} & \hspace{0.5in} & {f^{\left( 3 \right)}}\left( { - 1} \right) = - \frac{{2\left( 3 \right)\left( 4 \right)}}{{{{\left( { - 1} \right)}^5}}} = 2\left( 3 \right)\left( 4 \right)\\ \vdots \,\,\,\,\,\,\,\,\,\, & & \hspace{0.5in} & \,\,\,\,\,\,\, \vdots \\ {f^{\left( n \right)}}\left( x \right) & = \frac{{{{\left( { - 1} \right)}^n}\left( {n + 1} \right)!}}{{{x^{n + 2}}}} & \hspace{0.5in} & {f^{\left( n \right)}}\left( { - 1} \right) = \frac{{{{\left( { - 1} \right)}^n}\left( {n + 1} \right)!}}{{{{\left( { - 1} \right)}^{n + 2}}}} = \left( {n + 1} \right)!\end{align*}

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.

\begin{align*}\frac{1}{{{x^2}}} & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( { - 1} \right)}}{{n!}}{{\left( {x + 1} \right)}^n}} \\ & = \sum\limits_{n = 0}^\infty {\frac{{\left( {n + 1} \right)!}}{{n!}}{{\left( {x + 1} \right)}^n}} \\ & = \sum\limits_{n = 0}^\infty {\left( {n + 1} \right){{\left( {x + 1} \right)}^n}} \end{align*}

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.

Example 9 Find the Taylor Series for $$f\left( x \right) = {x^3} - 10{x^2} + 6$$ about $$x = 3$$.
Show Solution

Here are the derivatives for this problem.

\begin{align*}{f^{\left( 0 \right)}}\left( x \right) & = {x^3} - 10{x^2} + 6 & \hspace{0.5in} & {f^{\left( 0 \right)}}\left( 3 \right) = - 57\\ {f^{\left( 1 \right)}}\left( x \right) & = 3{x^2} - 20x & \hspace{0.5in} & {f^{\left( 1 \right)}}\left( 3 \right) = - 33\\ {f^{\left( 2 \right)}}\left( x \right) & = 6x - 20 & \hspace{0.5in} & {f^{\left( 2 \right)}}\left( 3 \right) = - 2\\ {f^{\left( 3 \right)}}\left( x \right) & = 6 & \hspace{0.5in} & {f^{\left( 3 \right)}}\left( 3 \right) = 6\\ {f^{\left( n \right)}}\left( x \right) & = 0 & \hspace{0.5in} & {f^{\left( 4 \right)}}\left( 3 \right) = 0\hspace{0.25in}n \ge 4\end{align*}

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.

\begin{align*}{x^3} - 10{x^2} + 6 & = \sum\limits_{n = 0}^\infty {\frac{{{f^{\left( n \right)}}\left( 3 \right)}}{{n!}}{{\left( {x - 3} \right)}^n}} \\ & = f\left( 3 \right) + f'\left( 3 \right)\left( {x - 3} \right) + \frac{{f''\left( 3 \right)}}{{2!}}{\left( {x - 3} \right)^2} + \frac{{f'''\left( 3 \right)}}{{3!}}{\left( {x - 3} \right)^3} + 0\\ & = - 57 - 33\left( {x - 3} \right) - {\left( {x - 3} \right)^2} + {\left( {x - 3} \right)^3}\end{align*}

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.

\begin{align*}{{\bf{e}}^x} & = \sum\limits_{n = 0}^\infty {\frac{{{x^n}}}{{n!}}} \\ \cos x & = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{x^{2n}}}}{{\left( {2n} \right)!}}} \\ \sin x & = \sum\limits_{n = 0}^\infty {\frac{{{{\left( { - 1} \right)}^n}{x^{2n + 1}}}}{{\left( {2n + 1} \right)!}}} \end{align*}