<<

Infinite

In the previous section we were able to generate new from known power series using substitution, differentiation, integration. In this section we will develop a more general method for finding power series of various functions. The power series we generate is generally referred to as a Taylor series. In the special case when the series is centered at 푥 = 0, the series is sometimes referred to as a Maclaurin series. We begin by deriving the general form of a Taylor series. Taylor Series To derive the so-called Taylor series, we start with the general expression for a power series centered at 푥 = 푐 and that is valid on the interval (푐 − 푅, 푐 + 푅).

∞ 푛 푓(푥) = ∑ 푎푛(푥 − 푐) 푛=0 Next, we express the series in expanded form and compute its derivates as shown below.

2 3 … 푓(푥) = 푎0 + 푎1(푥 − 푐) + 푎2(푥 − 푐) + 푎3(푥 − 푐) + 1 2 3 … 푓 (푥) = 푎1 + 2 ∙ 푎2(푥 − 푐) + 3푎3(푥 − 푐) + 4푎4(푥 − 푐) + 2 2 3 푓 (푥) = 2푎2 + 2 ∙ 3푎3(푥 − 푐) + 3 ∙ 4푎4(푥 − 푐) + 4 ∙ 5푎5(푥 − 푐) + … 3 2 … 푓 (푥) = 2 ∙ 3푎3 + 2 ∙ 3 ∙ 4푎4(푥 − 푐) + 3 ∙ 4 ∙ 5푎5(푥 − 푐) + … … … … … … …

Now, we let 푥 = 푐 and find the following:

푓(푐) = 푎0 1 푓 (푐) = 푎1 2 푓 (푐) = 2푎2 3 푓 (푐) = 2 ∙ 3푎3 4 푓 (푐) = 2 ∙ 3 ∙ 4푎4 . . . 푘 푓 (푐) = 푘! 푎푘

Solving the general expression for the coefficients, 푎푘, we find 푓푘(푐) 푎 = 푘 푘! We can now use the coefficient expression above to rewrite the power series from above. The result is referred to as a Taylor series, 푇(푥), of the 푓(푥) centered at 푥 = 푐.

∞ 푓푛(푐) 푇(푥) = ∑ (푥 − 푐)푛 푛! 푛=0

The results are formally stated below with the following theorem.

Taylor Series Expansion If 푓(푥) is represented as a power series centered at 푐 in an interval |푥 − 푐| < 푅 with 푅 > 0, then the power series is the Taylor series

∞ 푓푛(푐) 푇(푥) = ∑ (푥 − 푐)푛 푛! 푛=0

In the special case where 푐 = 0, 푇(푥) is also called the Maclaurin series

∞ 푓푛(0) 푇(푥) = ∑ 푥푛 푛! 푛=0

It’s important to note that the theorem above tells us that if we want to represent a function, 푓, by a power series centered at 푐, the only candidate for this is the Taylor series. Unfortunately, there is no general method to determine whether 푇(푥) will converge to 푓(푥), (it is not guaranteed that 푇(푥) even converges), however we may use the following theorem in some special cases.

Taylor Series Convergence Suppose there exists a 퐾 > 0 such that all of 푓(푥) are bounded by 퐾 on an interval, 퐼 = (푐 − 푅, 푐 + 푅), i.e.

|푓푘(푥)| ≤ 퐾 , 푓표푟 푎푙푙 푘 > 0 푎푛푑 푥 ∈ 퐼

Then 푓(푥) can be represented by the Taylor series, 푇(푥) on 퐼

∞ 푓푛(푐) 푇(푥) = ∑ (푥 − 푐)푛 , 푓표푟 푎푙푙 푥 ∈ 퐼 푛! 푛=0

Let’s start with a straightforward example where the function we want to represent by a Taylor Series is a polynomial. Example 1: Find the Taylor series for 푓(푥) centered at 푥 = 0, i.e. the Maclaurin series. 푓(푥) = 4푥3 + 8푥2 + 6푥 + 7 Solution: The general form of the Taylor series centered at zero is

∞ 푓푛(0) 푇(푥) = ∑ 푥푛 푛! 푛=0

푓푛(0) Therefore, we start by finding the coefficients, . 푛!

푓0(0) 7 = = 7 0! 1

푓1(0) 3 ∙ 4푥2 + 2 ∙ 8푥 + 6 = | = 6 1! 1 푥=0

푓2(0) 2 ∙ 3 ∙ 4푥 + 2 ∙ 8 16 = | = = 8 2! 2 푥=0 2

푓3(0) 2 ∙ 3 ∙ 4 24 = = = 4 3! 6 6

Where, we stop at the third since all higher derivatives are zero. For this case, and any polynomial, the series is finite. 푓0(0) 푓1(0) 푓2(0) 푓3(0) 푇(푥) = 푥0 + 푥1 + 푥2 + 푥3 0! 1! 2! 3! 푇(푥) = 7 + 6푥1 + 8푥2 + 4푥3 + 0푥4 푇(푥) = 4푥3 + 8푥2 + 6푥 + 7

The Taylor series is the polynomial itself and of course if valid for all 푥! ______

Next, we will look at few non-polynomial functions.

Example 2: Find the Taylor series representation of the function below centered at 푥 = 1. 1 푓(푥) = 1 − 2푥 Solution: Using the substitution method from the previous section we can easily find the series expansion centered at zero, i.e. the Maclaurin series. However, we are asked to find the series expansion centered at 푥 = 1, therefore we use the general Taylor series formula.

∞ 푓푛(1) 푇(푥) = ∑ (푥 − 1)푛 푛! 푛=0 In this case it is often useful to create a table to see if one can find a pattern for the coefficients.

푛 푛! 푓푛(푥) 푓푛(1)

푛! 0 1 1 −1

1 − 2푥 1 1 2 2

(1 − 2푥)2 2 2 8 −4

(1 − 2푥)3 3 6 48 8

(1 − 2푥)4 4 24 384 −16

(1 − 2푥)5 … … … …

In the last column we see two patterns: 1.) The coefficient flips sign each time starting with a negative value at 푛 = 0, hence the term: (−1)푛+1 and 2.) The magnitude of the coefficients increase by a power of two, hence the term 2푛. The Taylor series is then written as follows:

∞ 푇(푥) = ∑(−1)푛+12푛(푥 − 1)푛 푛=0 Finally, we use the to determine where the series converges and find the following.

2푛(푥 − 1)푛21(푥 − 1)1 퐿 = 푙푖푚 | | = 2|푥 − 1| 푛→∞ 2푛(푥 − 1)푛

The series converges when 퐿 < 1, and therefore we have 1 3 2|푥 − 1| < 1 → < |푥| < 2 2 ______Example 3: Find the Taylor series representation of the function below centered at 푥 = 1. 푓(푥) = 푥−2 Solution: Again, we can construct a table to see if we can find a pattern for the coefficients.

푛 푓푛(푥) 푓푛(1)

푛! 0 1푥−2 1 = 1 1 1 −2푥−3 −2 = −2 1 2 3 ∙ 2푥−4 6 = 3 2 3 −4 ∙ 3 ∙ 2푥−5 −24 = −4 6 … … … … … … (−1)푛(푛 + 1)! 푥−(푛+2) (−1)푛(푛 + 1)! = (−1)푛(푛 + 1) 푛!

The Taylor series is then written as follows:

∞ 푇(푥) = ∑(−1)푛(푛 + 1)(푥 − 1)푛 푛=0 We can again use the ratio test to determine where the series converges. In this case we find: 1 3 < |푥| < 2 2 ______

Example 4: Find the Maclaurin series representation of the following well known functions. a. b. 푓(푥) = 푒푥 푓(푥) = 푠푖푛(푥)

Solution: a. Note that all derivatives of 푒푥 evaluated at 푥 = 0 are 푒0 = 1. Therefore, the Maclaurin series for 푓(푥) = 푒푥 is:

∞ (푥)푛 푥 푥2 푥3 푒푥 = ∑ = 1 + + + , 푓표푟 푎푙푙 푥 푛! 1! 2! 3! 푛=0 b. In this case we start by creating a table for the coefficients.

푛 푓푛(푥) 푓푛(0) 0 푠푖푛(푥) 0 1 푐표푠(푥) 1 2 − 푠푖푛(푥) 0 3 − 푐표푠(푥) −1 4 푠푖푛(푥) 0 … … … … … …

After 푛 = 3 the pattern repeats. Additionally, the series contains odd terms only which alternate in sign. With this, the series expansion of 푠푖푛(푥) is

∞ (푥)2푛+1 푥3 푥5 푥7 푠푖푛(푥) = ∑(−1)푛 = 푥 − + − +. . ., 푓표푟 푎푙푙 푥 (2푛 + 1)! 3! 5! 7! 푛=0 Furthermore, if we were to repeat this procedure for 푐표푠(푥) we would find a similar result with the exception that the series will contain only even terms. ∞ (푥)2푛 푥2 푥4 푥6 푐표푠(푥) = ∑(−1)푛 = 1 − + − +. . ., 푓표푟 푎푙푙 푥 (2푛)! 2! 4! 6! 푛=0 ______In the previous section we used the substitution method to find series representations for functions that were similar to the geometric power series. We can use the series we learned in the previous example to find additional series in a similar fashion.

Example 5: Find the Maclaurin series representation of the following functions.

a. b. 2 푓(푥) = 푥3 푠푖푛(푥) 푓(푥) = 푥4푒2푥

Solution: a. We use the fact that we know the series representation of 푠푖푛(푥).

∞ ∞ ∞ (푥)2푛+1 (푥)2푛+1 ∙ 푥3 (푥)2푛+4 푥3 푠푖푛(푥) = 푥3 (∑(−1)푛 ) = ∑(−1)푛 = ∑(−1)푛 (2푛 + 1)! (2푛 + 1)! (2푛 + 1)! 푛=0 푛=0 푛=0 b. In this case, we additionally use the substitution method.

∞ 2 푛 ∞ 푛 2푛 4 ∞ 푛 2푛+4 2 (2푥 ) 2 ∙ 푥 ∙ 푥 2 ∙ 푥 푥4푒(2푥 ) = 푥4 ∑ = ∑ = ∑ 푛! 푛! 푛! 푛=0 푛=0 푛=0 ______

Taylor Series Integration In many cases there turns out to be no convenient general formula for the coefficients as in the examples so far. However, we can always compute as many coefficients as we desire. One application of Taylor series is to use them to approximate definite that may not otherwise have an analytic solution. Let’s look at an example below.

Example 6: The Normal distribution is one of the most well-known probability distribution functions in statistics. To find the probability of an event one needs to compute a definite with the normal distribution as the integrand. Unfortunately, the integral cannot be evaluated analytically. Use what we know about Taylor series to approximate the following probability distribution integral.

1 푥2 1 − 푃 = ∫ 푒 2 푑푥 0 √2휋 Note: The integrand represents a normal distribution with a zero mean and unity standard deviation. Solution: We start by finding the Maclaurin series representation of the integrand.

2 푛 ∞ 푥 ∞ 푥2 (− ) 2푛 (− ) 2 푥 푒 2 = ∑ = ∑(−1)푛 푛! 2푛 ∙ 푛! 푛=0 푛=0 Substituting this expression into the integral we have:

∞ 1 1 푥2푛 푃 = ∫ ( ∑(−1)푛 ) 푑푥 √2휋 2푛 ∙ 푛! 0 푛=0 ∞ 1 1 1 = ∑(−1)푛 ∫ 푥2푛 푑푥 √2휋 2푛 ∙ 푛! 푛=0 0 ∞ 1 1 1 푥2푛+1 = ∑(−1)푛 ∙ | √2휋 2푛 ∙ 푛! 2푛 + 1 푛=0 0

Since the lower of the integral is zero, we only need to evaluate the sum for 푥 = 1. We can use as many terms of the sum as we like to improve the approximation. We will use the first four terms. 1 1 −1 1 −1 = [( ) + ( ) + ( ) + ( )] √2휋 20 ∙ 0! ∙ (1) 21 ∙ 1! ∙ (2 + 1) 22 ∙ 2! ∙ (4 + 1) 23 ∙ 3! ∙ (6 + 1) 1 1 1 1 = [(1) − ( ) + ( ) − ( )] ≅ 0.341238 √2휋 6 40 336

______Before ending this section, we will derive one more important series, the Binomial Series. We start by recalling the , stated below.

Binomial Theorem If 푎 is any positive then,

푎 푎 (푥 + 푦)푎 = ∑ ( ) 푥푎−푘푦푘 푘 푘=0 푎 푎 푎 푎 푎 (푥 + 푦)푎 = ( ) 푥푎푦0 + ( ) 푥푎−1푦1 + ( ) 푥푎−2푦2 + ⋯ + ( ) 푥1푦푛−1 + ( ) 푥0푦푎 0 1 2 푎 − 1 푎

푎 Where, the , ( ), is defined as 푘

푎 푎! ( ) = 푘 푘! (푎 − 푘)! or equivalently as

푎 푎 푎(푎 − 1)(푎 − 2) ∙∙∙ (푎 − (푘 − 1)) ( ) ≝ 1 ( ) = 0 푘 푘!

This theorem is useful when 푛 is large as shown in the example below. Example 7: Use the Binomial Theorem to expand the following 푓(푥) = (푥 + 3)4

4 4 (푥 + 3)4 = ∑ ( ) 푎4−푘푏푘 푘 푘=0 4 4 4 4 4 = ( ) 푥430 + ( ) 푥331 + ( ) 푥232 + ( ) 푥133 + ( ) 푥034 0 1 2 3 4 = 푥4 + 12푥3 + 54푥2 + 108푥1 + 81 In the binomial series the above theorem is generalized so that 푛 can be any number. We can derive this generalization by computing the Maclaurin series of 푓(푥) = (1 + 푥)푎, where a is any number. We start by constructing a table of the coefficients as follows:

푛 푓푛(푥) 푓푛(0)

푛! 0 (1 + 푥)푎 1 푎−1 푎 1 푎(1 + 푥) 푛! 2 푎(푎 − 1)(1 + 푥)푎−2 푎(푎 − 1)

푛! 3 푎(푎 − 1)(푎 − 2)(1 + 푥)푎−3 푎(푎 − 1)(푎 − 2)

푛! … … … … … … 푛 푎(푎 − 1)(푎 − 2) ∙∙∙ (푎 − (푛 − 1))(1 + 푥)푎−푛 푎(푎 − 1)(푎 − 2) ∙∙∙ (푎 − (푛 − 1))

푛!

Note the Maclaurin coefficients are of the exact form of the binominal coefficients from above! In this case we replace 푛 with 푘 and note that 푎 can be any number.

푎 푎(푎 − 1)(푎 − 2) ∙∙∙ (푎 − (푛 − 1)) ( ) = 푛 푛!

The binomial series is then defined below

Binomial Series For any exponent 푎 and for |푥| < 1.

∞ 푎 (1 + 푥)푎 = ∑ ( ) 푥푛 푛 푛=0 푎 Where, the binomial coefficient, ( ), is defined as 푛

푎 푎 푎(푎 − 1)(푎 − 2) ∙∙∙ (푎 − (푛 − 1)) ( ) ≝ 1 ( ) = 0 푛 푛!

Let’s do an example to illustrate.

Example 8: Write down the first four terms of the binomial series for the following function

푓(푥) = √9 − 푥 Solution: Rewrite the function first to get into the form needed for the binomial series formula.

√9 푓(푥) = √9 − 푥 √9 ⁄ 1 1 2 = 3 (1 + (− 푥)) 9

The binomial series is then

∞ 푛 1⁄2 1 √9 − 푥 = ∑ 3 ( ) (− 푥) 푛 9 푛=0 ∞ 1⁄2 푥 푛 = 3 ∑(−1)푛 ( ) ( ) 푛 9 푛=0 Using the first four terms we have

1⁄2 푥 0 1⁄2 푥 1 1⁄2 푥 2 1⁄2 푥 3 √9 − 푥 ≅ 3 (( ) ( ) − ( ) ( ) + ( ) ( ) − ( ) ( ) ) 0 9 1 9 2 9 3 9 1 1 1 1 3 1 푥 1 ( ∙ − ) 푥 2 ( ∙ − ∙ − ) 푥 3 ≅ 3 (1 − ( ) + 2 2 ( ) − 2 2 2 ( ) ) 2 9 2 9 6 9

푥 푥2 3푥3 ≅ 3 (1 − − + ) 18 648 34992 푥 푥2 푥3 ≅ (3 − − − ) 6 216 3888

Final Summary for Infinite Series – Taylor Series

Taylor Series Expansion If 푓(푥) is represented as a power series centered at 푐 in an interval |푥 − 푐| < 푅 with 푅 > 0, then the power series is the Taylor series

∞ 푓푛(푐) 푇(푥) = ∑ (푥 − 푐)푛 푛! 푛=0

In the special case where 푐 = 0, 푇(푥) is also called the Maclaurin series

∞ 푓푛(0) 푇(푥) = ∑ 푥푛 푛! 푛=0 Taylor Series Convergence Suppose there exists a 퐾 > 0 such that all derivatives of 푓(푥) are bounded by 퐾 on an interval, 퐼 = (푐 − 푅, 푐 + 푅), i.e.

|푓푘(푥)| ≤ 퐾 , 푓표푟 푎푙푙 푘 > 0 푎푛푑 푥 ∈ 퐼

Then 푓(푥) can be represented by the Taylor series, 푇(푥) on 퐼

∞ 푓푛(푐) 푇(푥) = ∑ (푥 − 푐)푛 , 푓표푟 푎푙푙 푥 ∈ 퐼 푛! 푛=0 Binomial Theorem If 푎 is any positive integer then, 푎 푎 (푥 + 푦)푎 = ∑ ( ) 푥푎−푘푦푘 푘 푘=0 푎 푎 푎 푎 푎 (푥 + 푦)푎 = ( ) 푥푎푦0 + ( ) 푥푎−1푦1 + ( ) 푥푎−2푦2 + ⋯ + ( ) 푥1푦푛−1 + ( ) 푥0푦푎 0 1 2 푎 − 1 푎 푎 Where, the binomial coefficient, ( ), is defined as 푘

푎 푎! ( ) = 푘 푘! (푎 − 푘)! or equivalently as

푎 푎 푎(푎 − 1)(푎 − 2) ∙∙∙ (푎 − (푘 − 1)) ( ) ≝ 1 ( ) = 0 푘 푘!

Table of Common Maclaurin Series 풇(풙) Maclaurin Series Converges to 풇(풙) 푥 ∞ 푒 (푥)푛 푥 푥2 푥3 ∑ = 1 + + + +∙∙∙ 퐴푙푙 푥 푛! 1! 2! 3! 푛=0 ∞ 푠푖푛(푥) (푥)2푛+1 푥3 푥5 푥7 ∑(−1)푛 = 푥 − + − +∙∙∙ 퐴푙푙 푥 (2푛 + 1)! 3! 5! 7! 푛=0 ( ) ∞ 푐표푠 푥 (푥)2푛 푥2 푥4 푥6 ∑(−1)푛 = 1 − + − +∙∙∙ 퐴푙푙 푥 (2푛)! 2! 4! 6! 푛=0 푎 ∞ (1 + 푥) 푎 푎 푎 푎 푎 ∑ ( ) 푥푛 = ( ) 푥0 + ( ) 푥1 + ( ) 푥2 + ( ) 푥3 +∙∙∙ 푛 0 1 2 3 푛=0 |푥| < 1 푎(푎 − 1) 푎(푎 − 1)(푎 − 2) = 1 + 푎푥 + 푥2 + 푥3 +∙∙∙ 2! 3!

1 ∞

1 − 푥 ∑ 푥푛 = 1 + 푥 + 푥2 + 푥3 +∙∙∙ |푥| < 1 푛=0 1 ∞

1 + 푥 ∑(−1)푛푥푛 = 1 − 푥 + 푥2 − 푥3 +∙∙∙ |푥| < 1 푛=0 ∞ 푙푛(1 + 푥) (−1)푛푥푛+1 푥1 푥2 푥3 푥4 ∑ = − + − +∙∙∙ −1 < 푥 ≤ 1 푛 + 1 1 2 3 4 푛=0

By: ferrantetutoring