The Simplest Way to Understand the Concept of Taylor Series Expansion

Video Available


Hello. I am going to give you the simplest way to understand the concept of Taylor series expansion, or simply Taylor series.

With this video and text, I believe you will understand the concept of Taylor series intuitively.


In engineering and science, we deal with waveforms. A waveform may represent a characteristic of a phenomenon with respect to a certain variable, or variation of a quantity with the evolution of a certain variable for instance time.

In order to apply a mathematical method to a given waveform, the waveform must be represented by a simple mathematical expression. If a given waveform is represented by a complicated equation or by just numerical data, then applying a certain mathematical method would be quite complicated.


For representing a given waveform by a simple mathematical expression, note that there are basically three different categories. If you are interested in local behavior of a waveform, you should use Taylor series. Local behavior means if the quantity goes up or goes down from a local point. If this is the case, you use Taylor series.

If a given waveform is periodic and you want to capture the entire behavior of the waveform, then use Fourier series. If a given waveform is single-shot and you want to capture the entire behavior of the waveform, then use Fourier or Laplace transform.

So, when you want to describe local behavior of a given waveform, then you should use Taylor series.


For example, consider a waveform with respect to time. It is written as . Let's assume that you are interested in the local behavior of the waveform at .

Taylor series assumes that can be represented by the sum of all powers of , or the power series expansion with respect to .

Why? This is not the point to ask why. This is Taylor series. So, Taylor series tries to capture the local behavior of around by representing or approximating the given waveform by the sum of power series. Note that it tries to capture the local behavior only. Taylor series, in this case, focuses on the vicinity of only and does not care the behavior far from .


In order to represent around by the sum of power series, you want to identify the values of the coefficients so that the right-hand side of the equation well approximates the behavior of around .

How can we identify those numbers? Taylor series assumes that you know the value of at , the value of the first derivative of at , the value of the second derivative of at , the value of the third derivative of at , and so on. So, let's assume somehow we know the value of the waveform and the values of its derivatives at . With these values, let's identify the values of the coefficients of the power series. Don't worry. The identification is quite easy.


Ok, now we are trying to approximate a given waveform by this function.

Substituting into this function gives

We get the value of , which is the value of the given waveform at .


Then, let's take the derivative of .

and substituting into this equation gives

We get the value of , which is the value of the first derivative at .


Let's take the derivative of which is the second derivative of

If you substitute into this equation, then you get

Yes, we can obtain the value of from the value of the second derivative of at .


If we further take the derivative of which is the third derivative of , then we get

Substituting into this equation gives

We obtain the value of from the value of the third derivative of at .


So, as you may have figured out, the general term of the power series coefficients is obtained in this form.


Now, we have identified the values of all coefficients in the power series expansion only from the information at . So, the power series expansion

should represent the local behavior of the given waveform well in the vicinity of .

In actual applications, we cannot take infinite terms, so we use only the first few terms. Such Taylor series approximation is quite accurate in the vicinity of , but its accuracy should become worse as you move away from .


Although we have been working on a waveform with respect to time, the variable does not have to be time. It can be any variable, distance for instance. So, let's write the Taylor series formula again for .

where

We have been focusing on . This is actually a special case of Taylor series. This special case is called Maclaurin series.

In order to focus on an arbitrary point as a general case, we replace in the right-hand side of the equation with , then we get the general Taylor series formula.

where

This looks a bit more complicated when compared with the Maclaurin series formula. But, if you notice the fact that your are now focusing on instead of , this equation is essentially the same as that of Maclaurin series.

We are simply shifting the origin to . In the Maclaurin case, means a small excursion from . In the Taylor case, on the other hand, means a small excursion from . That's it! Don't be confused by the complexity of the equation.


Finally, let's look at some examples. I take sine and cosine functions as examples. This is a simple sine function.

Let's calculate its Taylor series coefficients up to the third order. The constant term is

The first-order term is

The second-order term is

The third-order term is

So, the Taylor series expansion of the sine function up to the third-order term is

Look at the figure. The Taylor series expansion up to the first-order term is a straight line and simply represents the slope of at the origin. If you include up to the third-order term, then the Taylor series expansion better approximates the sine function in a wider region. The more terms you include, the better the Taylor series expansion approximates the given sine function in the wider range. If you include infinite terms, the Taylor series expansion should match the given sine function.

Taylor series expansion of sin(x).

Next one is a simple cosine function.

Let's calculate its Taylor series coefficients up to the third order in the same way as the previous example. The constant term is

The first-order term is

The second-order term is

The third-order term is

So, the Taylor series expansion of the cosine function up to the third-order term, actually up to the second-order term since the third-order term is zero, is

Look at the figure. The Taylor series expansion up to the zeroth-order term is constant and simply represents the value at . If you include up to the second-order term, then the Taylor series expansion better approximates the cosine function in a wider region. Of course, the more terms you include, the better the Taylor series expansion approximates the given cosine function in the wider range. If you include infinite terms, the Taylor series expansion should match the given cosine function.

Taylor series expansion of cos(x).

Finally, you should note the following points.

Since the sine function is an odd function, which has point symmetry about the origin, its Taylor series consists only of odd-order terms. On the other hand, since the cosine function is an even function, which has line symmetry about the vertical axis, its Taylor series consists only of even-order terms. Actually, this is the reason why the former is called an odd function and the latter is called an even function.

When you actually apply Taylor series expansion in your scientific or engineering work, the first two terms should sufficient in most cases. Since you focus on local behavior of a function at a certain point, you are interested in its behavior only in the vicinity of that point. So, two terms should well represent the local behavior. As we saw in the two examples, the two terms well represent the local behaviors.


I hope you now have reached real understanding of Taylor series. Thank you.

Comments

Recent Articles

Orthogonality is the Key to Understand Fourier Series Expansion

Understanding Euler's Formula through its Derivation