11.2 Power Series Solutions

The power series method introduced in Section 11.1 can be applied to linear equations of any order (as well as to certain nonlinear equations), but its most important applications are to homogeneous second-order linear differential equations of the form

A(x)y+B(x)y+C(x)y=0,
A(x)y''+B(x)y'+C(x)y=0,
(1)

where the coefficients A, B, and C are analytic functions of x. Indeed, in most applications these coefficient functions are simple polynomials.

We saw in Example 3 of Section 11.1 that the series method does not always yield a series solution. To discover when it does succeed, we rewrite Eq. (1) in the form

y+P(x)y+Q(x)y=0
y''+P(x)y'+Q(x)y=0
(2)

with leading coefficient 1, and with P=B/AP=B/A and Q=C/A.Q=C/A. Note that P(x) and Q(x) will generally fail to be analytic at points where A(x) vanishes. For instance, consider the equation

xy+y+xy=0.
xy''+y'+xy=0.
(3)

The coefficient functions in (3) are continuous everywhere. But in the form of (2) it is the equation

y+1xy+y=0
y''+1xy'+y=0
(4)

with P(x)=1/xP(x)=1/x not analytic at x=0x=0.

The point x=ax=a is called an ordinary point of Eq. (2)—and of the equivalent Eq. (1)—provided that the functions P(x) and Q(x) are both analytic at x=a.x=a. Otherwise, x=ax=a is a singular point. Thus the only singular point of Eqs. (3) and (4) is x=0.x=0. Recall that a quotient of analytic functions is analytic wherever the denominator is nonzero. It follows that, if A(a)0A(a)0 in Eq. (1) with analytic coefficients, then x=ax=a is an ordinary point. If A(x), B(x),A(x), B(x), and C(x) are polynomials with no common factors, then x=ax=a is an ordinary point if and only if A(a)0A(a)0.

Example 1

The point x=0x=0 is an ordinary point of the equation

xy+(sinx)y+x2y=0,
xy′′+(sinx)y'+x2y=0,

despite the fact that A(x)=xA(x)=x vanishes at x=0.x=0. The reason is that

P(x)=sinxx=1x(xx33!+x55!)=1x23!+x45!
P(x)=sinxx=1x(xx33!+x55!)=1x23!+x45!

is nevertheless analytic at x=0x=0 because the division by x yields a convergent power series.

Example 2

The point x=0x=0 is not an ordinary point of the equation

y+x2y+x1/2y=0.
y′′+x2y'+x1/2y=0.

For while P(x)=x2P(x)=x2 is analytic at the origin, Q(x)=x1/2Q(x)=x1/2 is not. The reason is that Q(x) is not differentiable at x=0x=0 and hence is not analytic there. (Theorem 1 of Section 11.1 implies that an analytic function must be differentiable.)

Example 3

The point x=0x=0 is an ordinary point of the equation

(1x3)y+(7x2+3x5)y+(5x13x4)y=0
(1x3)y''+(7x2+3x5)y'+(5x13x4)y=0

because the coefficient functions A(x), B(x),A(x), B(x), and C(x) are polynomials with A(0)0A(0)0.

Theorem 2 of Section 3.1 implies that Eq. (2) has two linearly independent solutions on any open interval where the coefficient functions P(x) and Q(x) are continuous. The basic fact for our present purpose is that near an ordinary point a, these solutions will be power series in powers of xa.xa. A proof of the following theorem can be found in Chapter 3 of Coddington, An Introduction to Ordinary Differential Equations (Dover Publications, 1989).

Example 4

Determine the radius of convergence guaranteed by Theorem 1 of a series solution of

(x2+9)y+xy+x2y=0
(x2+9)y''+xy'+x2y=0
(6)

in powers of x. Repeat for a series in powers of x4x4.

Solution

This example illustrates the fact that we must take into account complex singular points as well as real ones. Because

P(x)=xx2+9andQ(x)=x2x2+9,
P(x)=xx2+9andQ(x)=x2x2+9,

the only singular points of Eq. (6) are ±3i.±3i. The distance (in the complex plane) of each of these from 0 is 3, so a series solution of the form cnxncnxn has radius of convergence at least 3. The distance of each singular point from 4 is 5, so a series solution of the form cn(x4)ncn(x4)n has radius of convergence at least 5 (see Fig. 11.2.1).

Example 5

Find the general solution in powers of x of

(x24)y+3xy+y=0.
(x24)y''+3xy'+y=0.
(7)

Then find the particular solution with y(0)=4, y(0)=1y(0)=4, y'(0)=1.

Solution

The only singular points of Eq. (7) are ±2,±2, so the series we get will have radius of convergence at least 2. (See Problem 35 for the exact radius of convergence.) Substitution of

y=n=0cnxn,y=n=1ncnxn1,andy=n=2n(n1)cnxn2
y=n=0cnxn,y'=n=1ncnxn1,andy''=n=2n(n1)cnxn2

in Eq. (7) yields

n=2n(n1)cnxn4n=2n(n1)cnxn2+3n=1ncnxn+n=0cnxn=0.
n=2n(n1)cnxn4n=2n(n1)cnxn2+3n=1ncnxn+n=0cnxn=0.

FIGURE 11.2.1.

Radius of convergence as distance to nearest singularity.

We can begin the first and third summations at n=0n=0 as well, because no nonzero terms are thereby introduced. We shift the index of summation in the second sum by +2,+2, replacing n with n+2n+2 and using the initial value n=0.n=0. This gives

n=0n(n1)cnxn4n=0(n+2)(n+1)cn+2xn+3n=0ncnxn+n=0cnxn=0.
n=0n(n1)cnxn4n=0(n+2)(n+1)cn+2xn+3n=0ncnxn+n=0cnxn=0.

After collecting coefficients of cncn and cn+2,cn+2, we obtain

n=0[(n2+2n+1)cn4(n+2)(n+1)cn+2]xn=0.
n=0[(n2+2n+1)cn4(n+2)(n+1)cn+2]xn=0.

The identity principle yields

(n+1)2cn4(n+2)(n+1)cn+2=0,
(n+1)2cn4(n+2)(n+1)cn+2=0,

which leads to the recurrence relation

cn+2=(n+1)cn4(n+2)
cn+2=(n+1)cn4(n+2)
(8)

for n0.n0. With n=0, 2,n=0, 2, and 4 in turn, we get

c2=c042,c4=3c244=3c04224,andc6=5c446=35c043246.
c2=c042,c4=3c244=3c04224,andc6=5c446=35c043246.

Continuing in this fashion, we evidently would find that

c2n=135(2n1)4n24(2n)c0.
c2n=135(2n1)4n24(2n)c0.

With the common notation

(2n+1)!!=135(2n+1)=(2n+1)!2nn!
(2n+1)!!=135(2n+1)=(2n+1)!2nn!

and the observation that 2·4·6(2n)=2n·n!,246(2n)=2nn!, we finally obtain

c2n=(2n1)!!23nn!c0.
c2n=(2n1)!!23nn!c0.
(9)

(We also used the fact that 4n·2n=23n4n2n=23n.)

With n=1, 3,n=1, 3, and 5 in Eq. (8), we get

c3=2c143,c5=4c345=24c14235,andc7=6c547=246c143357.
c3=2c143,c5=4c345=24c14235,andc7=6c547=246c143357.

It is apparent that the pattern is

c2n+1=246(2n)4n135(2n+1)c1=n!2n(2n+1)!!c1.
c2n+1=246(2n)4n135(2n+1)c1=n!2n(2n+1)!!c1.
(10)

The formula in (9) gives the coefficients of even subscript in terms of c0c0; the formula in (10) gives the coefficients of odd subscript in terms of c1.c1. After we separately collect the terms of the series of even and odd degree, we get the general solution

y(x)=c0(1+n=1(2n1)!!23nn!x2n)+c1(x+n=1n!2n(2n+1)!!x2n+1).
y(x)=c0(1+n=1(2n1)!!23nn!x2n)+c1(x+n=1n!2n(2n+1)!!x2n+1).
(11)

Alternatively,

y(x)=c0(1+18x2+3128x4+51024x6+)+c1(x+16x3+130x5+1140x7+).
y(x)=c0(1+18x2+3128x4+51024x6+)+c1(x+16x3+130x5+1140x7+).
(11′)

Because y(0)=c0y(0)=c0 and y(0)=c1,y'(0)=c1, the given initial conditions imply that c0=4c0=4 and c1=1.c1=1. Using these values in Eq. (11′), the first few terms of the particular solution satisfying y(0)=4y(0)=4 and y(0)=1y'(0)=1 are

y(x)=4+x+12x2+16x3+332x4+130x5+.
y(x)=4+x+12x2+16x3+332x4+130x5+.
(12)

Remark

As in Example 5, substitution of y=cnxny=cnxn in a linear second-order equation with x=0x=0 an ordinary point typically leads to a recurrence relation that can be used to express each of the successive coefficients c2, c3, c4, c2, c3, c4,  in terms of the first two, c0c0 and c1.c1. In this event two linearly independent solutions are obtained as follows. Let y0(x)y0(x) be the solution obtained with c0=1c0=1 and c1=0,c1=0, and let y1(x)y1(x) be the solution obtained with c0=0c0=0 and c1=1.c1=1. Then

y0(0)=1,y0(0)=0andy1(0)=0,y1(0)=1,
y0(0)=1,y'0(0)=0andy1(0)=0,y'1(0)=1,

so it is clear that y0y0 and y1y1 are linearly independent. In Example 5, y0(x)y0(x) and y1(x)y1(x) are defined by the two series that appear on the right-hand side in Eq. (11), which expresses the general solution in the form y=c0y0+c1y1y=c0y0+c1y1.

Translated Series Solutions

If in Example 5 we had sought a particular solution with given initial values y(a) and y(a),y'(a), we would have needed the general solution in the form

y(x)=n=0cn(xa)n;
y(x)=n=0cn(xa)n;
(13)

that is, in powers of xaxa rather than in powers of x. For only with a solution of the form in (13) is it true that the initial conditions

y(a)=c0andy(a)=c1
y(a)=c0andy'(a)=c1

determine the arbitrary constants c0c0 and c1c1 in terms of the initial values of y and y.y'. Consequently, to solve an initial value problem, we need a series expansion of the general solution centered at the point where the initial conditions are specified.

Example 6

Solve the initial value problem

(t22t3)d2ydt2+3(t1)dydt+y=0;y(1)=4,y(1)=1.
(t22t3)d2ydt2+3(t1)dydt+y=0;y(1)=4,y'(1)=1.
(14)

Solution

We need a general solution of the form cn(t1)n.cn(t1)n. But instead of substituting this series in (14) to determine the coefficients, it simplifies the computations if we first make the substitution x=t1,x=t1, so that we wind up looking for a series of the form cnxncnxn after all. To transform Eq. (14) into one with the new independent variable x, we note that

t22t3=(x+1)22(x+1)3=x24,dydt=dydxdxdt=dydx=y,
t22t3=(x+1)22(x+1)3=x24,dydt=dydxdxdt=dydx=y',

and

d2ydt2=[ddx(dydx)]dxdt=ddx(y)=y,
d2ydt2=[ddx(dydx)]dxdt=ddx(y')=y'',

where primes denote differentiation with respect to x. Hence we transform Eq. (14) into

(x24)y+3xy+y=0
(x24)y''+3xy'+y=0

with initial conditions y=4y=4 and y=1y'=1 at x=0x=0 (corresponding to t=1t=1). This is the initial value problem we solved in Example 5, so the particular solution in (12) is available. We substitute t1t1 for x in Eq. (12) and thereby obtain the desired particular solution

y(t)=4+(t1)+12(t1)2+16(t1)3+332(t1)4+130(t1)5+.
y(t)=4+(t1)+12(t1)2+16(t1)3+332(t1)4+130(t1)5+.

This series converges if 1<t<3.1<t<3. (Why?) A series such as this can be used to estimate numerical values of the solution. For instance,

y(0.8)=4+(0.2)+12(0.2)2+16(0.2)3+332(0.2)4+130(0.2)5+,
y(0.8)=4+(0.2)+12(0.2)2+16(0.2)3+332(0.2)4+130(0.2)5+,

so that y(0.8)3.8188y(0.8)3.8188.

The last computation in Example 6 illustrates the fact that series solutions of differential equations are useful not only for establishing general properties of a solution, but also for numerical computations when an expression of the solution in terms of elementary functions is unavailable.

Types of Recurrence Relation

The formula in Eq. (8) is an example of a two-term recurrence relation; it expresses each coefficient in the series in terms of one of the preceding coefficients. A many-term recurrence relation expresses each coefficient in the series in terms of two or more preceding coefficients. In the case of a many-term recurrence relation, it is generally inconvenient or even impossible to find a formula that gives the typical coefficient cncn in terms of n. The next example shows what we sometimes can do with a three-term recurrence relation.

Example 7

Find two linearly independent solutions of

yxyx2y=0.
y''xy'x2y=0.
(15)

Solution

We make the usual substitution of the power series y=cnxn.y=cnxn. This results in the equation

n=2n(n1)cnxn2n=1ncnxnn=0cnxn+2=0.
n=2n(n1)cnxn2n=1ncnxnn=0cnxn+2=0.

We can start the second sum at n=0n=0 without changing anything else. To make each term include xnxn in its general term, we shift the index of summation in the first sum by +2+2 (replace n with n+2n+2), and we shift it by 22 in the third sum (replace n with n2n2). These shifts yield

n=0(n+2)(n+1)cn+2xnn=0ncnxnn=2cn2xn=0.
n=0(n+2)(n+1)cn+2xnn=0ncnxnn=2cn2xn=0.

The common range of these three summations is n2,n2, so we must separate the terms corresponding to n=0n=0 and n=1n=1 in the first two sums before collecting coefficients of xn.xn. This gives

2c2+6c3xc1x+n=2[(n+2)(n+1)cn+2ncncn2]xn=0.
2c2+6c3xc1x+n=2[(n+2)(n+1)cn+2ncncn2]xn=0.

The identity principle now implies that 2c2=0,2c2=0, that c3=16c1,c3=16c1, and the three-term recurrence relation

cn+2=ncn+cn2(n+2)(n+1)
cn+2=ncn+cn2(n+2)(n+1)
(16)

for n2.n2. In particular,

c4=2c2+c012,c5=3c3+c120,c6=4c4+c230,c7=5c5+c342,c8=6c6+c456.
c4=2c2+c012,c7=5c5+c342,c5=3c3+c120,c8=6c6+c456.c6=4c4+c230,
(17)

Thus all values of cncn for n4n4 are given in terms of the arbitrary constants c0c0 and c1c1 because c2=0c2=0 and c3=16c1c3=16c1.

To get our first solution y1y1 of Eq. (15), we choose c0=1c0=1 and c1=0,c1=0, so that c2=c3=0.c2=c3=0. Then the formulas in (17) yield

c4=112,c5=0,c6=190,c7=0,c8=31120;
c4=112,c5=0,c6=190,c7=0,c8=31120;

thus

y1(x)=1+112x4+190x6+31120x8+.
y1(x)=1+112x4+190x6+31120x8+.
(18)

Because c1=c3=0,c1=c3=0, it is clear from Eq. (16) that this series contains only terms of even degree.

To obtain a second linearly independent solution y2y2 of Eq. (15), we take c0=0c0=0 and c1=1,c1=1, so that c2=0c2=0 and c3=16.c3=16. Then the formulas in (17) yield

c4=0,c5=340,c6=0,c7=131008,
c4=0,c5=340,c6=0,c7=131008,

so that

y2(x)=x+16x3+340x5+131008x7+.
y2(x)=x+16x3+340x5+131008x7+.
(19)

Because c0=c2=0,c0=c2=0, it is clear from Eq. (16) that this series contains only terms of odd degree. The solutions y1(x)y1(x) and y2(x)y2(x) are linearly independent because y1(0)=1y1(0)=1 and y1(0)=0,y1'(0)=0, whereas y2(0)=0y2(0)=0 and y2(0)=1.y2'(0)=1. A general solution of Eq. (15) is a linear combination of the power series in (18) and (19). Equation (15) has no singular points, so the power series representing y1(x)y1(x) and y2(x)y2(x) converge for all x.

The Legendre Equation

The Legendre equation of order αα is the second-order linear differential equation

(1x2)y2xy+α(α+1)y=0,
(1x2)y''2xy'+α(α+1)y=0,
(20)

where the real number αα satisfies the inequality α>1.α>1. This differential equation has extensive applications, ranging from numerical integration formulas (such as Gaussian quadrature) to the problem of determining the steady-state temperature within a solid spherical ball when the temperatures at points of its boundary are known. The only singular points of the Legendre equation are at +1+1 and 1,1, so it has two linearly independent solutions that can be expressed as power series in powers of x with radius of convergence at least 1. The substitution y=cmxmy=cmxm in Eq. (20) leads (see Problem 31) to the recurrence relation

cm+2=(αm)(α+m+1)(m+1)(m+2)cm
cm+2=(αm)(α+m+1)(m+1)(m+2)cm
(21)

for m0.m0. We are using m as the index of summation because we have another role for n to play.

In terms of the arbitrary constants c0c0 and c1,c1, Eq. (21) yields

c2=α(α+1)2!c0,c3=(α1)(α+2)3!c1,c4=α(α2)(α+1)(α+3)4!c0,c5=(α1)(α3)(α+2)(α+4)5!c1.
c2=α(α+1)2!c0,c3=(α1)(α+2)3!c1,c4=α(α2)(α+1)(α+3)4!c0,c5=(α1)(α3)(α+2)(α+4)5!c1.

We can show without much trouble that for m>0m>0,

c2m=(1)mα(α2)(α4)(α2m+2)(α+1)(α+3)(α+2m1)(2m)!c0
c2m=(1)mα(α2)(α4)(α2m+2)(α+1)(α+3)(α+2m1)(2m)!c0
(22)

and

c2m+1=(1)m(α1)(α3)(α2m+1)(α+2)(α+4)(α+2m)(2m+1)!c1.
c2m+1=(1)m(α1)(α3)(α2m+1)(α+2)(α+4)(α+2m)(2m+1)!c1.
(23)

Alternatively,

c2m=(1)ma2mc0andc2m+1=(1)ma2m+1c1,
c2m=(1)ma2mc0andc2m+1=(1)ma2m+1c1,

where a2ma2m and a2m+1a2m+1 denote the fractions in Eqs. (22) and (23), respectively. With this notation, we get two linearly independent power series solutions

y1(x)=c0m=0(1)ma2mx2mandy2(x)=c1m=0(1)ma2m+1x2m+1
y1(x)=c0m=0(1)ma2mx2mandy2(x)=c1m=0(1)ma2m+1x2m+1
(24)

of Legendre’s equation of order αα.

Now suppose that α=n,α=n, a nonnegative integer. If α=nα=n is even, we see from Eq. (22) that a2m=0a2m=0 when 2m>n.2m>n. In this case, y1(x)y1(x) is a polynomial of degree n and y2y2 is a (nonterminating) infinite series. If α=nα=n is an odd positive integer, we see from Eq. (23) that a2m+1=0a2m+1=0 when 2m+1>n.2m+1>n. In this case, y2(x)y2(x) is a polynomial of degree n and y1y1 is a (nonterminating) infinite series. Thus in either case, one of the two solutions in (24) is a polynomial and the other is a nonterminating series.

With an appropriate choice (made separately for each n) of the arbitrary constants c0c0 (n even) or c1c1 (n odd), the nth-degree polynomial solution of Legendre’s equation of order n,

(1x2)y2xy+n(n+1)y=0,
(1x2)y''2xy'+n(n+1)y=0,
(25)

is denoted by Pn(x)Pn(x) and is called the Legendre polynomial of degree n. It is customary (for a reason indicated in Problem 32) to choose the arbitrary constant so that the coefficient of xnxn in Pn(x)Pn(x) is (2n)!/[2n(n!)2].(2n)!/[2n(n!)2]. It then turns out that

Pn(x)=Nk=0(1)k(2n2k)!2nk!(nk)!(n2k)!xn2k,
Pn(x)=k=0N(1)k(2n2k)!2nk!(nk)!(n2k)!xn2k,
(26)

where N=n/2,N=n/2, the integral part of n/2.n/2. The first six Legendre polynomials are

P0(x)1,P1(x)=x,P2(x)=12(3x21),P3(x)=12(5x33x),P4(x)=18(35x430x2+3),P5(x)=18(63x570x3+15x),
P0(x)1,P2(x)=12(3x21),P4(x)=18(35x430x2+3),P1(x)=x,P3(x)=12(5x33x),P5(x)=18(63x570x3+15x),

and their graphs are shown in Fig. 11.2.2.

FIGURE 11.2.2.

Graphs y=Pn(x)y=Pn(x) of the Legendre polynomials for n=1, 2, 3, 4,n=1, 2, 3, 4, and 5. The graphs are distinguished by the fact that all n zeros of Pn(x)Pn(x) lie in the interval 1<x<11<x<1.

11.2 Problems

Find general solutions in powers of x of the differential equations in Problems 1 through 15. State the recurrence relation and the guaranteed radius of convergence in each case.

  1. (x21)y+4xy+2y=0(x21)y''+4xy'+2y=0

     

  2. (x2+2)y+4xy+2y=0(x2+2)y''+4xy'+2y=0

     

  3. y+xy+y=0y''+xy'+y=0

     

  4. (x2+1)y+6xy+4y=0(x2+1)y''+6xy'+4y=0

     

  5. (x23)y+2xy=0(x23)y''+2xy'=0

     

  6. (x21)y6xy+12y=0(x21)y''6xy'+12y=0

     

  7. (x2+3)y7xy+16y=0(x2+3)y''7xy'+16y=0

     

  8. (2x2)yxy+16y=0(2x2)y''xy'+16y=0

     

  9. (x21)y+8xy+12y=0(x21)y''+8xy'+12y=0

     

  10. 3y+xy4y=03y''+xy'4y=0

     

  11. 5y2xy+10y=05y''2xy'+10y=0

     

  12. yx2y3xy=0y''x2y'3xy=0

     

  13. y+x2y+2xy=0y''+x2y'+2xy=0

     

  14. y+xy=0y''+xy=0 (an Airy equation)

  15. y+x2y=0y''+x2y=0

Use power series to solve the initial value problems in Problems 16 and 17.

  1. (1+x2)y+2xy2y=0(1+x2)y''+2xy'2y=0; y(0)=0,y(0)=0, y(0)=1y'(0)=1

     

  2. y+xy2y=0y''+xy'2y=0; y(0)=1, y(0)=0y(0)=1, y'(0)=0

Solve the initial value problems in Problems 18 through 22. First make a substitution of the form t=xa,t=xa, then find a solution cntncntn of the transformed differential equation. State the interval of values of x for which Theorem 1 of this section guarantees convergence.

  1. y+(x1)y+y=0y''+(x1)y'+y=0; y(1)=2, y(1)=0y(1)=2, y'(1)=0

     

  2. (2xx2)y6(x1)y4y=0(2xx2)y''6(x1)y'4y=0; y(1)=0,y(1)=0, y(1)=1y'(1)=1

     

  3. (x26x+10)y4(x3)y+6y=0(x26x+10)y''4(x3)y'+6y=0; y(3)=2,y(3)=2, y(3)=0y'(3)=0

     

  4. (4x2+16x+17)y=8y(4x2+16x+17)y''=8y; y(2)=1, y(2)=0y(2)=1, y'(2)=0

     

  5. (x2+6x)y+(3x+9)y3y=0(x2+6x)y''+(3x+9)y'3y=0; y(3)=0, y(3)=2y(3)=0, y'(3)=2

In Problems 23 through 26, find a three-term recurrence relation for solutions of the form y=cnxn.y=cnxn. Then find the first three nonzero terms in each of two linearly independent solutions.

  1. y+(1+x)y=0y''+(1+x)y=0

     

  2. (x21)y+2xy+2xy=0(x21)y''+2xy'+2xy=0

     

  3. y+x2y+x2y=0y''+x2y'+x2y=0

     

  4. (1+x3)y+x4y=0(1+x3)y''+x4y=0

     

  5. Solve the initial value problem

    y+xy+(2x2+1)y=0;y(0)=1,y(0)=1.
    y''+xy'+(2x2+1)y=0;y(0)=1,y'(0)=1.

    Determine sufficiently many terms to compute y(1/2) accurate to four decimal places.

In Problems 28 through 30, find the first three nonzero terms in each of two linearly independent solutions of the form y=cnxn.y=cnxn. Substitute known Taylor series for the analytic functions and retain enough terms to compute the necessary coefficients.

  1. y+exy=0y''+exy=0

     

  2. (cosx)y+y=0(cosx)y''+y=0

     

  3. xy+(sinx)y+xy=0xy''+(sinx)y'+xy=0

     

  4. Derive the recurrence relation in (21) for the Legendre equation.

  5. Follow the steps outlined in this problem to establish Rodrigues’s formula

    Pn(x)=1n!2ndndxn(x21)n
    Pn(x)=1n!2ndndxn(x21)n

    for the nth-degree Legendre polynomial.

    1. Show that v=(x21)nv=(x21)n satisfies the differential equation

      (1x2)v+2nxv=0.
      (1x2)v'+2nxv=0.

      Differentiate each side of this equation to obtain

      (1x2)v+2(n1)xv+2nv=0.
      (1x2)v''+2(n1)xv'+2nv=0.
    2. Differentiate each side of the last equation n times in succession to obtain

      (1x2)v(n+2)2xv(n+1)+n(n+1)v(n)=0.
      (1x2)v(n+2)2xv(n+1)+n(n+1)v(n)=0.

      Thus u=v(n)=Dn(x21)nu=v(n)=Dn(x21)n satisfies Legendre’s equation of order n.

    3. Show that the coefficient of xnxn in u is (2n)!/n!(2n)!/n!; then state why this proves Rodrigues’ formula. (Note that the coefficient of xnxn in Pn(x)Pn(x) is (2n)!/[2n(n!)2](2n)!/[2n(n!)2].)

  6. The Hermite equation of order αα is

    y2xy+2y=0.
    y''2xy'+2y=0.
    1. Derive the two power series solutions

      y1=1+m=1(1)m2mα(α2)(α2m+2)(2m)!x2m
      y1=1+m=1(1)m2mα(α2)(α2m+2)(2m)!x2m

      and

      y2=x+m=1(1)m2m(α1)(α3)(α2m+1)(2m+1)!x2m+1.
      y2=x+m=1(1)m2m(α1)(α3)(α2m+1)(2m+1)!x2m+1.

      Show that y1y1 is a polynomial if αα is an even integer, whereas y2y2 is a polynomial if αα is an odd integer.

    2. The Hermite polynomial of degree n is denoted by Hn(x).Hn(x). It is the nth-degree polynomial solution of Hermite’s equation, multiplied by a suitable constant so that the coefficient of xnxn is 2n.2n. Show that the first six Hermite polynomials are

      H0(x)1,H1(x)=2x,H2(x)=4x22,H3(x)=8x312x,H4(x)=16x448x2+12,H5(x)=32x5160x3+120x.
      H0(x)1,H2(x)=4x22,H4(x)=16x448x2+12,H5(x)=32x5160x3+120x.H1(x)=2x,H3(x)=8x312x,

      A general formula for the Hermite polynomials is

      Hn(x)=(1)nex2dndxn(ex2).
      Hn(x)=(1)nex2dndxn(ex2).

      Verify that this formula does in fact give an nth-degree polynomial. It is interesting to use a computer algebra system to investigate the conjecture that (for each n) the zeros of the Hermite polynomials HnHn and Hn+1Hn+1 are “interlaced”—that is, the n zeros of HnHn lie in the n bounded open intervals whose endpoints are successive pairs of zeros of Hn+1Hn+1.

  7. The discussion following Example 4 in Section 11.1 suggests that the differential equation y+y=0y''+y=0 could be used to introduce and define the familiar sine and cosine functions. In a similar fashion, the Airy equation

    y=xy
    y''=xy

    serves to introduce two new special functions that appear in applications ranging from radio waves to molecular vibrations. Derive the first three or four terms of two different power series solutions of the Airy equation. Then verify that your results agree with the formulas

    y1(x)=1+k=114(3k2)(3k)!x3k
    y1(x)=1+k=114(3k2)(3k)!x3k

    and

    y2(x)=x+k=125(3k1)(3k+1)!x3k+1
    y2(x)=x+k=125(3k1)(3k+1)!x3k+1

    for the solutions that satisfy the initial conditions y1(0)=1, y1(0)=0y1(0)=1, y'1(0)=0 and y2(0)=0, y2(0)=1,y2(0)=0, y'2(0)=1, respectively. The special combinations

    Ai(x)=y1(x)32/3Γ(23)y2(x)31/3Γ(13)
    Ai(x)=y1(x)32/3Γ(23)y2(x)31/3Γ(13)

    and

    Bi(x)=y1(x)31/6Γ(23)+y2(x)31/6Γ(13)
    Bi(x)=y1(x)31/6Γ(23)+y2(x)31/6Γ(13)

    define the standard Airy functions that appear in mathematical tables and computer algebra systems. Their graphs shown in Fig. 11.2.3 exhibit trigonometric-like oscillatory behavior for x<0,x<0, whereas Ai(x) decreases exponentially and Bi(x) increases exponentially as x+.x+. It is interesting to use a computer algebra system to investigate how many terms must be retained in the y1y1- and y2y2-series above to produce a figure that is visually indistinguishable from Fig. 11.2.3 (which is based on high-precision approximations to the Airy functions).

    FIGURE 11.2.3.

    The Airy function graphs y=Ai(x)y=Ai(x) and y=Bi(x)y=Bi(x).

    1. To determine the radius of convergence of the series solution in Example 5, write the series of terms of even degree in Eq. (11) in the form

      y0(x)=1+n=1c2nx2n=1+n=1anzn
      y0(x)=1+n=1c2nx2n=1+n=1anzn

      where an=c2nan=c2n and z=x2.z=x2. Then apply the recurrence relation in Eq. (8) and Theorem 3 in Section 11.1 to show that the radius of convergence of the series in z is 4. Hence the radius of convergence of the series in x is 2. How does this corroborate Theorem 1 in this section?

    2. Write the series of terms of odd degree in Eq. (11) in the form

      y1(x)=x(1+n=1c2n+1x2n)=x(1+n=1bnzn)
      y1(x)=x(1+n=1c2n+1x2n)=x(1+n=1bnzn)

      to show similarly that its radius of convergence (as a power series in x) is also 2.

11.2 Application Automatic Computation of Series Coefficients

Repeated application of a recurrence relation to grind out successive coefficients is—especially in the case of a recurrence relation with three or more terms—a tedious aspect of the infinite series method. Here we illustrate the use of a computer algebra system not only to automate this task, but also to explore interactively the graphical effect of changing the number k of terms we include in a partial-sum approximation to the actual solution given by the full infinite series. In Example 7 we saw that the coefficients in the series solution y=cnxny=cnxn of the differential equation

yxyx2y=0
y''xy'x2y=0
(1)

are given in terms of the two arbitrary coefficients c0c0 and c1c1 by

c2=0,c3=c16,andcn+2=ncn+cn2(n+2)(n+1)forn2.
c2=0,c3=c16,andcn+2=ncn+cn2(n+2)(n+1)forn2.
(2)

It would appear to be a routine matter to implement such a recurrence relation, but a twist results from the fact that a typical computer system array is indexed by the subscripts 1, 2, 3, …, rather than by the subscripts 0, 1, 2, … that match the exponents in the successive terms of a power series that begins with a constant term. For this reason we first rewrite our proposed power series solution in the form

y=n=0cnxn=n=1bnxn1
y=n=0cnxn=n=1bnxn1
(3)

where bn=cn1bn=cn1 for each n1.n1. Then the first two conditions in (1) imply that b3=0b3=0 and b4=16b2b4=16b2; also, the recurrence relation (with n replaced with n1n1) yields the new recurrence relation

bn+2=cn+1=(n1)cn1+cn3(n+1)n=(n1)bn+bn2n(n+1).
bn+2=cn+1=(n1)cn1+cn3(n+1)n=(n1)bn+bn2n(n+1).
(4)

Now we are ready to begin. Suppose that we want to calculate the terms through the 10th degree in (2)with the initial conditions b1=b2=1.b1=b2=1. Then either the Maple commands


k := 11:          # k terms
b := array(1..k):
b[1] := 1:        # arbitrary
b[2] := 1:        # arbitrary
b[3] := 0:
b[4] := b[2]/6:
for n from 3 by 1 to k − 2 do
   b[n+2] := ((n−1) b[n] + b[n−2])/(n (n+1));
   od;

or the Mathematica commands


k = 11;            (∗ k terms ∗)
b = Table[0, {n,1,k}];
b[[1]] = 1;        (∗ arbitrary ∗)
b[[2]] = 1;        (∗ arbitrary ∗)
b[[3]] = 0;
b[[4]] = b[[2]]/6;
For[n=3, n<=k−2,
   b[[n+2]]=((n−1) b[[n]] + b[[n−2]])/(n (n+1)); n=n+1];

quickly yield the coefficients {bn}{bn} corresponding to the solution

y(x)=1+x+x36+x412+3x540+x690+13x71008+3x81120+119x951840+41x10113400+.
y(x)=1+x+x36+x412+3x540+x690+13x71008+3x81120+119x951840+41x10113400+.
(5)

You might note that the even- and odd-degree terms here agree with those shown in Eqs. (18) and (19), respectively, of Example 7.

The Matlab commands


k = 11;                     % k terms
b = 0∗(1:k);
b(1) = 1;                   % arbitrary
b(2) = 1;                   % arbitrary
b(3) = 0;
b(4) = b(2)/6;
for n = 3:k−2
   b(n+2) = ((n−1) ∗b(n) + ∗b(n−2))/(n∗ (n+1));
   end
format rat, b

give the same results, except that the coefficient b10b10 of x9x9 is shown as 73/31801 rather than the correct value 119/51840 shown in Eq. (4). It happens that

73318010.0022955253while119518400.0022955247,
73318010.0022955253while119518400.0022955247,

so the two rational fractions agree when rounded to 9 decimal places. The explanation is that (unlike Mathematica and Maple) Matlab works internally with decimal rather than exact arithmetic. But at the end its format rat algorithm converts a correct 14-place approximation for b10b10 into an incorrect rational fraction that’s “close but no cigar.”

The Matlab commands above form the basis for the interactive display shown in Fig. 11.2.4, which graphs the actual solution (blue curve)of the differential equation (1), with initial conditions b1=b2=1,b1=b2=1, together with the approximate solution (black curve) consisting of the terms through the fourth degree (k=5k=5) in (5). The pop-up menu allows the user to vary the number of terms k and thus immediately see the graphical effect of changing the number of terms included in the series expansion. With k=10,k=10, the actual and approximate solutions are indistinguishable in this viewing window.

FIGURE 11.2.4.

Matlab interactive display. The blue curve represents the actual solution of the initial value problem yxyx2y=0, y(0)=y(0)=1,y''xy'x2y=0, y(0)=y'(0)=1, whereas the black curve shows the partial-sum approximation of the series solution (5) with terms through the fourth degree (k=5k=5).

Finally, you can substitute b1=1, b2=0b1=1, b2=0 and b1=0, b2=1b1=0, b2=1 separately (instead of b1=b2=1b1=b2=1) in the commands shown here to derive partial sums of the two linearly independent solutions displayed in Eqs. (18) and (19) of Example 7. This technique can be applied to any of the examples and problems in this section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.47.203