You are on page 1of 42

TAYLOR AND MACLAURIN SERIES

Gabriel Asare Okyere (PHD)

Kwame Nkrumah Unversity of Science and Technology.

December 19, 2018

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 1/1
Outline

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 2/1
Taylor and Maclaurin Series

Taylor and Maclaurin Series

We start by supposing that f is any function that can be represented by a power


series

f (x) = c0 +c1 (x−a)+c2 (x−a)2 +c3 (x−a)3 +c4 (x−a)4 +. . . |x−a| < R . . . . . . (1)

Let’s try to determine what the coefficients cn must be in terms of f . To begin,


notice that if we put x = a in Equation 1, then all terms after the first one are 0
and we get

f (a) = c0
Differentiating the series in Equation 1 term by term

f 0 (x) = c1 + 2c2 (x − a) + 3c3 (x − a)2 + 4c4 (x − a)3 + . . . |x − a| < R . . . . . . (2)

and substitution of x = a in Equation 2 gives

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 3/1
Taylor and Maclaurin Series

f 0 (a) = c1
Now we differentiate both sides of Equation 2 and obtain

f 00 (x) = 2c2 + 2 · 3c3 (x − a) + 3 · 4c4 (x − a)2 + . . . |x − a| < R . . . . . . (3)

Again we put x = a into Equation 3. The result is

− − f 00 (a) = 2c2

Let’s apply the procedure one more time. Differentiation of the series in Equation
3 gives

f 000 (x) = 2 · 3c3 + 2 · 3 · 4c4 (x − a) + 3 · 4 · 5c5 (x − a)2 . . . |x − a| < R . . . . . . (4)

and substitution of x = a in Equation 4 gives

f 000 (a) = 2 · 3c3 = 3!c3

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 4/1
Taylor and Maclaurin Series

By now you can see the pattern. If we continue to differentiate and substitute
x = a, we obtain

f n (a) = 2 · 3 · 4 . . . ncn = n!cn


Solving the equation for the nth coefficient cn we get

f n (a)
cn =
n!
This formula remains valid even for n = 0 if we adopt the conventions that 0! = 1
and f 0 = f . Thus we have proved the following theorem.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 5/1
Taylor and Maclaurin Series Theorem 1

Theorem 1
If f has a power series representation at a, that is , if

X
f (x) = cn (x − a)n |x − a| < R
n=0

Then its coefficients are given by the formula

f n (a)
cn =
n!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 6/1
Taylor and Maclaurin Series Theorem 1

Substituting this formula for cn back into the series, we see that if f has power
series expansion at a, then it must be o the following form.


X f n (a)
f (x) = (x − a)n · · · · · · (5)
n=0
n!
f 0 (a) f 00 (a) f 000 (a)
= f (a) + (x − a) + (x − a)2 + (x − a)3 + · · ·
1! 2! 3!
The series in Equation 5 is called the Taylor series of the function f at a (or
about a or centered at a). For the special case a = 0 the Taylor series becomes

X f n (0) f 0 (0) f 00 (0) 2
f (x) = x n = f (0) + x+ x + ··· . . . . . . (6)
n=0
n! 1! 2!
This case arises frequently enough that it is given the special name Maclaurin
series.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 7/1
Taylor and Maclaurin Series Theorem 1

Note
We have shown that if f can be represented as a power series about a, then f is
equal to the sum of its Taylor series. But there exist functions that are not equal
to the sum of their Taylor series.

Example 1
Find the Maclaurin series of the function f (x) = e x and its radius of convergence.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 8/1
Taylor and Maclaurin Series Theorem 1

Example 1 continued
Solution
If f (x) = e x , then f n (x) = e x , so f n (0) = e 0 = 1 for all n. Therefore the Taylor
series for f at 0 (that is, the Maclaurin series) is
∞ ∞
X f n (0) X xn x x2 x3
xn = =1+ + + + ···
n=0
n! n=0
n! 1! 2! 3!
n
To find radius convergence, we let an = xn! . Then
an+1 x n+1

n! |x|
an (n + 1)! · x n = n + 1 → 0 < 1
=

so, by the Ratio Test, the series converges for all x and the radius of convergence
is R = ∞

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 9/1
Taylor and Maclaurin Series Theorem 1

The conclusion we can draw from Theorem 1 and Example 1 is that if e x has a
power series expansion at 0, then

X xn
ex =
n=0
n!
So how can we determine whether e x does have a power series representation?
Let’s investigate the more general question: Under what circumstances is a
function equal to the sum of its Taylor series? In other words if f has derivatives
of all orders, when is it true that

X f n (a)
(x − a)n
n=0
n!
As with any convergent series, this means that f (x) is the limit of the sequence of
partial sums. In the case of the Taylor series, the partial sums are

n
X f n (a)
Tn (x) = (x − a)i
i!
i=0
f 0 (a) f 00 (a) f n (a)
= f (a) + (x − a) + (x − a)2 + · · · + (x − n)n
1! 2! n!
Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)
Sequence and Series December 19, 2018 10 / 1
Taylor and Maclaurin Series Theorem 1

Notice that Tn is a polynomial of degree n called the nth-degree Taylor


polynomial of f at a. For instance, for the exponential function f (x) = e x , the
result of Example 1 shows that the Taylor polynomials at 0 (or Maclaurin
polynomials) with n = 1, 2, and 3 are

x2 x2 x3
T1 (x) = 1 + x T2 (x) = 1 + x +
T3 (x) = 1 + x + +
2! 2! 3!
In general, f (x) is the sum of its Taylor series if

f (x) = lim Tn (x)


n→∞

If we let

Rn (x) = f (x) − Tn (x) so that f (x) = Tn (x) + Rn (x)


then Rn (x) is called the remainder of the Taylor series. If we can somehow show
that lim n → ∞Rn (x) = 0 then it follows that

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 11 / 1
Taylor and Maclaurin Series Theorem 1

lim Tn (x) = lim [f (x) − Rn (x)] = f (x) − lim Rn (x) = f (x)


n→∞ n→∞ n→∞

We have therefore proved the following


Theorem 2
If f (x) = Tn (x) + Rn (x), where Tn is the nth-degree Taylor polynomial of f at a
and

lim Rn = 0
n→∞

for |x − a| < R, then f is equal to the sum of its Taylor series on the interval
|x − a| < R

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 12 / 1
Taylor and Maclaurin Series Theorem 1

In trying to show that lim Rn (x) = 0 for a specific function f , we usually use the
n→∞
following fact.
Taylor’s Inequality
If |f n+1 (x)| ≤ M for |x − a| ≤ d, then the remainder Rn (x) of the Taylor series
satisfies the inequality
M
|Rn (x)| ≤ |x − a|n+1 for|x − a| ≤ d
(n + 1)!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 13 / 1
Taylor and Maclaurin Series Theorem 1

To see why this is true for n = 1, we assume that |f 00 (x)| ≤ M. In particular, we


have f 00 (x) ≤ M, so for a ≤ x ≤ a + d we have
Z x Z x
f 00 (t)dt ≤ Mdt
a a
00 0
An anti-derivative of f is f , so by Part 2 of the Fundamental Theorem of
Calculus, we have
f 0 (x) − f 0 (a) ≤ M(x − a) or f 0 (x) ≤ f 0 (a) + M(x − a)
Thus Z x Z x
f 0 (x)dt ≤ [f 0 (a) + M(t − a)]dt
a a

(x − a)2
f (x) − f (a) ≤ f 0 (a)(x − a) + M
2
M
f (x) − f (a) − f 0 (a)(x − a) ≤ (x − a)2
2
But Rn (x) = f (x) − T1 (x) = f (X ) − f (a) − f 0 (a)(x − a). So
M
R1 (x) ≤ (x − a)2
2
Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)
Sequence and Series December 19, 2018 14 / 1
Taylor and Maclaurin Series Theorem 1

A similar argument using f 00 (x) ≥ −M, shows that


M
− (x − a)2 R1 (x) ≥
2
M
So |R1 (x)| ≤ |x − a|2
2
Although we have assumed that x > a, similar calculations show that this
inequality is also true for x < a.
This proves Taylor’s Inequality for the case where n = 1. The result for any n is
proved in a similar way by integrating n + 1 times.

xn
lim =0 for every real number x . . . . . . (7)
n→∞ n!

P xn
This is true because we know from Example 1 that the series n! converges for
all x and so its nth term approaches 0.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 15 / 1
Taylor and Maclaurin Series Theorem 1

Example 2

Prove that e x is equal to the sum of its Maclaurin series.

Solution
If f (x) = e x , then f n+1 (x) = e x for all n. If d is any positive number and |x| ≤ d,
then |f n+1 (x)| = e x ≤ e d . So Taylor’s Inequality, with a = 0 and M = e d , says
that

ed
|Rn (x)| ≤ |x|n+1 for |x| ≤ d
(n + 1)!
Notice that the same constant M = e d works for every value of n. But, from
Equation (7), we have

ed |x|n+1
lim |x|n+1 = e d lim =0
n→∞ (n + 1)! n→∞ (n + 1)!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 16 / 1
Taylor and Maclaurin Series Theorem 1

It follows from the Sequence Theorem that lim |Rn (x)| = 0 and therefore
n→∞
lim Rn (x) = 0 for all values of x. By Theorem 2, e x is equal to the sum of its
n→∞
Maclaurin series, that is,


X xn
ex = for all x Eqn 8
n=0
n!

In particular, if we put x = 1 in Equation 8, we obtain the following expression for


the number e as a sum of an infinite series:


X 1 1 1 1
e= =1+ + + + ··· Eqn 9
n=0
n! 1! 2! 3!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 17 / 1
Taylor and Maclaurin Series Theorem 1

Example 3

Find the Taylor series for f (x) = e x at a = 2.


Solution:
We have f (n) (2) = e 2 and so, putting a = 2 in the definition of a Taylor series, we
get

∞ ∞
X f (n) (2) X e2
(x − 2)n = (x − 2)n
n=0
n! n=0
n!

Again it can be verified , as in Example 1, that the radius of convergence is


R = ∞. As in Example 2, we can also verify that lim Rn (x) = 0, so
n→∞


x
X e2
e = (x − 2)n , ∀x Eqn 10
n=0
n!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 18 / 1
Taylor and Maclaurin Series Theorem 1

Example 3 Continued

We have two power series expansions for e x , the Maclaurin series in Equation 8
and the Taylor series in Equation 10. The first is better if we are interested in
values of x near 0 and the second is better if x is near 2

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 19 / 1
Taylor and Maclaurin Series Theorem 1

Example 4

Find the Maclaurin series for sin x and prove that is represents sin x ∀x
Solution: We have to arrange our computation in two columns as follows:

f (x) = sin x f (0) = 0

f 0 (x) = cos x f 0 (0) = 1


f 00 (x) = − sin x f 00 (0) = 0
f 000 (x) = − cos x f 000 (0) = −1
f 4 (x) = sin x f 4 (0) = 0
Since the derivatives repeat in a cycle of four, we can write the Maclaurin series as
follows:
f 0 (0) f 00 (0) 2 f 000 (0) 3
f (0) = x+ x + x + ···
1! 2! 3!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 20 / 1
Taylor and Maclaurin Series Theorem 1

Example 4 Continued

x3 x5 x7 X x 2n+1
=x− + + + ··· = (−1)n
3! 5! 7! n=0
(2n + 1)!

Since f (n+1) (x) is ± sin x or ± cos x, we know that |f (n+1) (x)| ≤ 1 ∀x. So we can
take M = 1 in Taylor’s Inequality:

M |x|n+1
|Rn (x)| ≤ |x n+1 | = Eqn 11
(n + 1)! (n + 1)!

By Equation 10 the right side of this inequality approaches 0 as n → ∞, so


|Rn (x)| → 0 by the Squeeze Theorem. It follows that Rn (x) → 0 as n → ∞, so
sin x is equal to the sum of its Maclaurin series by Theorem 2.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 21 / 1
Taylor and Maclaurin Series Theorem 1

We state the result of Example 4 for future reference.

x3 x5 x7
sin x = x − + − + ···
31 5! 7!

X x 2n+1
= (−1)n ∀x Eqn 12
n=0
(2n + 1)!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 22 / 1
Taylor and Maclaurin Series Theorem 1

Example 5

Find the Maclaurin series for cos x.


Solution: We could proceed directly as in Example 4 but its easier to
differentiate the Maclaurin series for sin x given by Equation 12:

x3 x5 x7
 
d d
cos x = (sin x) = x− + − + ···
dx dx 3! 5! 7!

3x 2 5x 4 7x 6 x2 x4 x6
=1− + − + ··· = 1 − + − + ···
3! 5! 7! 2! 4! 6!
Since the Maclaurin series for sin x converges for all x. Theorem 2 in Section
11.9 tells us the differential series for cos x also converges for all x. Thus

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 23 / 1
Taylor and Maclaurin Series Theorem 1

Example 5 Continued

x2 x4 x6
cos x = 1 − + − + ···
2! 4! 6!

X x 2n
= (−1)n ∀x Eqn 13
n=0
(2n)!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 24 / 1
Taylor and Maclaurin Series Theorem 1

Example 6

Find the Maclaurin series for the function f (x) = x cos x


Solution: Instead of computing derivatives and substituting in Equation 7, its
easier to multiply the series for cos x (Equation 13) by x:
∞ ∞
X x 2n X x 2n+1
x cos x = x (−1)n = (−1)n
n=0
(2n)! n=0
(2n)!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 25 / 1
Taylor and Maclaurin Series Theorem 1

Example 7

Represent f (x) = sin x as the sum of its Taylor series centered at π/3
Solution: Arranging our work in columns, we have:
 π  √3
f (x) = sin x f =
3 2
π 1
f 0 (x) = cos x f0 =
3 2
π √
00 00 3
f (x) = − sin x f =−
3 2
 π  −1
f 000 (x) = − cos x f 000 =
3 2
and this pattern repeats indefinitely.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 26 / 1
Taylor and Maclaurin Series Theorem 1

Example 7 Continued

Therefore the Taylor series at π/3 is :


π π π
π f 0  π  f 00  π 2 f 000  π 3
f + 3 x− + 3 x− + 3 x− + ···
3 1! 3 2! 3 3! 3
√ √ 
3 1  π 3 π 2 1  π 3
= + x− − x− − x− + ···
2 2·1 3 2·2 3 2·3 3
The proof that this series represents sin x for all x is very similar to that in
Example 4. [Just replace x by x − π/3 in (14)]. √ We can write the series in sigma
notation if we separate the terms that contain 3:
∞ √ ∞
X (−1)n 3  π 2n X (−1)n  π 2n+1
sin x = x− + x−
n=0
2(2n)! 3 n=0
2(2n + 1)! 3

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 27 / 1
Taylor and Maclaurin Series Theorem 1

Example 7 Continued

The power series that we obtained by indirect methods in Example 5 and 6 are
indeed the Taylor or Maclaurin series of the given functions because
P Theorem 1
asserts that, no matter how a power series representation f (x) = cn (x − a)n is
f (n) (a)
obtained, it is always true that cn = n! . In other words, the coefficients are
uniquely determined.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 28 / 1
Taylor and Maclaurin Series Theorem 1

Example 8

Find the Maclaurin series for f (x) = (1 + x)k , where k is any real number.
Solution: Arranging our work, we have:

f (x) = (1 + x)k f (0) = 1

f 0 (x) = k(1 + x)k−1 f 0 (0) = k


f 00 (x) = k(k − 1)(1 + x)k−2 f 00 (0) = k(k − 1)
f 000 (x) = k(k − 1)(k − 2)(1 + x)k−3 f 000 (0) = k(k − 1)(k − 2)
· ·
· ·
· ·
f (n) (x) = k(k − 1) · · · (k − n + 1)(1 + x)k−n f (n) (0) = k(k − 1) · · · (k − n + 1)

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 29 / 1
Taylor and Maclaurin Series Theorem 1

Example 8 Continued

Therefore the Maclaurin series of f (x) = (1 + x)k is:


∞ ∞
X f (n) (0) X k(k − 1) · · · (k − n + 1) n
xn = x
n=0
n! n=0
n!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 30 / 1
Taylor and Maclaurin Series Theorem 1

This series
is called the binomial series. If its nth term is an , then
an+1 k(k−1)···(k−n+1)(k−n)x n+1 n!
an = · k(k−1)···(k−n+1)x n

n+1!


1 − k

|k − n| n
= |x| = |x| → |x| as n → ∞
n+1 1
1+
n
Thus, by Ratio Test, the binomial series converges if |x| < 1 and diverges if |x| > 1
The traditional notation for the coefficients in the binomial series is
 
k k(k − 1)(k − 2) · · · (k − n + 1)
=
n n!

and these numbers are called the binomial coefficients

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 31 / 1
Taylor and Maclaurin Series Theorem 3

The following theorem states that (1 + x)k is equal to the sum of its Maclaurin
series. It is possible to prove this by showing that the remainder Rn (x) approaches
0, but that turns out to be quite difficult.
Theorem 2: The Binomial Series
If k is any real number and |x| < 1, then
∞  
k
X k n k(k − 1) 2 k(k − 1)(k − 2) 3
(1 + x) = x = 1 + kx + x + x + ···
n=0
n 2! 3!

Although the binomial series always converges when|x| < 1, the question of
whether or not it converges at the endpoints, ±1, depends on the value of k. It
turns out that the series converges at 1 if −1 < k ≤ 0 and at both endpoints if 
k ≥ 0. Notice that if k is a positive integer and n > k, then the expression for kn
contains a factor (k − k), so kn = 0 for n > k. This means that the series


terminates and reduces to the ordinary Binomial Theorem when k is a positive


integer.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 32 / 1
Taylor and Maclaurin Series Theorem 3

Example 9

1
Find the Maclaurin series for the function f (x) = √ and its radius of
4−x
convergence.
Solution: We write f (x) in a form where we can use the binomial series:

1 1 1 1 x −1/2
√ =r  = r = 1−
4−x x  x 2 4
4 1− 2 1−
4 4

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 33 / 1
Taylor and Maclaurin Series Theorem 3

Example 9 continued

Using the Binomial series with k = − 12 and x replaced by − x4 , we have

∞ 
1 X − 21  x n

1 1 − 1
√ = 1 − x4 2 = −
4−x 2 2 n=0 n 4
"
1  x  (− 12 )(− 32 )  x 2 (− 12 )(− 23 )(− 52 )  x 
 
1
= 1+ − − + − + −
2 2 4 2! 4 3! 4
1 h
1·3·5····(2n−1) n
i
= 1 + 18 x + 2!8
1·3 2 1·3·5 3
2 x + 3!83 x + · · · + n!8n x + ···
2

We know from Theorem 3 that this series convergences when | − 14 | < 1, that is,
|x| < 4, so the radius of convergence is R = 4

We collect in the following table, for future reference, some important Maclaurin
series that we have derived in this section
Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)
Sequence and Series December 19, 2018 34 / 1
Taylor and Maclaurin Series Theorem 3


1 X
= xn = 1 + x + x2 + x3 + · · · R=1
1−x n=0

X xn x x2 x3
ex = = 1+ + + +··· R=∞
n=0
n! 1! 2! 3!

X x 2n+1 x3 x5 x7
sin x = (−1)n =x− + + + ··· R=∞
n=0
(2n + 1)! 3! 5! 7!


X x 2n x2 x4 x6
cos x = (−1)n = 1− + − +··· R=∞
n=0
(2n)! 2! 4! 6!


−1
X x 2n+1 x3 x5 x7
tan x= (−1)n =x− + + + ··· R=1
n=0
2n + 1 3! 5! 7!

∞  
k
X k k(K − 1) 2 k(K − 1)(k − 2) 3
(1 + x) = x n = 1 + kx + x + x +··· R = 1
n=0
n 2! 3!
Table 1: Important Maclaurin Reries and their Radii of Convergence
Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)
Sequence and Series
December 19, 2018 35 / 1
Taylor and Maclaurin Series Theorem 3

Example 10
Z
2
(a) Evaluate e −x dx as an infinite series
Z
2
(b) Evaluate e −x dx correct to within an error of 0.001.
Solution
2
(a) First we find the Maclaurin series for f (x) = e −x . Although it is possible to
use the direct method, let’s find it simply by replacing x with −x 2 in thae series
for e x given in Table 1. Thus, for all values of x
∞ ∞
2 X (−x 2 )n X −x 2n x2 x4 x6
e −x = = (−1)n =1− + − + ···
n=0
n! n=0
n! 1! 2! 3!
Now we integrate term by term:

x2 x4 x5 2n
Z Z  
−x 2 nx
e dx = 1− + − + · · · + (−1) + ···
1! 2! 3! n!

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 36 / 1
Taylor and Maclaurin Series Theorem 3

Example 10 continued

x3 x5 x7 x 2n+1
=c +x − + − + · · · + (−1)n + ···
3 · 1! 5 · 2! 7 · 3! (2n + 1)n!
2
This series converges fro all x because the original series for e −x converges for all
x.
‘(b) The fundamental Theorem of Calculus gives
Z h i1
2
x3 x5 x7 x9
e −x dx = 1 − 3·1! + 5·2! − 7·3! + 9·4! − ···
0
1 1 1 1
= 1− 3 + 10 − 42 + 216 − ···

1 1 1 1
≈ 1− 3 + 10 − 42 + 216 ≈ 0.7475

The Alternating Series Estimation Theorem shows that the error involved in this
approximation is less than
1 1
= < 0.001
11 · 5! 1320
Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)
Sequence and Series December 19, 2018 37 / 1
Taylor and Maclaurin Series Theorem 3

Another use of Taylor series is illustrated in the next example. The limit could be
found with I’Hospital’s Rule, but instead we use a series.
Example 11
ex − 1 − x
Evaluate lim
x→0 x2
Solution
 
x x2 x3
x
e −1−x 1+ 1! + 2! + 3! + ··· − 1 − x
lim = lim
x→0 x2 x→0 x2
x2 x3 x4
2! + + 3! + ···
= lim
x→0 x2
x2 x3
 
1 x 1
= lim + + + + ··· =
x→0 2 3! 4! 5! 2

because power series are continuous functions.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 38 / 1
Multiplication and Division of Power Series

MULTIPLICATION AND DIVISION OF POWER SERIES


If power series are added or subtracted, they behave like polynomials. In fact as
the following example illustrates, they can also be multiplied and divided like
polynomials. We find only the first few terms because the calculations for the
later terms becomes tedious and the initial terms are the most important ones.

Example 12
Find the first three nonzero terms in the Maclaurin series for
(a) e x sin x and
(b) tan x
Solution
(a) Using the Maclaurin series for e x and sin x in Table 1, we have

x2 x3 x3
  
x
e x sin x = 1 + + + + ··· x− + ···
1! 2! 3! 3!
We multiply these expressions, collecting like terms just as for polynomials:

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 39 / 1
Multiplication and Division of Power Series

Example 12 continued

1 + x + 12 x 2 + 16 x 3 + · · ·
x − 61 x 3 + · · ·
×
x + x 2 + 12 x 3 + 61 x 4 + · · ·
− 16 x 3 − 16 x 4 − · · ·
+
x + x 2 + 13 x 3 + · · ·

Thus e x sin x = x + x 2 + 13 x 3 + · · ·

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 40 / 1
Multiplication and Division of Power Series

Example 12 continued

(b) Using the Maclaurin series in Table 1, we have


x3 x5
sin x x− 3! + 5! − ···
tan x = = x2 x4
tan x 1− 2! + 4! − ···
We use a procedure like long division:

x + 13 x 3 + 15
2 5
x + ···
1 2 1 4 1 3 1 5
1− 2x + 24 x − · · · ) x − 6 x + 120 x − ···
x − 21 x 3 + 1 5
24 x − ···
1 3 1 5
3x − 30 x + · · ·
1 3 1 5
3x − 6x + · · ·
2 5
15 x + ···

Thus tan x = x + 13 x 3 + 2 5
15 x + ···

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 41 / 1
Multiplication and Division of Power Series

Example 12 continued

Although we have not attempted to justify the formal manipulations used in


ExampleP12, they are legitimate.
P There is a Theorem which states that if both
f (x) = cn x n and g (x) = bn x n converge for |x| < R and the series are
multiplied as if they were polynomials, then the resulting series also converges for
|x| < R and represents f (x)g (x). For division we require b0 6= 0; the resulting
series converges for sufficiently small |x|.

Gabriel Asare Okyere (Kwame Nkrumah Unversity of Science and Technology.)


Sequence and Series December 19, 2018 42 / 1

You might also like