Skip to content

Series Solutions

Power series

Definition of Power series

Definition: Power Series

An expression of the form

A0+A1(xx0)++An(xx0)n+=n=0An(xx0)n.

is called a power series and is defined as the limit

limNn=0NAn(xx0)n

for those values of x for which the limit exists

Ratio Test for the Convergence of Power Series

To determine for what values of x the series converges, we may make use of the ratio test, which states that if the absolute value of the ratio of the (n+1)th term to the nth term in any infinite series approaches a limit ρ as n goes to infinity, then the series converges when ρ<1 and diverges when ρ>1.

In the case of the power series

limNn=0NAn(xx0)n

The ratio is

ρ=limn|An+1An||xx0|=L|xx0|

where

L=limn|An+1An|.

In this case, the power series converge if

|xx0|<1L

Or, the interval of convergence is (x01L,x0+1L).

The distance 1/L is frequently called the radius of convergence.

Taylor Series Expansion

Suppose the function f(x) can be expressed as a power series, which converges in a non-zero interval about x=x0

f(x)=n=0An(xx0)n.

Differentiating both sides of the above equation k times and setting x=x0

f(k)(x)=k!Ak,(k=0,1,2,).

Therefore, we obtain the infinite Taylor series expansion

f(x)=n=0f(n)(x0)n!(xx0)n.

If f(x) and all its derivatives are continuous in an interval including x=x0, then f(x) can be expressed as a finite Taylor series plus a remainder,

f(x)=n=0N1f(n)(x0)n!(xx0)n+RN(x).

Here, RN, the remainder after N terms, is given by

RN(x)=f(N)(ξ)N!(xx0)N

where ξ is some point in the interval (x0,x).

Example1: Solving ODE with Power Series

To solve the differential equation

Lyd2ydx2y=0.

we assume a solution in the form

y=A0+A1x+A2x2+A3x3+A4x4+A5x5+.

Hence

d2ydx2=2A2+6A3x+12A4x2+20A5x3+.

By substituting the above two expressions into the ODE, we can obtain

Ly(2A2A0)+(6A3A1)x+(12A4A2)x2+(20A5A3)x3+=0.

In order that this equation be valid over an interval, it is necessary that the coefficients of all powers of x vanish independently to promise it works for all x in an interval, giving the equations

2A2=A0,6A3=A1,12A4=A2,20A5=A3,

from which there follows

A2=12A0,A3=16A1,A4=112A2=124A0,A5=120A3=1120A1,

Therefore, the solution becomes

y=A0+A1x+A2x2+A3x3+A4x4+A5x5+=A0+A1x+12A0x2+16A1x3+124A0x4+1120A1x5+=A0(1+12x2+124x4+)+A1(x+16x3+1120x5+)

It is seen that the coefficients A0 and A1 are undetermined, and hence arbitrary, but that succeeding coefficients are determined in terms of them. The general solution is thus of the form

y=A0u1(x)+A1u2(x)
y=A0u1(x)+A1u2(x)=A1cosh(x)+A2sinh(x)

Let C1=(A0+A1)/2,C2=(A0A1)/2, then

y=C1ex+C2ex.

where u1(x) and u2(x) are two linearly independent solutions

Example II: Solving ODE with Power Series

As a second example we consider the equation

Lyx2d2ydx2+(x2+x)dydxy=0.

Assuming a solution of the form

y=k=0Akxk

we obtain

dydx=k=0kAkxk1,d2ydx2=k=0k(k1)Akxk2

hence

Lyk=0k(k1)Akxk+k=0kAkxk+1+k=0kAkxkk=0Akxk=0.

The first, third, and fourth summations may be combined to give

k=0[k(k1)+k1]Akxk=k=0(k21)Akxk

Hence there follows

Lyk=0(k21)Akxk+k=0kAkxk+1=0

In order to combine these sums, we replace k by k1 in the second, to obtain

Lyk=0(k21)Akxk+k=1(k1)Ak1xk=0

In this way, we find

LyA0+k=1[(k21)Ak+(k1)Ak1]xk=0.

In order that Ly may vanish identically, the constant term, as well as the coefficients of the successive powers of x, must vanish independently, giving the condition

A0=0(k1)[(k+1)Ak+Ak1]=0(k=1,2,3,)

The recurrence formula is automatically satisfied when k=1. When k2, it becomes

Ak=Ak1k+1(k=2,3,4,)

Hence, we obtain

A2=A13,A3=A24=A134,A4=A35=A1345,

Thus, in this case A0=0, A1 is arbitrary, and all succeeding coefficients are determined in terms of A1. The solution becomes

y=A1(xx23+x234x3345+)

If this solution is put in the form

y=2A1x(x22!x33!+x44!x55!+)=2A1x[x1+(1x11!+x22!x33!+x44!x55!+)]

The series in parentheses in the final form is recognized as the expansion of ex , and, writing 2A1=c, the solution obtained may be put in the closed form

y=cex1+xx

x0 for the analytic solution, but in the power series form, it can be seen that x=0y=0, it means x=0 is meaningful, thus

y={cex1+xxx00x=0

Method of Frobenius

The Method of Frobenius

  • The series solutions is valid at x=0 if it is the ordinary point, or it's the singular point, where the power series is diverges
  • If x=0 is the singular point for the ODE, the normal power series may fail.

For regular singular point: xP(x) and x2Q(x) is analytic at x=0 where y+P(x)y+Q(x)y=0

Let us restrict attention to solutions valid about the point x=0 . Solutions valid near a more general point x=x0 may be obtained in an analogous way

Suppose the equation has been put in the form

LyR(x)d2ydx2+1xP(x)dydx+1x2Q(x)y=0.

where R(x) does not vanish in some interval including x=0.

We also suppose that P(x),Q(x), and R(x) are regular at x=0, therefore, based on the equation above, we can write

xa1(x)=P(x)R(x),x2a2(x)=Q(x)R(x)

It is convenient to suppose also that the original equation has been divided through by a suitable constant so that R(0)=1. Then we may write

P(x)=P0+P1x+P2x2+Q(x)=Q0+Q1x+Q2x2+R(x)=1+R1x+R2x2+

The series converge in some interval including x=0.

We attempt to find nontrivial solutions which are in the form of a power series in x multiplied by a power of x,

y=xsk=0Akxk=A0xs+A1xs+1+A2xs+2+,

where s is to be determined.

Substituting the above expressions into the original ODE gives

Ly(1+R1x+R2x2+)×[s(s1)A0xs2+(s+1)sA1xs1+(s+2)(s+1)A2xs+]+(P0+P1x+P2x2+)×[sA0xs2+(s+1)A1xs1+(s+2)A2xs+]+(Q0+Q1x+Q2x2+)×[A0xs2+A1xs1+A2xs+]

multiplying term by term and collecting the coefficients of successive powers of x

Ly[s(s1)+P0s+Q0]A0xs2+{[(s+1)s+P0(s+1)+Q0]A1+[R1s(s1)+P1s+Q1]A0}xs1+{[(s+2)(s+1)+P0(s+2)+Q0]A2+[R1(s+1)s+P1(s+1)+Q1]A1+[R2s(s1)+P2s+Q2]A0}xs+

For the sake of convenience, let us take

f(s)=s(s1)+P0s+Q0=s2+(P01)s+Q0

and

gn(s)=Rn(sn)(sn1)+Pn(sn)+Qn=Rn(sn)2+(PnRn)(sn)+Qn

Hence, we have

Lyf(s)A0xs2+[f(s+1)A1+g1(s+1)A0]xs1+[f(s+2)A2+g1(s+2)A1+g2(s+2)A0]xs++[f(s+k)Ak+n=1kgn(s+k)Akn]xs+k2+

The vanishing of the coefficient of the lowest power xs2 gives the requirement

f(s)=0s2+(P01)s+Q0=0

This equation determines two values of s (which may however be equal) and is called the indicial equation.

For each such value of s, the vanishing of the coefficient of xs1 gives the requirement

f(s+1)A1=g1(s+1)A0

and hence determines A1 in terms of A0 if f(s+1)0. Next, the vanishing of the coefficient of xs determines A2 in terms of A1 and A0,

f(s+2)A2=g1(s+2)A1g2(s+2)A0,

and hence in terms of A0, if f(s+2)0. In general, the vanishing of the coefficient of xs+k2 gives the recurrence formula

f(s+k)Ak=n=1kgn(s+k)Akn(k1),

which determines each Ak in terms of the preceding A 's, and hence in terms of A0, if for each k the quantity f(s+k) is not zero.

Exceptional cases for the method of Frobenius

f(s)=0s2+(P01)s+Q0=0{s1=1P02+12(1P0)24Q0s2=1P0212(1P0)24Q0

as the root of

y=xsk=0Akxk=A0xs+A1xs+1+A2xs+2+,
  • Two roots to the equation f(s)=0 are equal
y1(x)=k=0Akxk+s1A0u1(x)y2(x)=Cu1(x)logx+k=0Bkxk+s2
  • Two distinctive roots, one is imaginary and the other is real (?) For two roots s1 and s2, series solution y=xsk=0Akxk,(s=s1,s2) can also be constructed
y=c1y1(x)+c2y2(x).

Rethinking Example II

Lyx2d2ydx2+(x2+x)dydxy=0.

Assuming a solution of the form

y=xsk=0Akxk=k=0Akxk+s.

By direct substitution, there follows

Ly=(s21)A0xs+k=1{[(s+k)21]Ak+(s+k1)Ak1}xk+s

From Example II

Lyk=0((k+s)21)Akxk+s+k=1(k+s1)Ak1xk+s=0

Hence the indicial equation is

s21=0

and the recurrence formula is

[(s+k)21]Ak+(s+k1)Ak1=0

or

(s+k1)[(s+k+1)Ak+Ak1]=0(k1)

The exponents s1 and s2 are +1 and 1 , respectively. Since they differ by an integer, a solution of the required type is assured only when s has the larger value +1 .

With s=+1, the recurrence formula becomes

k[(k+2)Ak+Ak1]=0

or, since k0,

Ak=Ak1k+2(k1)

Thus, one has

A1=A03,A2=A034,A3=A0345,

and hence the solution corresponding to s=1 is

y=x[A0A03x+A034x2A0345x3+]=A0(xx23+x334x4345+)=2A0(ex1+xx)

in accordance with the result obtained previously. With s=1, the recurrence formula becomes

(k2)(kAk+Ak1)0(k1).

It is important to notice that the factor k2 cannot be canceled except on the understanding that k2. That is, when k=2, the correct form of the recurrence formula is 0=0. If k=1, there follows

A1=A0

If k=2, the recurrence formula is identically satisfied, so that A2 is arbitrary.

If k3, the recurrence formula can be written in the form

Ak=Ak1k(k3).

If we take A2=0, then there follows A3=A4==0, and the solution corresponding to s=1 becomes simply

y=x1(A0A0x)=A01xx.

The general solution of the given equation is then a linear combination of the two solutions so obtained, and hence can be taken conveniently in the form

y=c1ex1+xx+c21xx,

or, alternatively,

y=C1exx+C21xx,

where C1=c1, and C2=c2c1. The only solution regular at x=0 is the one formerly obtained,

y=cex1+xx.

It can be verified that if A2 is left arbitrary, the solution corresponding to the exponent 1 is the sum of A0 times the two-term solution obtained and A2 times the infinite series solution corresponding to the exponent +1 . That means, When A2 is left arbiary, the solution is contained in the solution when s1=+1.

Special functions derived from the series solutions of ODEs

  • The Bessel functions of order p by solving
x2d2ydx2+xdydx+(x2p2)y=0
  • The Ber and Bei functions by solving
x2d2ydx2+xdydx(p2+ix2)y=0
  • The Legendre functions of order p by solving
(1x2)d2ydx22xdydx+p(p+1)y=0
  • The hypergeometric function by solving
x(1x)d2ydx2+[γ(α+β+1)x]dydxαβy=0

Released under the MIT License.