MA225 Part3
MA225 Part3
Pedro Vilanova
1 / 87
Contents
• Introduction
• Power series
• Convergence of a power series
• Interval and radius of convergence
• Representing functions as power series
• Combining power series
• Multiplication of power series
• Differentiating and integrating power series
• Taylor/Maclaurin series
2 / 87
Introduction
3 / 87
Power series
which is centered at x = 0.
Recall x 0 = 1 and (x − a)0 = 1.
4 / 87
Power series
The series
∞
X xn x2 x3
=1+x + + + ... do you recognize this series?
n=0
n! 2! 3!
and
∞
X
n!x n = 1 + x + 2!x 2 + 3!x 3 + . . .
n=0
5 / 87
Convergence of power series
6 / 87
Convergence of power series
Proposition
P∞
Consider the power series n=0 cn (x − a)n . The series satisfies exactly
one of the following properties:
1 The series converges at x = a and diverges for all x 6= a.
2 The series converges for all real numbers x.
3 There exists a real number R > 0 such that the series converges if
|x − a| < R and diverges if |x − a| > R. At the values x where
|x − a| = R, the series may converge or diverge.
7 / 87
Convergence of power series
Converges
Diverges Diverges
a x
Converges
a x
Diverges Converges Diverges
? ?
a x
a−R a+R
P∞
Let n=0 cn (x − a)n :
• Top: interval of convergence is {a}, the radius is R = 0,
• Middle: interval of convergence is R, the radius is R = ∞,
• Bottom: interval of convergence may be (a−R, a+R), or [a−R, a+R) or
(a−R, a+R], [a−R, a+R], the radius is R.
8 / 87
Interval and radius of convergence
9 / 87
Interval and radius of convergence
10 / 87
Convergence of power series
Example: For each of the following series, find the interval and radius of
convergence. Recall interval is always at least the center point.
P∞ x n
1 n=0 n! . Hint: x ∈ R, including x = 0.
P∞ n
2 n=0 n!x .
P∞ (x−2)n
3 n=0 (n+1)3n .
Exercise: Find the interval and radius of convergence for the series
∞
X xn
√ .
n=1
n
11 / 87
Summary
12 / 87
Summary
13 / 87
Representing functions as power series
where a0 , a1 , .., an ∈ R.
The degree of a polynomial is the largest degree of any term with
nonzero coefficient.
14 / 87
Representing functions as power series
1
1 + x + x2 + x3 + . . . = , for |x| < 1.
1−x
1
Recall the geometric series
a
a + ar + ar 2 + ar 3 + . . . = , for |r | < 1 .
1−r
15 / 87
Representing functions as power series
1
As a result, we are able to represent the function f (x) = 1−x by the
power series
1 + x + x 2 + x 3 + . . . when |x| < 1.
1
Example 1: Sketch the graph of f (x) = 1−x and the graphs of the
PN n
corresponding partial sums SN (x) = n=0 x on the interval (−1, 1).
https://www.wolframcloud.com/env/pguerra0/PowerSeries.nb
16 / 87
Representing functions as power series
1
Example 2: Sketch a graph of f (x) = 1−x 2 and the corresponding
PN
partial sums SN (x) = n=0 x 2n on the interval (−1, 1).
2(N+1)
Hint: SN (x) = 1 + x 2 + . . . + x 2N = 1−x
1−x 2 .
x2
2 f (x) = 4−x 2
17 / 87
Representing functions as power series
Solution (1) This is again the sum of a geometric series:
1 1
3
= .
1+x 1 − (−x 3 )
1 1
=
1 + x3 1 − (−x 3 )
∞
X n
= −x 3
n=0
= 1 − x3 + x6 − x9 + . . . .
18 / 87
Representing functions as power series
|x|3 < 1 .
To remove the cube, consider that |x| ≥ 0 for any x, and thus we can
take cubic root in both sides of |x|3 < 1 obtaining the result since cube
function is strictly increasing.
The interval of convergence is thus (−1, 1), and we have
1
= 1 − x 3 + x 6 − x 9 + . . . for |x| < 1.
1 + x3
19 / 87
Representing functions as power series
Solution (2): A little algebraic manipulation can relate f to a geometric
series.
By factoring 4 out of the two terms in the denominator, we get
x2 x2
2
=
4−x 4 1− x2
4
x2
=
x 2
4 1− 2
x2
4
= 2
1 − x2
∞
X x 2 x 2n
= .
n=0
4 2
x 2
The series converges as long as 2 < 1.
20 / 87
Representing functions as power series
Solving this inequality gives the interval of convergence (−2, 2) and thus
∞
x2 X x 2n+2
2
=
4−x n=0
4n+1
x2 x4 x6
= + 2 + 3 + ...
4 4 4
for |x| < 2.
x3
Exercise: Represent the function f (x) = 2−x using a power series and
find the interval of convergence.
a(z)
Hint: Rewrite f in the form f (z) = 1−r (z) for some functions a and r and
considering the center of the series.
P∞ n+3
Solution: n=0 x2n+1 with interval of convergence (−2, 2).
21 / 87
Working with power series
We now discuss how power series can be combined, differentiated, or
integrated to create new power series.
22 / 87
Combining power series
If we have two power series with the same interval of convergence we can
create a new power series:
1 We can add or subtract the two series to create a new power series,
also with the same interval of convergence,
2 We can multiply a power series by a power of x,
3 We can evaluate a power series at x m for a positive integer m.
23 / 87
Combining power series
2 For any integer m ≥ 0 and any real number b, the power series
P ∞ m n m
n=0 bx cn x converges to bx f (x) on I .
24 / 87
Combining power series
P∞
Example: Suppose that n=0 an x n is a power
P∞ series whose interval of
convergence is (−1, 1), and suppose that n=0 bn x n is a power series
whose interval of convergence is (−2, 2).
P∞ n n
1 Find the interval of convergence of the series n=0 (an x + bn x ).
P∞ n n
2 Find the interval of convergence of the series n=0 an 3 x .
25 / 87
Combining power series
26 / 87
Constructing power series from known
ones
1
Example: Use the power series representation for f (x) = 1−h(x) to
construct a power series for each of the following functions. Find the
interval of convergence of the power series.
3x
1 f (x) = 1+x 2 .
1
2 f (x) = (x−1)(x−3) .
27 / 87
Constructing power series from known
ones
Solution (1): First write f (x) as
1
f (x) = 3x .
1 − (−x 2 )
1
Using the power series representation f (x) = 1−(−x 2 ) and (3), we find
1
Since the interval of convergence of the series for 1−h(x) is (−1, 1), the
interval of convergence for this new series is the set of real numbers x
such that −x 2 = x 2 < 1 iff |x| < 1. Therefore, the interval of
convergence is (−1, 1).
28 / 87
Constructing power series from known
ones
Solution (2): To find the power series representation, use partial
1
fractions to write f (x) = (x−1)(x−3) as the sum of two fractions. We have
29 / 87
Constructing power series from known
ones
30 / 87
Finding the function represented by a
given power series
31 / 87
Finding the function represented by a
given power series
Solution: Recall that a geometric series starting at n = 0 is given by
∞
X 1
rn = , |r | < 1.
n=0
1−r
32 / 87
Finding the function represented by a
given power series
1 1 − (1 − 2x) 2x
−1= = .
1 − 2x 1 − 2x 1 − 2x
Thus, the function represented by the series is
2x 1
f (x) = , |2x| < 1 iff |x| < .
1 − 2x 2
33 / 87
Multiplication of power series
We can also create new power series by multiplying power series. Being
able to multiply two power series provides another way of finding power
series representations for functions. The way we multiply them is similar
to how we multiply polynomials. For example, suppose we want to
multiply
X∞
cn x n = c0 + c1 x + c2 x 2 + . . .
n=0
and
∞
X
dn x n = d0 + d1 x + d2 x 2 + . . .
n=0
We have
∞ ∞
! !
X X
n n
= c0 + c1 x + c2 x 2 + . . . d0 + d1 x + d2 x 2 + . . .
cn x dn x
n=0 n=0
= c0 d0 + (c1 d0 + c0 d1 ) x + (c2 d0 + c1 d1 + c0 d2 ) x 2 + . . .
Then
∞ ∞ ∞
! !
X X X
n n
cn x dn x = en x n
n=0 n=0 n=0
and
∞
X
en x n converges to f (x)g (x) on I .
n=0
P∞ n
The series n=0 en x is known as the Cauchy product.
35 / 87
Example multiplication
Note: Recall original algebraic rules for series lacked multiplication case.
Multipliying series (that are not necessarily power series) requires
absolute convergence.
Multiply
∞
1 X
= xn = 1 + x + x2 + x3 + . . . for |x| < 1 ,
1−x n=0
with
∞
1 X n
2
= x2 = 1 + x2 + x4 + x6 + . . . for |x| < 1 ,
1−x n=0
36 / 87
Example multiplication
1
to construct a power series for f (x) = (1−x)(1−x 2 ) on the interval (−1, 1).
That is
1 + x + x2 + x3 + . . . 1 + x2 + x4 + x6 + . . . .
Writing out the first several terms, we see that the product is given by
1 + x2 + x4 + x6 + . . .
+ x + x3 + x5 + x7 + . . .
+ x2 + x4 + x6 + x8 + . . .
+ x3 + x5 + x7 + x9 + . . . + . . .
(−1, 1), the series for the product also converges on the interval (−1, 1).
37 / 87
Example multiplication
In the next slide we show the table. To find the coefficient of x n , you add
up all the entries in the table that lie along the diagonal corresponding to
i + j = n.
38 / 87
Example multiplication
× 1 (x 0 ) 0 (x 1 ) 1 (x 2 ) 0 (x 3 ) 1 (x 4 ) 0 (x 5 )
1 (x 0 ) 1 0 1 0 1 0
1 (x 1 ) 1 0 1 0 1 0
1 (x 2 ) 1 0 1 0 1 0
1 (x 3 ) 1 0 1 0 1 0
.. .. .. .. .. .. ..
. . . . . . .
39 / 87
Example multiplication
Example 2: Consider the product of
∞
1 X
f (x) = = xn = 1 + x + x2 + x3 + · · · , |x| < 1,
1−x n=0
and
∞
1 X
g (x) = 2
= (n+1)x n = 1+2x+3x 2 +4x 3 +5x 4 +· · · , |x| < 1.
(1 − x) n=0
The product is
∞
1 X
f (x)g (x) = = cn x n .
(1 − x)3 n=0
(n + 1)(n + 2)
cn = .
2
40 / 87
Example multiplication
Let’s see how this comes out via the Cauchy product using a table.
x0 x1 x2 x3 x4 x5 ···
1
f (x) = 1−x 1 1 1 1 1 1 ···
1
g (x) = (1−x) 2 1 2 3 4 5 6 ···
Now, we set up a table for the product where the rows come from f (x)
and the columns from g (x). Each entry is the product of the coefficient
from f (x) (on its row) with that from g (x) (on its column). Since every
coefficient in f (x) is 1, each row will be identical to the sequence from
g (x).
× 1 (x 0 ) 2 (x 1 ) 3 (x 2 ) 4 (x 3 ) 5 (x 4 ) 6 (x 5 )
0
1 (x ) 1 2 3 4 5 6
1 (x 1 ) 1 2 3 4 5 6
1 (x 2 ) 1 2 3 4 5 6
1 (x 3 ) 1 2 3 4 5 6
.. .. .. .. .. .. ..
. . . . . . .
41 / 87
Example multiplication
c0 = 1,
c1 = 3,
c2 = 6,
c3 = 10,
c4 = 15,
c5 = 21, etc.
42 / 87
Example multiplication
Example 3:
1 X
f (x) = = 2n x n = 1 + 2x + 4x 2 + 8x 3 + 16x 4 + · · · ,
1 − 2x
n≥0
1 X
g (x) = = 3n x n = 1 + 3x + 9x 2 + 27x 3 + 81x 4 + · · · ,
1 − 3x
n≥0
1 1
for |x| < and |x| <
2 3 respectively.
Their product is
1
f (x)g (x) = ,
(1 − 2x)(1 − 3x)
and its coefficient for x n is given by the Cauchy product
n n k
X X 2
cn = 2k 3n−k = 3n .
3
k=0 k=0
43 / 87
Example multiplication
It is the partial sum of a geometric series with r = 2/3 and a = 1. Recall
the formula for a geometric series:
n
X 1 − r n+1
ri = .
1−r
i=0
Substitute r = 23 :
44 / 87
Example multiplication
Simplify by noting that:
n+1
2
3n+1 = 2n+1 .
3
Thus,
cn = 3n+1 − 2n+1 .
We now construct the “folding” table. We first list a few coefficients of
each series:
x0 x1 x2 x3 x4 x5
1
f (x) = 1−2x 1 2 4 8 16 32
1
g (x) = 1−3x 1 3 9 27 81 243
Now form the multiplication table where the entry in row i and column j
is
(row i coefficient) × (column j coefficient).
45 / 87
Example multiplication
1 (x 0 ) 3 (x 1 ) 9 (x 2 ) 27 (x 3 ) 81 (x 4 ) 243 (x 5 )
0
1 (x ) 1 3 9 27 81 243
2 (x 1 ) 2 6 18 54 162 486
4 (x 2 ) 4 12 36 108 324 972
8 (x 3 ) 8 24 72 216 648 1944
16 (x 4 ) 16 48 144 432 1296 3888
32 (x 5 ) 32 96 288 864 2592 7776
In other words,
Diagonal i +j = 0: 1
Diagonal i +j = 1: 3+2=5
Diagonal i +j = 2: 9 + 6 + 4 = 19
Diagonal i +j = 3: 27 + 18 + 12 + 8 = 65
Diagonal i +j = 4: 81 + 54 + 36 + 24 + 16 = 211
Diagonal i +j = 5: 243 + 162 + 108 + 72 + 48 + 32 = 665
46 / 87
Differentiating and Integrating power
series
47 / 87
Differentiating and Integrating power
series
For convergent power series we can differentiate and integrate
term-by-term like in a finite polynomial. That is, if
∞
X
f (x) = cn x n = c0 + c1 x + c2 x 2 + . . .
n=0
and
x2 x3
Z
f (x)dx = C + c0 x + c1 + c2 + . . .
2 3
converge on the same interval I .
Note: This is not an obvious result. This
P∞ says differentiation and
integration operators commutes with i=1 .
48 / 87
Differentiating and Integrating power
series
49 / 87
Differentiating and Integrating power
series
Proposition (Term-by-term differentiation)
P∞
Suppose that the power series n=0 cn (x − a)n converges on the interval
(a − R, a + R) for some R > 0. Let f be the function defined by the series
∞
X
f (x) = cn (x − a)n = c0 + c1 (x − a) + c2 (x − a)2 + c3 (x − a)3 + . . .
n=0
for |x − a| < R.
50 / 87
Differentiating and Integrating power
series
Proposition (Term-by-term integration)
RLet f be a function as defined in the previous proposition. To find
f (x)dx, we can integrate the series term-by-term. The resulting series
converges on (a − R, a + R), and we have
∞
(x − a)n+1 (x − a)2 (x − a)3
Z X
f (x)dx = C + cn = C +c0 (x−a)+c1 +c2 +. . .
n=0
n+1 2 3
for |x − a| < R.
Here the integration constant C must be determined.
51 / 87
Differentiating power series
1
g (x) =
(1 − x)2
52 / 87
Differentiating power series
Solution: We find a power series representation for g by differentiating
the power series for f term-by-term. The result is
∞
1 d 1 X d
g (x) = = = (x n )
(1 − x)2 dx 1−x n=0
dx
d
1 + x + x2 + x3 + . . .
=
dx
= 0 + 1 + 2x + 3x 2 + 4x 3 + . . . (write the series in terms of x n )
X∞
= (n + 1)x n ,
n=0
53 / 87
Differentiating power series
Another way to solve this problem is to write
1 1
2
= ,
(1 − x) 1 − (2x − x 2 )
54 / 87
Differentiating power series
Exercise: P
Use the result of the previous example to evaluate the sum of
∞
the series n=0 n+1
4n .
55 / 87
Differentiating power series
Solution: We have
∞ ∞ n
X n+1 X 1
= (n + 1)
n=0
4n n=0
4
1 16
= = .
1 2 9
1− 4
So looking back to geometric series sum formula, this exercise shows that
we can apply a similar formula to a non-geometric series.
Gives a conceptual insight: It shows how interconnected different series
are and how a small transformation (like differentiation) can reveal new
relationships.
56 / 87
Differentiating power series
1
P∞ n
Exercise: Differentiate the series (1−x) 2 = n=0 (n + 1)x term-by-term
2
to find a power series representation for (1−x)3 on the interval (−1, 1).
57 / 87
Differentiating power series
Solution:
d 1 0 − 2(1 − x) · (−1) 2
= =
dx (1 − x)2 (1 − x)4 (1 − x)3
X∞
= (n + 1)nx n−1 (write the series in terms of x n )
n=0
∞
X
= (n + 1)nx n−1
n=1
= 2x + 6x 1 + 12x 2 + ...
0
X∞
= (n + 2)(n + 1)x n (written in terms of x n and starting from n=0 ∗ )
n=0
∗ whenever possible
58 / 87
Integrating power series
59 / 87
Integrating power series
Solution: To find a power series for f (x) = ln(1 + x), we integrate the
series term-by-term.
x2 x3 x4
Z Z
f 0 (x)dx = 1 − x + x 2 − x 3 + . . . dx = C + x − + − + . . .
2 3 4
60 / 87
Integrating power series
We have
x2 x3 x4
C +x − + − + . . . = ln (1 + x) .
2 3 4
At x = 0 we have
C + 0 + 0... = ln (1 + 0) = 0 .
61 / 87
Integrating power series
n+1 x n
P∞
Exercise: Integrate the power
R series ln(1 + x) = n=1 (−1) n
term-by-term to evaluate ln(1 + x)dx.
You
R can still evaluate the integral
ln (1 + x)dx = (1 + x) ln (1 + x) − x + C . Steps: use substitution
u = 1 + x and then integration by parts. But the idea is that integrating
the power series is easier.
x n+1 xn
Hint: Use the fact that (n+1)n is an antiderivative of n .
Answer:
∞
X (−1)n+1 x n+1
.
n=2
(n + 1)n
62 / 87
Remark: Uniqueness of power series
Up to this point, we have shown several techniques for finding power
series representations for functions. However, how do we know that these
power series are unique? That is, given a function f and a power series
for f at a, is it possible that there is a different power series for f at a
that we could have found if we had used a different technique? The
answer to this question is no.
f 00 (x) + f (x) = 0 .
https://en.wikipedia.org/wiki/Harmonic_oscillator#Simple_harmonic_oscillator
https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator
P∞ (−1)n x 2n
Observation: We will see later that f (x) = n=0 (2n)! = cos(x)
64 / 87
Power series and differential equations
Solution 1: We start with
∞
X (−1)n x 2n
f (x) = .
n=0
(2n)!
Notice that
(2n)! = 2n(2n − 1)(2n − 2)!,
65 / 87
Power series and differential equations
so
2n(2n − 1) 1
= .
(2n)! (2n − 2)!
Thus,
∞
X (−1)n x 2n−2
f 00 (x) = .
n=1
(2n − 2)!
Thus,
f 00 (x) + f (x) = 0.
This shows that f (x) is a solution of the differential equation.
66 / 87
Power series and differential equations
https://en.wikipedia.org/wiki/Vibrations_of_a_circular_membrane
R1
(b) Evaluate 0
J0 (x) dx correct to three decimal places.
Observation: For large x, Bessel functions behave like damped sine and
cosine functions.
67 / 87
Power series and differential equations
Since the series for J0 (x) converges (absolutely) on [0, 1], we can
integrate term by term:
1 ∞ Z 1 ∞
(−1)n (−1)n
Z X
2n
X 1
J0 (x) dx = 2n 2
x dx = 2n (n!)2 2n + 1
.
0 n=0
2 (n!) 0 n=0
2
For n = 2:
(−1)2 1 1 1 1
· = · = ≈ 0.003125 .
24 (2!)2 5 16 · 4 5 320
68 / 87
Power series and differential equations
For n = 3:
(−1)3 1 1 1 1
6 2
· =− · =− ≈ −0.000062 .
2 (3!) 7 64 · 36 7 16128
Adding these:
69 / 87
Power series and differential equations
70 / 87
Taylor/Maclaurin Series
71 / 87
Taylor/Maclaurin Series
Idea: smoothness implies predictability and behaviour can be captured
by examining its derivatives at that point. P-S is a polynomial object. To
make the polynomial a good approximation, we want it to match f not
just at the point a but also in how it changes.
Consider a function f that has a power series representation at x = a:
∞
X
cn (x − a)n = c0 + c1 (x − a) + c2 (x − a)2 + . . .
n=0
72 / 87
Taylor/Maclaurin Series
In addition, we would like the first derivative of the power series to equal
f 0 (a) at x = a. Differentiating term-by-term, we see that
∞
!
d X
cn (x − a)n = c1 + 2c2 (x − a) + 3c3 (x − a)2 + . . .
dx n=0
So c1 = f 0 (a).
Continuing in this way, we look for coefficients cn such that all the
derivatives of the power series will agree with all the corresponding
derivatives of f at x = a.
73 / 87
Taylor/Maclaurin Series
∞
!
000 setd3 X
n
f (a) = cn (x − a) = 3·2c3 +4·3·2c4 (a−a)+5·4·3c5 (a−a)2 +· · · = 3·2c3
dx 3 n=0
x=a
f (n) (a)
cn = .
n!
74 / 87
Taylor/Maclaurin Series
75 / 87
Taylor/Maclaurin Series
76 / 87
Taylor/Maclaurin Series
p0 (x) = f (a)
p1 (x) = f (a) + f 0 (a)(x − a)
f 00 (a)
p2 (x) = f (a) + f 0 (a)(x − a) + (x − a)2
2!
f 00 (a) f 000 (a)
p3 (x) = f (a) + f 0 (a)(x − a) + (x − a)2 + (x − a)3
2! 3!
respectively.
77 / 87
Using Taylor/Maclaurin polynomial as
approximation
Definition (nth -degree Taylor polynomial)
If f has n derivatives at a, then the nth -degree Taylor polynomial of f at
a is
f 00 (a) f 000 (a) f (n) (a)
pn (x) = f (a)+f 0 (a)(x−a)+ (x−a)2 + (x−a)3 +· · ·+ (x−a)n .
2! 3! n!
p0 (x) = f (a)
p1 (x) = f (a) + f 0 (a)(x − a)
f 00 (a)
p2 (x) = f (a) + f 0 (a)(x − a) + (x − a)2 ,
2!
and so on.
Q: What is a?
https://www.wolframcloud.com/env/pguerra0/TaylorSeries.nb
79 / 87
Using Taylor/Maclaurin polynomial as
approximation
80 / 87
Using Taylor/Maclaurin polynomial as
approximation
Therefore,
p0 (x) = f (1) = 0,
p1 (x) = f (1) + f 0 (1)(x − 1) = x − 1,
f 00 (1) 1
p2 (x) = f (1) + f 0 (1)(x − 1) + (x − 1)2 = (x − 1) − (x − 1)2 ,
2 2
0 f 00 (1) 2 f 000 (1)
p3 (x) = f (1) + f (1)(x − 1) + (x − 1) + (x − 1)3
2 3!
1 1
= (x − 1) − (x − 1)2 + (x − 1)3 .
2 3
81 / 87
Using Taylor/Maclaurin polynomial as
approximation
Example: For each of the following functions, find formulas for the
Maclaurin polynomials p0 , p1 , p2 and p3 . Find a formula for the nth -degree
Maclaurin polynomial. Compare the graphs of p0 , p1 , p2 and p3 with f .
1 f (x) = e x
2 f (x) = sin(x)
3 f (x) = cos(x)
82 / 87
Taylor/Maclaurin Series
p0 (x) = f (0) = 1,
p1 (x) = f (0) + f 0 (0)x = 1 + x,
f 00 (0) 2 1
p2 (x) = f (0) + f 0 (0)x + x = 1 + x + x 2,
2! 2
0 f 00 (0) 2 f 000 (0) 3 1 1
p3 (x) = f (0) + f (0)x + x + x = 1 + x + x 2 + x 3.
2! 3! 2 6
83 / 87
Taylor/Maclaurin Series
The general formula for the nth -degree Maclaurin polynomial for
f (x) = e x is:
n
X f (k) (0) k
pn (x) = x
k!
k=0
Given that f (k) (x) = e x for all k and f (k) (0) = 1 for all k, the general
formula simplifies to:
n
X xk
pn (x) =
k!
k=0
84 / 87
Taylor/Maclaurin Series
p0 (x) = f (0) = 0,
p1 (x) = f (0) + f 0 (0)x = x,
f 00 (0) 2
p2 (x) = f (0) + f 0 (0)x + x = x,
2!
f 00 (0) 2 f 000 (0) 3 1
p3 (x) = f (0) + f 0 (0)x + x + x = x − x 3.
2! 3! 6
85 / 87
Taylor/Maclaurin Series
The general formula for the nth -degree Maclaurin polynomial for
f (x) = sin(x) is
n
X f (k) (0) k
pn (x) = x .
k!
k=0
However, due to the periodic nature of sine’s derivatives, only the odd
terms will have non-zero coefficients, and even terms will vanish.
Therefore, we have:
x3 x5 x7
pn (x) = x − + − + ...
3! 5! 7!
General formula:
n/2
X (−1)k 2k+1
pn (x) = x .
(2k + 1)!
k=0
86 / 87
Taylor/Maclaurin Series
Exercise: Find formulas for the Maclaurin polynomials p0 , p1 , p2 and p3
1
for f (x) = 1+x . Find a formula for the nth -degree Maclaurin polynomial.
Hint: Evaluate the first four derivatives of f and look for a pattern.
Answer:
p0 (x) = 1
p1 (x) = 1 − x
p2 (x) = 1 − x + x 2
p3 (x) = 1 − x + x 2 − x 3
n
X
pn (x) = 1 − x + x 2 − x 3 + · · · + (−1)n x n = (−1)k x k .
k=0
87 / 87