# Finding Taylor Series

Now that we understand a little bit about when series converge, we will turn our attention to finding the series representations of some elementary functions.

Using one series to find another

when . We can use this series to find series representations of other functions. To begin, we can change the variable by a substitution; suppose that , then

This means we have produced the series for the function . This is pretty simple; however, it gets much more interesting if we consider operations such as integration:

Here we have produced a series representation for a new function. The demonstration below will show you how the Taylor polynomials provide a better and better approximation as the degree of the polynomial increases.

In fact, this demonstrates the use of Taylor series well: the function we have found is a fairly complicated function. For instance, it is difficult to evaluate without some kind of computational aid. However, the right hand side gives an expression which is relatively easy to calculate using the elementary operations of addition and multiplication. This was, in fact, the original use of Taylor series. We will find other uses as well.

For the series

we again need to be careful when considering the convergence properties. We obtained this by starting with the geometric series which only converged when so we certainly cannot expect the series for to converge when .

Notice that when , the left hand side is which is not defined. At the same time, the right hand side is

which is minus the harmonic series. Of course, we have seen that the harmonic series diverges so we cannot have the series converge when .

However, when , we have

This series is the alternating harmonic series and we have seen that it converges. This relationship shows us that, remarkably, the alternating harmonic series converges to . This can be explicitly seen in the demonstration below.

Finding the coefficients directly from the function

Suppose we have a function which we want to write as

We can use information about the function to directly determine the coefficients. To determine , let's evaluate the function and the series at .

This shows us that the first coefficient . In the same way, we can find the rest of the coefficients by differentiating:

Now if we evaluate at , we have

This means that if we can compute all the derivatives of the function , then we know the coefficients of the Taylor series as well.

Examples:

1. The beautiful fact about this function is that all its derivative are equal to as well. In particular, so that . This means that the coeficients of the Taylor series are given by

and so the Taylor series is given by

Now we will tell you two facts that are important here: first, this series converges for all values of . In fact, you have already seen this for when we talked about convergence. Here is the demonstration which shows you the first few terms of the series:

Since this series converges for all values of x, it actually defines a function of x given by evaluating the series. The second important fact is that the function defined by the series is in fact equal to ; that is,

It would require a bit of work to show you why this is true, but it's just enough for you to know this fact and that it is remarkable. You see, the Taylor series that we computed was based on the information about the function at a single point . Since the function is equal to its Taylor series at every point, that implies that the function is completely determined by what happens right around . In other words, the value of the function at is determined by the behaviour of the function around .

This is really quite incredible when you think about. In fact, "most" functions are not like this. If you were to just draw a random graph, there would probably be no relationship between what the function looks like at and the behaviour around . This means that is a very special function indeed and so we will give it a special name:

If a function agrees with its Taylor polynomial on a region , we say that f is analytic on this region.

Basically, most of the functions we have considered in this class---polynomials, exponentials, and trigonometric functions--- are analytic meaning that they agree with their Taylor series on some region. It is beyond the scope of this course to explain why this is, but the underlying reason is that they arise as solutions to simple differential equations. For instance, solves the differential equation and solves

2. We will determine the Taylor series for this function by finding its derivatives: notice that

and then the cycle repeats. This means that and then the pattern repeats. In other words,

Now it is a fact that is analytic for all x so that we have

3. To determine the Taylor series for , we can simply differentiate the series for .