Professional Documents
Culture Documents
f (x) = c0 +c1 (x−a)+c2 (x−a)2 +c3 (x−a)3 +c4 (x−a)4 +. . . |x−a| < R . . . . . . (1)
f (a) = c0
Differentiating the series in Equation 1 term by term
f 0 (a) = c1
Now we differentiate both sides of Equation 2 and obtain
− − f 00 (a) = 2c2
Let’s apply the procedure one more time. Differentiation of the series in Equation
3 gives
By now you can see the pattern. If we continue to differentiate and substitute
x = a, we obtain
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.
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
f n (a)
cn =
n!
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.
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.
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 = ∞
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
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
If we let
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
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)!
(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
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.
Example 2
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)!
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!
∞
X 1 1 1 1
e= =1+ + + + ··· Eqn 9
n=0
n! 1! 2! 3!
Example 3
∞ ∞
X f (n) (2) X e2
(x − 2)n = (x − 2)n
n=0
n! n=0
n!
∞
x
X e2
e = (x − 2)n , ∀x Eqn 10
n=0
n!
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
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:
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)!
x3 x5 x7
sin x = x − + − + ···
31 5! 7!
∞
X x 2n+1
= (−1)n ∀x Eqn 12
n=0
(2n + 1)!
Example 5
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
Example 5 Continued
x2 x4 x6
cos x = 1 − + − + ···
2! 4! 6!
∞
X x 2n
= (−1)n ∀x Eqn 13
n=0
(2n)!
Example 6
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.
Example 7 Continued
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.
Example 8
Find the Maclaurin series for f (x) = (1 + x)k , where k is any real number.
Solution: Arranging our work, we have:
Example 8 Continued
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!
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
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
Example 9 continued
∞
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!
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
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:
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 + · · ·
Example 12 continued
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 + ···
Example 12 continued