Lesson Video: Taylor Series Mathematics

In this video, we will learn how to find Taylor series of a function and find the radius of convergence of the series.

16:41

Video Transcript

In this video, we’ll learn how to find a Taylor representation of an arbitrary function by using the Taylor series expansion. We’ll consider how we can find the radius of convergence of these series as well as intervals of convergence, primarily using the ratio test for convergence. We begin by supposing that 𝑓 is a function that can be represented by a power series 𝑓 of π‘₯ equals 𝑐 zero plus 𝑐 one π‘₯ minus π‘Ž plus 𝑐 two π‘₯ minus π‘Ž all squared and so on, where the absolute value of π‘₯ minus π‘Ž is less than some value capital 𝑅. We can begin to work out what 𝑐𝑛, the coefficients, must be in terms of 𝑓. For example, if we let π‘₯ be equal to π‘Ž, we see that π‘₯ minus π‘Ž becomes π‘Ž minus π‘Ž, which is zero. And then we find that 𝑓 of π‘Ž equals 𝑐 zero.

Okay, well, that’s great. But there’s nothing else we can do with this function as it stands to help us represent the other coefficients in terms of 𝑓. So instead, we differentiate our function 𝑓 with respect to π‘₯, remembering that we can do so term by term. And 𝑐 zero is a constant so its derivative is zero. Then the derivative of 𝑐 one times π‘₯ minus π‘Ž is just 𝑐 one. And we could achieve this result by using the product rule or distributing our parentheses and differentiating as normal. Similarly, we find the derivative of 𝑐 two times π‘₯ minus π‘Ž all squared to be two times 𝑐 two times π‘₯ minus π‘Ž. The derivative of 𝑐 three times π‘₯ minus π‘Ž all cubed is three 𝑐 three times π‘₯ minus π‘Ž all squared and so on.

Once again, we let π‘₯ be equal to π‘Ž. And this time we obtain 𝑓 prime of π‘Ž to be equal to 𝑐 one. Now, it follows that we can repeat this process. We differentiate our function once again with respect to π‘₯. 𝑓 double prime of π‘₯ is two 𝑐 two plus two times 𝑐 three times π‘₯ minus π‘Ž plus another term, three times four 𝑐 four times π‘₯ minus π‘Ž all squared and so on. And this time when we let π‘₯ be equal to π‘Ž we find that 𝑓 double prime of π‘Ž is equal to two 𝑐 two. We’ll repeat this one more time to help us establish a pattern. The third derivative is two times three 𝑐 three plus two times three times four 𝑐 four times π‘₯ minus π‘Ž plus three times four times five 𝑐 five times π‘₯ minus π‘Ž all squared and so on. And letting π‘₯ be equal to π‘Ž now, we see that 𝑓 triple prime of π‘Ž, the third derivative of our function with respect to π‘₯, evaluated at π‘₯ is equal to π‘Ž is two times three times 𝑐 three, which we could write alternatively as three factorial 𝑐 three.

Now, if we were to continue to different and let π‘₯ be equal to π‘Ž, we would find that the 𝑛th derivative of our function evaluated at π‘Ž is two times three times four times five, all the way up to 𝑛 lots of 𝑐𝑛. In other words, it’s 𝑛 factorial times 𝑐𝑛. We’re going to solve the equation the 𝑛th derivative of 𝑓 evaluated at π‘Ž equals 𝑛 factorial 𝑐𝑛 for 𝑐𝑛. When we do, we find that 𝑐𝑛 is equal to the 𝑛th derivative of 𝑓 evaluated at π‘Ž over 𝑛 factorial. It’s useful to remember that this formula does remain valid even if 𝑛 is equal to zero, since zero factorial is just one and the zeroth derivative of 𝑓 is simply 𝑓. So we obtain our first theorem. If 𝑓 has a power series representation at π‘Ž ⁠— that is, if 𝑓 of π‘₯ is equal to the sum of 𝑐𝑛 times π‘₯ minus π‘Ž to the 𝑛th power for values of 𝑛 between zero and infinity ⁠— where the modules of π‘₯ minus π‘Ž is less than sum capital 𝑅. Then its coefficients are given by the formula 𝑐𝑛 equals the 𝑛th derivative of 𝑓 evaluated at π‘Ž over 𝑛 factorial.

We’re going to substitute this back into our original series. We find that if 𝑓 has a power series expansion at π‘Ž, then the Taylor series of the function 𝑓 at π‘Ž or about π‘Ž is the sum of the 𝑛th derivative of 𝑓 evaluated at π‘Ž over 𝑛 factorial times π‘₯ minus π‘Ž to the 𝑛th power for values of 𝑛 between zero and infinity. And this can alternatively be written as 𝑓 of π‘Ž plus 𝑓 prime of π‘Ž over one factorial times π‘₯ minus π‘Ž plus 𝑓 double prime of π‘Ž over two factorial times π‘₯ minus π‘Ž all squared and so on. It’s useful to know that if π‘Ž is equal to zero, we do have a special case that has its own name. It’s called the Maclaurin series. And we won’t be investigating its properties in this video. Let’s now have a look at a couple of examples of how to apply the formula for the Taylor series.

What are the first four terms of the Taylor series of the function 𝑓 of π‘₯ equals the square root of π‘₯ about π‘₯ equals four?

We recall that the Taylor series of a function 𝑓 about π‘Ž is given by the sum of the 𝑛th derivative of 𝑓 evaluated at π‘Ž of 𝑛 factorial times π‘₯ minus π‘Ž to the 𝑛th power for values of 𝑛 between zero and infinity. So what do we know about our function? It’s given as 𝑓 of π‘₯ equals the square root of π‘₯, which we might alternatively say is π‘₯ to the power of one-half. We want to find the Taylor series about π‘₯ equals four, so we’re going to let π‘Ž be equal to four. Using the second form of the Taylor series, we find that 𝑓 of π‘₯ is equal to 𝑓 of four plus 𝑓 prime of four over one factorial times π‘₯ minus four plus 𝑓 double prime of four over two factorial times π‘₯ minus four squared plus 𝑓 triple prime of four over three factorial times π‘₯ minus four cubed.

We can work out 𝑓 of four fairly easily. We’ll substitute four into our original function. But to be able to work out 𝑓 prime of four, 𝑓 double prime of four, and 𝑓 triple prime of four, we’re going to need to differentiate our function 𝑓 of π‘₯ with respect to π‘₯ three times. We said that 𝑓 of π‘₯ was equal to π‘₯ to the power of one-half and we recall that to differentiate a polynomial term, we multiply the entire term by the exponent and then reduce that exponent by one. This means 𝑓 prime of π‘₯, the first derivative of 𝑓 is a half π‘₯ to the power of negative one-half. 𝑓 double prime of π‘₯ is negative a half times a half π‘₯ to the power of negative three over two, which simplifies to negative one-quarter π‘₯ to the power of negative three over two. Finally, 𝑓 triple prime of π‘₯ is negative three over two times negative a quarter π‘₯ to the power of negative five over two, which is three-eighths π‘₯ to the power of negative five over two.

We’re now going to substitute π‘₯ equals four into our functions for 𝑓 of π‘₯, 𝑓 prime of π‘₯, 𝑓 double prime of π‘₯, and 𝑓 triple prime of π‘₯. 𝑓 of four is the square root of four; it’s simply two. 𝑓 prime of four is a half times four to the power of negative one-half which is a quarter. 𝑓 double prime of four is negative one-quarter times four to the power of negative three over two, which is negative one over 32. And 𝑓 triple prime of four is three-eighths times four to the power of negative five over two, which is three over 256. Our final job is simply to substitute these into our expansion. When we do, we find the first four terms of the Taylor series of the function 𝑓 of π‘₯ equals the square root of π‘₯ about π‘₯ equals four to be two plus a quarter times π‘₯ minus four minus one over 64 times π‘₯ minus four squared plus one over 512 times π‘₯ minus four cubed.

We’ll have a look at another example of this type.

Consider the function 𝑓 of π‘₯ equals cos of π‘₯. Find the Taylor series expansion of 𝑓 of π‘₯ equals cos of π‘₯ at π‘₯ equals πœ‹ and write the Taylor series expansion of 𝑓 of π‘₯ in sigma notation.

And we recall that the Taylor series expansion of a function about π‘₯ equals π‘Ž is given by 𝑓 of π‘₯ equals 𝑓 of π‘Ž plus 𝑓 prime of π‘Ž over one factorial times π‘₯ minus π‘Ž plus 𝑓 double prime of π‘Ž over two factorial times π‘₯ minus π‘Ž all squared and so on. In this question, our function is cos of π‘₯. And we’re looking to find the Taylor series expansion at π‘₯ equals πœ‹. So we’re going to let π‘Ž be equal to πœ‹. And so we see that 𝑓 of π‘₯ here is equal to 𝑓 of πœ‹ plus 𝑓 prime of πœ‹ over one factorial times π‘₯ minus πœ‹ and so on. Now, we can quite easily evaluate 𝑓 of πœ‹. We would substitute πœ‹ into the function cos of π‘₯. But what about 𝑓 prime of πœ‹, 𝑓 double prime of πœ‹, and so on?

Well, we’re going to differentiate our function with respect to π‘₯. We might recall the first derivative of cos of π‘₯ to be negative sin of π‘₯. Then to get the second derivative, we differentiate negative sin π‘₯ with respect to π‘₯ and we get negative cos π‘₯. Differentiating once more, we find that 𝑓 triple prime of π‘₯ is sin π‘₯. And in fact, we’ll repeat this process one more time because when we differentiate sin π‘₯, we get cos π‘₯ again. And you might notice, we have a cycle. The fifth derivative of 𝑓 will be negative sin π‘₯, the sixth derivative will be negative cos π‘₯, and so on. And let’s use all of these to evaluate 𝑓 of πœ‹, 𝑓 prime of πœ‹, 𝑓 double prime of πœ‹, and so on and look for a pattern. 𝑓 of πœ‹ is cos πœ‹, which is negative one. 𝑓 prime of πœ‹ is negative sin πœ‹, which is zero. 𝑓 double prime of πœ‹ is negative cos πœ‹, which is one. And 𝑓 triple prime of πœ‹ is sin πœ‹, which is once again zero.

It, of course, follows that the fourth derivative of πœ‹ will be cos of πœ‹ again, which is negative one. Let’s substitute all of these back into our Taylor series expansion. Now of course, every other term is going to be equal to zero as we’ve seen. And so we find the Taylor series expansion to be negative one plus a half times π‘₯ minus πœ‹ all squared minus one over 24 times π‘₯ minus πœ‹ to the fourth power plus one over 720 times π‘₯ minus πœ‹ to the sixth power and so on. The second part of this question asks us to write the Taylor series expansion of 𝑓 of π‘₯ in sigma notation. And so let’s see if there’s a way we can find a pattern. We saw that 𝑓 prime of πœ‹ was equal to zero, while 𝑓 triple prime of πœ‹ is equal to zero. And extending the pattern, we would see that the fifth derivative, the seventh derivative, and so on would also be equal to zero. And so our derivative alternate between negative one, one, negative one, and so on.

Similarly, our denominators are factorials of ascending even numbers each time this even number is the same as the exponent. So let’s define that even number as two π‘š. Then the denominator is two π‘š factorial and the exponent of π‘₯ minus πœ‹ is two π‘š. To achieve alternating powers of negative one, we write negative one times π‘š plus one. That means when π‘š is zero, negative one to the power of one is negative one, when π‘š is one, negative one to the power of two gives us one, and so on. And so we find that 𝑓 of π‘₯ equals the sum of negative one to the power of π‘š plus one times π‘₯ minus πœ‹ to the power of two π‘š over two π‘š factorial for values of π‘š between zero and infinity.

We’re also able to find the radius of convergence of a Taylor series. We say that there exists the number capital 𝑅 such that the power series will converge for absolute values of π‘₯ minus π‘Ž less than 𝑅 and will diverge for absolute values of π‘₯ minus π‘Ž greater than 𝑅. And this number capital 𝑅 is called the radius of convergence of the series. And note that the series may or may not converge, if the absolute value of π‘₯ minus π‘Ž is equal to 𝑅. We then say that the interval of convergence is an interval containing all the values of π‘₯, for which the series converges. Now, this may or may not include the end points of the interval and even be the whole set of real numbers. And we say that if we know the radius of convergence of a power series is 𝑅, then for values of π‘₯ greater than π‘Ž minus 𝑅 and less than π‘Ž plus 𝑅, the power series converges. For values of π‘₯ less than π‘Ž minus 𝑅 and greater than π‘Ž plus 𝑅, the power series diverges. It also follows that the power series will always converge for π‘₯ is equal to π‘Ž. Let’s have a look at an application of this theory.

Consider the function 𝑓 of π‘₯ equals 𝑒 to the power of two π‘₯. Find the Taylor series representation of 𝑓 about π‘₯ equals three. And in fact, there are two further parts of this question that we’ll consider in a moment.

We begin by recalling that the Taylor series of a function 𝑓 about π‘Ž is given by the sum of the 𝑛th derivative of 𝑓 evaluated at π‘Ž over π‘š factorial times π‘₯ minus π‘Ž to 𝑛th power values of π‘š between zero and infinity. And so what do we know about our function? Well, it’s given by 𝑓 of π‘₯ equals 𝑒 to the power of two π‘₯. We want to find the Taylor series about π‘₯ equals three. So we let π‘Ž be equal to three. Then we see that 𝑓 of π‘₯ is equal to the sum of the 𝑛th derivative of 𝑓 evaluated at three of 𝑛 factorial times π‘₯ minus three to the 𝑛th power for values of 𝑛 between zero and infinity. This is, of course, equal to 𝑓 of three plus 𝑓 prime of three over one factorial times π‘₯ minus three plus 𝑓 double prime of three over two factorial times π‘₯ minus three all squared and so on.

It’s quite clear that we’re going to need to work out 𝑓 of three, 𝑓 prime of three, 𝑓 double prime of three, and possibly look for a pattern. 𝑓 of three is quite straightforward. It’s 𝑒 to the power of two times three which is, of course, 𝑒 to the power of six. So let’s next look for the derivative of 𝑓 of π‘₯. The derivative of 𝑒 to the power of two π‘₯ is two 𝑒 to the power of two π‘₯. So 𝑓 prime of three must be two 𝑒 to the power of two times three, which is two 𝑒 to the power of six. We’ll differentiate once again. This time we get four 𝑒 to the power of two π‘₯. And 𝑓 double prime of three is for 𝑒 to the power of two times three, which is four 𝑒 to the sixth power.

Now actually, we can see that the 𝑛th derivative of 𝑓 of π‘₯ is equal to two to the 𝑛th power times 𝑒 to the power of two π‘₯. And this means the 𝑛th derivative of 𝑓 evaluated at three is two to the 𝑛th power times 𝑒 to the sixth power. Our Taylor series expansion using sigma notation is, therefore, the sum of two to the 𝑛th power times 𝑒 to the sixth power times π‘₯ minus three to the 𝑛th power all over 𝑛 factorial for values of 𝑛 between zero and infinity.

The second part of this question asks us to find the interval of convergence of the Taylor series representation of 𝑓 about π‘₯ equals three.

We say that the intervals of all π‘₯s for which the power series converges is called the interval of convergence of the series. Now actually, we know that the power series will converge for π‘₯ equals π‘Ž. So here π‘₯ equals three. But that’s all we know right now. We’ll use the ratio test to determine the rest of the π‘₯s for which the power series will converge. This says suppose that we have some series, the sum of π‘Žπ‘›, and we defined 𝑙 to be equal to the limits as 𝑛 approaches infinity of π‘Žπ‘› plus one over π‘Žπ‘›. If 𝑙 is less than one, the series is absolutely convergent and hence convergent. This is the scenario we’re interested in. So our 𝑙 must be the limit as 𝑛 approaches infinity of the absolute value of two to the power of 𝑛 plus one times 𝑒 to the sixth power times π‘₯ minus three to the power of 𝑛 plus one over 𝑛 plus one factorial divided by two to the 𝑛th power times 𝑒 to the sixth power times π‘₯ minus three to the 𝑛th power over 𝑛 factorial.

Now of course, when we divide by a fraction, it’s the same as multiplying by the reciprocal of that fraction. So we can rewrite our limit as shown. Then we notice we can perform some simplification. We can cancel out 𝑒 to the power of six and two to the power of 𝑛. Similarly, we can cancel π‘₯ minus three to the power of 𝑛. And if we, finally, recall that 𝑛 plus one factorial is the same as 𝑛 plus one times 𝑛 factorial, we see that we can cancel by dividing through by 𝑛 factorial. Well, this all simplifies really nicely. We see that 𝑙 is equal to the limit as 𝑛 approaches infinity of the absolute value of two times π‘₯ minus three over 𝑛 plus one.

Now in fact, the expression two times π‘₯ minus three is independent of 𝑛. So we can factor this, remembering that we must write the absolute value of two times π‘₯ minus three. And so 𝑙 is equal to the absolute value of two times π‘₯ minus three times the limit as 𝑛 approaches infinity of the absolute value of one over 𝑛 plus one. Now, as 𝑛 gets larger, one over 𝑛 plus one gets smaller. So the limit approaches zero. This means 𝑙 is equal to zero. This is of course less than one. And it doesn’t change no matter the value of π‘₯. And so we say our series is absolutely convergent for all values of π‘₯. Its interval of convergence is negative infinity to infinity.

The third part of this question asks, what is the radius of convergence of the Taylor series representation of 𝑓 about π‘₯ equals three?

Recall that there exist a number capital 𝑅, which we call the radius of convergence, so that the power series will converge for absolute values of π‘₯ minus π‘Ž less than 𝑅 and will diverge for absolute values of π‘₯ minus π‘Ž greater than 𝑅. Well here, we’ve seen that our power series is absolutely convergent. And there’s a special case for the radius of convergence. In cases such as these, we say that the radius of convergence is infinity. Capital 𝑅 is, therefore, equal to infinity.

In this video, we’ve seen that if 𝑓 has a power series expansion at π‘Ž, then the Taylor series of the function 𝑓 at π‘Ž or about π‘Ž is the sum of the 𝑛th derivative of 𝑓 evaluated at π‘Ž over 𝑛 factorial times π‘₯ minus π‘Ž to the 𝑛th power for values of 𝑛 between zero and infinity. We saw that capital 𝑅 represents the radius of convergence such that the power series will converge for absolute values of π‘₯ minus π‘Ž less than 𝑅 and will diverge for absolute values of π‘₯ minus π‘Ž greater than 𝑅. And finally, we learned that we can use the ratio test or other suitable tests to find the intervals of convergence. The power series converges for values of π‘₯ greater than π‘Ž minus 𝑅 and less than π‘Ž plus 𝑅. And it follows that the power series will always converge when π‘₯ is equal to π‘Ž.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.