Docsity

Power Series Methods, Study notes of Mathematics

Toggle sidebar
bg1
Chapter 7
Power series methods
7.1 Power series
Note: 1 or 1.5 lecture , §3.1 in [EP], §5.1 in [BD]
Many functions can be written in terms of a power series
∞
X
k=0
ak(x−x0)k.
If we assume that a solution of a differential equation is written as a power series, then perhaps we
can use a method reminiscent of undetermined coefficients. That is, we will try to solve for the
numbers
ak
. Before we can carry out this process, let us review some results and concepts about
power series.
7.1.1 Definition
As we said, a power series is an expression such as
∞
X
k=0
ak(x−x0)k=a0+a1(x−x0)+a2(x−x0)2+a3(x−x0)3+··· ,(7.1)
where a0,a1,a2,...,ak, . . . and x0are constants. Let
Sn(x)=
n
X
k=0
ak(x−x0)k=a0+a1(x−x0)+a2(x−x0)2+a3(x−x0)3+· ·· +an(x−x0)n,
denote the so-called partial sum. If for some x, the limit
lim
n→∞ Sn(x)=lim
n→∞
n
X
k=0
ak(x−x0)k
247
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Power Series Methods and more Study notes Mathematics in PDF only on Docsity!

Chapter 7

Power series methods

7.1 Power series

Note: 1 or 1.5 lecture , §3.1 in [EP], §5.1 in [BD]

Many functions can be written in terms of a power series

∑^ ∞

k= 0

ak(x − x 0 )

k .

If we assume that a solution of a differential equation is written as a power series, then perhaps we

can use a method reminiscent of undetermined coefficients. That is, we will try to solve for the

numbers ak. Before we can carry out this process, let us review some results and concepts about

power series.

7.1.1 Definition

As we said, a power series is an expression such as

∑^ ∞

k= 0

ak(x − x 0 )

k = a 0 + a 1 (x − x 0 ) + a 2 (x − x 0 )

2

  • a 3 (x − x 0 )

3

  • · · · , (7.1)

where a 0 , a 1 , a 2 ,... , ak,... and x 0 are constants. Let

S (^) n(x) =

∑^ n

k= 0

ak(x − x 0 )

k = a 0 + a 1 (x − x 0 ) + a 2 (x − x 0 )

2

  • a 3 (x − x 0 )

3

  • · · · + an(x − x 0 )

n ,

denote the so-called partial sum. If for some x, the limit

lim n→∞

S (^) n(x) = lim n→∞

∑^ n

k= 0

ak(x − x 0 )

k

248 CHAPTER 7. POWER SERIES METHODS

exists, then we say that the series (7.1) converges at x. Note that for x = x 0 , the series always

converges to a 0. When (7.1) converges at any other point x , x 0 , we say that (7.1) is a convergent

power series. In this case we write

∑^ ∞

k= 0

ak(x − x 0 )

k = lim n→∞

∑^ n

k= 0

ak(x − x 0 )

k .

If the series does not converge for any point x , x 0 , we say that the series is divergent.

Example 7.1.1: The series

∞ ∑

k= 0

k!

x

k = 1 + x +

x

2

x

3

is convergent for any x. Recall that k! = 1 · 2 · 3 · · · k is the factorial. By convention we define 0! = 1.

In fact, you may recall that this series converges to e

x .

We say that (7.1) converges absolutely at x whenever the limit

lim n→∞

n ∑

k= 0

|ak| |x − x 0 |

k

exists. That is, if the series

∞

k= 0

|ak| |x − x 0 |

k is convergent. Note that if (7.1) converges absolutely

at x, then it converges at x. However, the opposite is not true.

Example 7.1.2: The series

k= 1

k

x

k

converges absolutely at any x ∈ (− 1 , 1). It converges at x = −1, as

∞

k= 1

(−1)

k

k

converges (condition-

ally) by the alternating series test. But the power series does not converge absolutely at x = −1,

because

∞

k= 1

1

k

does not converge. The series diverges at x = 1.

7.1.2 Radius of convergence

If a series converges absolutely at some x 1 , then for all x such that |x − x 0 | ≤ |x 0 − x 1 | we have

that |ak(x − x 0 )

k | ≤ |ak(x 1 − x 0 )

k | for all k. As the numbers |ak(x 1 − x 0 )

k | sum to some finite limit,

summing smaller positive numbers |ak(x − x 0 )

k | must also have a finite limit. Therefore, the series

must converge absolutely at x. We have the following result.

Theorem 7.1.1. For a power series (7.1), there exists a number ρ (we allow ρ = ∞) called the

radius of convergence such that the series converges absolutely on the interval (x 0 − ρ, x 0 + ρ) and

diverges for x < x 0 − ρ and x > x 0 + ρ. We write ρ = ∞ if the series converges for all x.

250 CHAPTER 7. POWER SERIES METHODS

Example 7.1.3: Suppose we have the series

∑^ ∞

k= 0

−k (x − 1)

k .

First we compute,

A = lim

k→∞

ak+ 1

ak

= lim

k→∞

−k− 1

−k

− 1 = 1 / 2.

Therefore the radius of convergence is 2, and the series converges absolutely on the interval (− 1 , 3).

The ratio test does not always apply. That is the limit of

ak+ 1

ak

∣ (^) might not exist. There exist more

sophisticated ways of finding the radius of convergence, but those would be beyond the scope of

this chapter.

7.1.3 Analytic functions

Functions represented by series are called analytic functions. Not every function is analytic, although

the majority of the functions you have seen in calculus are.

An analytic function f (x) is equal to its Taylor series

∗ near a point x 0. That is, for x near x 0 we

have

f (x) =

∞ ∑

k= 0

f

(k) (x 0 )

k!

(x − x 0 )

k , (7.2)

where f

(k) (x 0 ) denotes the k

th derivative of f (x) at the point x 0.

-10 -5 0 5 10

-10 -5 0 5 10

0

1

2

3

0

1

2

3

Figure 7.2: The sine function and its Taylor approximations around x 0 = 0 of 5

th and 9

th degree.

∗ Named after the English mathematician Sir Brook Taylor (1685 – 1731).

7.1. POWER SERIES 251

For example, sine is an analytic function and its Taylor series around x 0 = 0 is given by

sin(x) =

∑^ ∞

n= 0

n

(2n + 1)!

x

2 n+ 1 .

In Figure 7.2 on the facing page we plot sin (x) and the truncations of the series up to degree 5 and 9.

You can see that the approximation is very good for x near 0, but gets worse for larger x. This is

what will happen in general. To get good approximation far away from x 0 you will need to take

more and more terms of the Taylor series.

7.1.4 Manipulating power series

One of the main properties of power series that we will use is that we can differentiate them term by

term. That is Suppose that

ak(x − x 0 )

k is a convergent power series. Then for x in the radius of

convergence we have

d

dx

∑^ ∞

k= 0

ak(x − x 0 )

k

∑^ ∞

k= 1

kak(x − x 0 )

k− 1 .

Notice that the term corresponding to k = 0 disappeared as it was constant. The radius of conver-

gence of the differentiated series is the same as that of the original.

Example 7.1.4: Let us show that the exponential y = e

x solves y

′ = y. First write

y = e

x

∑^ ∞

k= 0

k!

x

k .

Now differentiate

y

′

∑^ ∞

k= 1

k

k!

x

k− 1

∑^ ∞

k= 1

(k − 1)!

x

k− 1 .

For convenience we reindex the series by simply replacing k with k + 1. The series does not change,

what changes is simply how we write it. After reindexing the series starts at k = 0 again.

∑^ ∞

k= 1

(k − 1)!

x

k− 1

∑^ ∞

k= 0

k!

x

k .

That was precisely the power series for e

x that we started with, so we showed that

d

dx

e

x = e

x .

Convergent power series can be added and multiplied together, and multiplied by constants

using the following rules. Firstly, we can add series by adding term by term,

∑^ ∞

k= 0

ak(x − x 0 )

k

∑^ ∞

k= 0

bk(x − x 0 )

k

∑^ ∞

k= 0

(ak + bk)(x − x 0 )

k .

7.1. POWER SERIES 253

First, write 1 + 2 x + x

2 = (1 + x)

2

1 − (−x)

. Now we compute

x

1 + 2 x + x

2

= x

1 − (−x)

= x

∑^ ∞

k= 0

k x

k

= x

∑^ ∞

k= 0

ck x

k

∞ ∑

k= 0

ck x

k+ 1 ,

where using the formula for product of product of series we obtain, c 0 = 1, c 1 = − 1 − 1 = −2,

c 2 = 1 + 1 + 1 = 3, etc.... Therefore

x

1 + 2 x + x

2

∑^ ∞

k= 1

k+ 1 kx

k = x − 2 x

2

  • 3 x

3 − 4 x

4

  • · · ·

The radius of convergence is at least 1. We use the ratio test

lim k→∞

ak+ 1

ak

= lim k→∞

k+ 2 (k + 1)

k+ 1 k

= lim k→∞

k + 1

k

So the radius of convergence is actually equal to 1.

7.1.6 Exercises

Exercise 7.1.1: Is the power series

∑^ ∞

k= 0

e

k x

k convergent? If so, what is the radius of convergence?

Exercise 7.1.2: Is the power series

∞ ∑

k= 0

kx

k convergent? If so, what is the radius of convergence?

Exercise 7.1.3: Is the power series

∞ ∑

k= 0

k!x

k convergent? If so, what is the radius of convergence?

Exercise 7.1.4: Is the power series

∑^ ∞

k= 0

(2k)!

(x − 10)

k convergent? If so, what is the radius of

convergence?

Exercise 7.1.5: Determine the Taylor series for sin x around the point x 0 = π.

254 CHAPTER 7. POWER SERIES METHODS

Exercise 7.1.6: Determine the Taylor series for ln x around the point x 0 = 1 , and find the radius of

convergence.

Exercise 7.1.7: Determine the Taylor series and its radius of convergence of

1 + x

around x 0 = 0.

Exercise 7.1.8: Determine the Taylor series and its radius of convergence of

x

4 − x

2

around x 0 = 0.

Hint: you will not be able to use the ratio test.

Exercise 7.1.9: Expand x

5

  • 5 x + 1 as a power series around x 0 = 5.

Exercise 7.1.10: Suppose that the ratio test applies to a series

∞ ∑

k= 0

ak x

k

. Show, using the ratio test,

that the radius of convergence of the differentiated series is the same as that of the original series.

256 CHAPTER 7. POWER SERIES METHODS

We reindex the series (replace k with k + 2) to obtain

y

′′

∞ ∑

k= 0

(k + 2) (k + 1) ak+ 2 x

k .

Now we plug y and y

′′ into the differential equation

0 = y

′′ − y =

k= 0

(k + 2) (k + 1) ak+ 2 x

k

k= 0

ak x

k

∞ ∑

k= 0

(k + 2) (k + 1) ak+ 2 x

k − ak x

k

∞ ∑

k= 0

(k + 2) (k + 1) ak+ 2 − ak

x

k .

As y

′′ − y is supposed to be equal to 0, we know that the coefficients of the resulting series must be

equal to 0. Therefore,

(k + 2) (k + 1) ak+ 2 − ak = 0 , or ak+ 2 =

ak

(k + 2)(k + 1)

The above equation is called a recurrence relation for the coefficients of the power series. It did

not matter what a 0 or a 1 was, they can be arbitrary. But once we pick a 0 and a 1 , then all other

coefficients are determined by the recurrence relation.

So let us see what the coefficients must be. First, a 0 and a 1 are arbitrary

a 2 =

a 0

, a 3 =

a 1

, a 4 =

a 2

a 0

, a 5 =

a 3

a 1

So we note that for even k, that is k = 2 n we get

ak = a 2 n =

a 0

(2n)!

and for odd k, that is k = 2 n + 1 we have

ak = a 2 n+ 1 =

a 1

(2n + 1)!

Let us write down the series

y =

∑^ ∞

k= 0

ak x

k

∑^ ∞

n= 0

a 0

(2n)!

x

2 n

a 1

(2n + 1)!

x

2 n+ 1

= a 0

∑^ ∞

n= 0

(2n)!

x

2 n

  • a 1

∑^ ∞

n= 0

(2n + 1)!

x

2 n+ 1 .

Now we recognize the two series as the hyperbolic sine and cosine. Therefore,

y = a 0 cosh x + a 1 sinh x.

7.2. SERIES SOLUTIONS OF LINEAR SECOND ORDER ODES 257

Of course, in general we will not be able to recognize the series that appears, since usually there

will not be any elementary function that matches it. In that case we will be content with the series.

Example 7.2.2: Let us do a more complex example. Suppose we wish to solve Airy’s equation

† ,

that is

y

′′ − xy = 0 ,

near the point x 0 = 0. Note that x 0 = 0 is an ordinary point.

We try

y =

∞ ∑

k= 0

ak x

k .

We differentiate twice (as above) to obtain

y

′′

∑^ ∞

k= 2

k (k − 1) ak x

k− 2 .

Now we plug into the equation

0 = y

′′ − xy =

k= 2

k (k − 1) ak x

k− 2

− x

k= 0

ak x

k

k= 2

k (k − 1) ak x

k− 2

k= 0

ak x

k+ 1

Now we reindex to make things easier to sum

0 = y

′′ − xy =

2 a 2 +

∑^ ∞

k= 1

(k + 2) (k + 1) ak+ 2 x

k

k= 1

ak− 1 x

k

= 2 a 2 +

∑^ ∞

k= 1

(k + 2) (k + 1) ak+ 2 − ak− 1

x

k .

Again y

′′ − xy is supposed to be 0 so first we notice that a 2 = 0 and also

(k + 2) (k + 1) ak+ 2 − ak− 1 = 0 , or ak+ 2 =

ak− 1

(k + 2)(k + 1)

Now we jump in steps of three. First we notice that since a 2 = 0 we must have that, a 5 = 0, a 8 = 0,

a 11 = 0, etc.... In general a 2 + 3 n = 0.

The constants a 0 and a 1 are arbitrary and we obtain

a 3 =

a 0

, a 4 =

a 1

, a 6 =

a 3

a 0

, a 7 =

a 4

a 1

† Named after the English mathematician Sir George Biddell Airy (1801 – 1892).

7.2. SERIES SOLUTIONS OF LINEAR SECOND ORDER ODES 259

-5.0 -2.5 0.0 2.5 5.

-5.0 -2.5 0.0 2.5 5.

-5.

-2.

-5.

-2.

Figure 7.3: The two solutions y 1 and y 2 to Airy’s equation.

We differentiate (as above) to obtain

y

′

∞ ∑

k= 1

kak x

k− 1 ,

y

′′

∞ ∑

k= 2

k (k − 1) ak x

k− 2 .

Now we plug into the equation

0 = y

′′ − 2 xy

′

  • 2 ny =

k= 2

k (k − 1) ak x

k− 2

− 2 x

k= 1

kak x

k− 1

  • 2 n

k= 0

ak x

k

k= 2

k (k − 1) ak x

k− 2

k= 1

2 kak x

k

k= 0

2 nak x

k

2 a 2 +

∑^ ∞

k= 1

(k + 2) (k + 1) ak+ 2 x

k

k= 1

2 kak x

k

2 na 0 +

∑^ ∞

k= 1

2 nak x

k

= 2 a 2 + 2 na 0 +

∑^ ∞

k= 1

(k + 2) (k + 1) ak+ 2 − 2 kak + 2 nak

x

k .

As y

′′ − 2 xy

′

  • 2 ny = 0 we have

(k + 2) (k + 1) ak+ 2 + (− 2 k + 2 n)ak = 0 , or ak+ 2 =

(2k − 2 n)

(k + 2)(k + 1)

ak.

This recurrence relation actually includes a 2 = −na 0 (which comes about from 2a 2 + 2 na 0 = 0).

260 CHAPTER 7. POWER SERIES METHODS

Again a 0 and a 1 are arbitrary.

a 2 =

2 n

a 0 , a 3 =

2(1 − n)

a 1 ,

a 4 =

2(2 − n)

a 2 =

2 (2 − n)(−n)

a 0 ,

a 5 =

2(3 − n)

a 3 =

2 (3 − n)(1 − n)

a 1 ,...

Let us separate the even and odd coefficients. We find that

a 2 m =

m (−n)(2 − n) · · · (2m − 2 − n)

(2m)!

a 2 m+ 1 =

m (1 − n)(3 − n) · · · (2m − 1 − n)

(2m + 1)!

Let us write down the two series, one with the even powers and one with the odd.

y 1 (x) = 1 +

2(−n)

x

2

2 (−n)(2 − n)

x

4

3 (−n)(2 − n)(4 − n)

x

6

  • · · · ,

y 2 (x) = x +

2(1 − n)

x

3

2 (1 − n)(3 − n)

x

5

3 (1 − n)(3 − n)(5 − n)

x

7

  • · · ·.

We then write

y(x) = a 0 y 1 (x) + a 1 y 2 (x). (7.8)

We also notice that if n is a positive even integer, then y 1 (x) is a polynomial as all the coefficients

in the series beyond a certain degree are zero. If n is a positive odd integer, then y 2 (x) is a polynomial.

For example if n = 4, then

y 1 (x) = 1 +

x

2

2 (−4)(2 − 4)

x

4 = 1 − 4 x

2

x

4

. (7.9)

7.2.1 Exercises

In the following exercises, when asked to solve an equation using power series methods, you should

find the first few terms of the series, and if possible find a general formula for the k

th coefficient.

Exercise 7.2.1: Use power series methods to solve y

′′

  • y = 0 at the point x 0 = 1.

Exercise 7.2.2: Use power series methods to solve y

′′

  • 4 xy = 0 at the point x 0 = 0.

Exercise 7.2.3: Use power series methods to solve y

′′ − xy = 0 at the point x 0 = 1.

Exercise 7.2.4: Use power series methods to solve y

′′

  • x

2 y = 0 at the point x 0 = 0.