Skip to content

Series Solutions ​

Power series ​

Definition of Power series ​

Definition: Power Series

An expression of the form

A0+A1(x−x0)+⋯+An(x−x0)n+⋯=∑n=0∞An(x−x0)n.

is called a power series and is defined as the limit

limN→∞∑n=0NAn(x−x0)n

for those values of x for which the limit exists

Ratio Test for the Convergence of Power Series [core] ​

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

limN→∞∑n=0NAn(x−x0)n

The ratio is

ρ=limn→∞|An+1An||x−x0|=L|x−x0|

where

L=limn→∞|An+1An|.

In this case, the power series converge if

|x−x0|<1L

Or, the interval of convergence is (x0−1L,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=0∞An(x−x0)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=0∞f(n)(x0)n!(x−x0)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=0N−1f(n)(x0)n!(x−x0)n+RN(x).

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

RN(x)=f(N)(ξ)N!(x−x0)N

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

Example1: Solving ODE with Power Series ​

To solve the differential equation

Ly≡d2ydx2−y=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≡(2A2−A0)+(6A3−A1)x+(12A4−A2)x2+(20A5−A3)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=(A0−A1)/2, then

y=C1ex+C2e−x.

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

Ly≡x2d2ydx2+(x2+x)dydx−y=0.

Assuming a solution of the form

y=∑k=0∞Akxk

we obtain

dydx=∑k=0∞kAkxk−1,d2ydx2=∑k=0∞k(k−1)Akxk−2

hence

Ly≡∑k=0∞k(k−1)Akxk+∑k=0∞kAkxk+1+∑k=0∞kAkxk−∑k=0∞Akxk=0.

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

∑k=0∞[k(k−1)+k−1]Akxk=∑k=0∞(k2−1)Akxk

Hence there follows

Ly≡∑k=0∞(k2−1)Akxk+∑k=0∞kAkxk+1=0

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

Ly≡∑k=0∞(k2−1)Akxk+∑k=1∞(k−1)Ak−1xk=0

In this way, we find

Ly≡−A0+∑k=1∞[(k2−1)Ak+(k−1)Ak−1]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(k−1)[(k+1)Ak+Ak−1]=0(k=1,2,3,⋯)

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

Ak=−Ak−1k+1(k=2,3,4,⋯)

Hence, we obtain

A2=−A13,A3=−A24=A13⋅4,A4=−A35=−A13⋅4⋅5,⋯

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

y=A1(x−x23+x23⋅4−x33⋅4⋅5+⋯)

If this solution is put in the form

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

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

y=ce−x−1+xx

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

y={ce−x−1+xxx≠00x=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

Ly≡R(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=xs∑k=0∞Akxk=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(s−1)A0xs−2+(s+1)sA1xs−1+(s+2)(s+1)A2xs+⋯]+(P0+P1x+P2x2+⋯)×[sA0xs−2+(s+1)A1xs−1+(s+2)A2xs+⋯]+(Q0+Q1x+Q2x2+⋯)×[A0xs−2+A1xs−1+A2xs+⋯]

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

Ly≡[s(s−1)+P0s+Q0]A0xs−2+{[(s+1)s+P0(s+1)+Q0]A1+[R1s(s−1)+P1s+Q1]A0}xs−1+{[(s+2)(s+1)+P0(s+2)+Q0]A2+[R1(s+1)s+P1(s+1)+Q1]A1+[R2s(s−1)+P2s+Q2]A0}xs+⋯

For the sake of convenience, let us take

f(s)=s(s−1)+P0s+Q0=s2+(P0−1)s+Q0

and

gn(s)=Rn(s−n)(s−n−1)+Pn(s−n)+Qn=Rn(s−n)2+(Pn−Rn)(s−n)+Qn

Hence, we have

Ly≡f(s)A0xs−2+[f(s+1)A1+g1(s+1)A0]xs−1+[f(s+2)A2+g1(s+2)A1+g2(s+2)A0]xs+⋯+[f(s+k)Ak+∑n=1kgn(s+k)Ak−n]xs+k−2+⋯

The vanishing of the coefficient of the lowest power xs−2 gives the requirement

f(s)=0⟹s2+(P0−1)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 xs−1 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)A1−g2(s+2)A0,

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

f(s+k)Ak=−∑n=1kgn(s+k)Ak−n(k≧1),

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)=0⟹s2+(P0−1)s+Q0=0⟹{s1=1−P02+12(1−P0)2−4Q0s2=1−P02−12(1−P0)2−4Q0

as the root of

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

Rethinking Example II [core] ​

Ly≡x2d2ydx2+(x2+x)dydx−y=0.

Assuming a solution of the form

y=xs∑k=0∞Akxk=∑k=0∞Akxk+s.

By direct substitution, there follows

Ly=(s2−1)A0xs+∑k=1∞{[(s+k)2−1]Ak+(s+k−1)Ak−1}xk+s

From Example II

Ly≡∑k=0∞((k+s)2−1)Akxk+s+∑k=1∞(k+s−1)Ak−1xk+s=0

Hence the indicial equation is

s2−1=0

and the recurrence formula is

[(s+k)2−1]Ak+(s+k−1)Ak−1=0

or

(s+k−1)[(s+k+1)Ak+Ak−1]=0(k≧1)

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+Ak−1]=0

or, since k≠0,

Ak=−Ak−1k+2(k≧1)

Thus, one has

A1=−A03,A2=A03⋅4,A3=−A03⋅4⋅5,…

and hence the solution corresponding to s=1 is

y=x[A0−A03x+A03⋅4x2−A03⋅4⋅5x3+⋯]=A0(x−x23+x33⋅4−x43⋅4⋅5+⋯)=2A0(e−x−1+xx)

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

(k−2)(kAk+Ak−1)−0(k≧1).

It is important to notice that the factor k−2 cannot be canceled except on the understanding that k≠2. 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 k≧3, the recurrence formula can be written in the form

Ak=−Ak−1k(k≧3).

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

y=x−1(A0−A0x)=A01−xx.

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=c1e−x−1+xx+c21−xx,

or, alternatively,

y=C1e−xx+C21−xx,

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

y=ce−x−1+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+(x2−p2)y=0
  • The Ber and Bei functions by solving
x2d2ydx2+xdydx−(p2+ix2)y=0
  • The Legendre functions of order p by solving
(1−x2)d2ydx2−2xdydx+p(p+1)y=0
  • The hypergeometric function by solving
x(1−x)d2ydx2+[γ−(α+β+1)x]dydx−αβy=0

HW ​

Question 1 ​

Q1. Determine the interval of convergence (10 marks)

1.1∑n=1∞k(k+1)⋯(k+n−1)n!xn1.2∑n=0∞(xx+2)n

Answer: (1) The ratio is

ρ=limn→∞|k(k+1)⋯(k+n)(n+1)!xn+1/(k(k+1)⋯(k+n−1)n!xn)|=limn→∞|k+nn+1x|=limn→∞|kn+11n+1x|=|x|.

The power series converges if ρ<1⟹|x|<1.

Thus the interval of convergence is (−1,1).

(2) The ratio is

ρ=limn→∞|(xx+2)n+1/(xx+2)n|=limn→∞|xx+2|=|xx+2|.

The power series converges if ρ<1⟹|xx+2|<1⟹|x|<|x+2|,(x≠−2).

  • x>0⟹|x|<|x+2|⟹x<x+2, it's satisfied;
  • −2<x⩽0,|x+2|−|x|=x+2−(−x)>0⟹x>−1, thus |x|<|x+2| satisfies for −1<x⩽0;
  • x⩽−2,|x|<|x+2|⟹−x<−x−2, it's not satisfied.

Thus the interval of convergence is (−1,+∞).

|xx+2|=|1−2x+2|<1⟹−1<1−2x+2<1⟹x>−1.

Question 2 ​

Q2. Use the method of Frobenius to obtain the general solution of valid near x= 0: (10 marks)

2xd2ydx2+(1−2x)dydx−y=0

Answer: Assume a solution of the form

y=xs∑k=0∞Akxk=∑k=0∞Akxk+s.

Then

dydx=∑k=0∞(k+s)Akxk+s−1d2ydx2=∑k=0∞(k+s)(k+s−1)Akxk+s−2.

Thus

2xd2ydx2+(1−2x)dydx−y=2x(∑k=0∞(k+s)(k+s−1)Akxk+s−2)+∑k=0∞(k+s)Akxk+s−1−2x(∑k=0∞(k+s)Akxk+s−1)−∑k=0∞Akxk+s=∑k=0∞(k+s)(2k+2s−1)Akxk+s−1−∑k=0∞(2k+2s+1)Akxk+s=s(2s−1)A0xs−1+∑k=1∞(k+s)(2k+2s−1)Akxk+s−1−∑k=1∞(2(k−1)+2s+1)Ak−1x(k−1)+s=s(2s−1)A0xs−1+∑k=1∞[(k+s)(2k+2s−1)Ak−(2k+2s−1)Ak−1]xk+s−1=0

The indicial equation is

s(2s−1)=0⟹s1=12,s2=0.

And the recurrence formula is

(k+s)(2k+2s−1)Ak−(2k+2s−1)Ak−1=0,k⩾1.
  • s1=12:
2k(k+12)Ak−2kAk−1=0,k⩾1⟹Ak=Ak−1k+1/2

Hence, the solution corresponding to s=12 is:

y=∑k=0∞Akxk+s=A0x1/2+A1x3/2+A2x5/2+⋯=A0x1/2+A03/2x3/2+A03/2⋅5/2x5/2+⋯=A0∑k=0∞2k(2k+1)!!xk+1/2,A0 arbitary.
  • s2=0:
k(2k−1)Ak−(2k−1)Ak−1=0,k⩾1⟹Ak=Ak−1k

Hence, the solution corresponding to s=0 is:

y=∑k=0∞Akxk+s=A0+A1x+A2x2+⋯=A0+A01x+A01⋅2x2+⋯=A0∑k=0∞xkk!=A0ex,A0 arbitary.

Thus, the general solution is:

y=c1ex+c2∑k=0∞2k(2k+1)!!xk+1/2,c1,c2∈R.

(Option) The exact solution for s1=12.

Below is the procession from DeepSeek: The main task is to use an exact function to represent the power series:

∑k=0∞2k(2k+1)!!xk+1/2

Known that

(2k+1)!!=(2k+1)!2kk!.

Then

∑k=0∞2k(2k+1)!!xk+1/2=∑k=0∞4k⋅k!(2k+1)!xk+1/2=x∑k=0∞(4x)k⋅k!(2k+1)!.

Also known that

sinh⁡(x)=∑k=0∞x2k+1(2k+1)!=x∑k=0∞(x2)k(2k+1)!.

Thus

12sinh⁡(2x)=x∑k=0∞(4x)k(2k+1)!

which is similar to the goal, but missing k!.

Known that the Gamma function:

k!=∫0∞e−ttk dt.

Then

x∑k=0∞(4x)k⋅k!(2k+1)!=∑k=0∞x(4x)k(2k+1)!k!=∑k=0∞x(4x)k(2k+1)!∫0∞e−ttk dt.

Based on Tonelli's theorem, the given function is non-negative, then we can swap the order of infinite series and integral:

∑k=0∞x(4x)k(2k+1)!∫0∞e−ttk dt=∫0∞e−t∑k=0∞x(4xt)k(2k+1)! dt=∫0∞1ett∑k=0∞xt(4xt)k(2k+1)! dt=12∫0∞1ettsinh⁡(2xt) dt

Let

u=t⟹t=u2,dt=2u du.

Then

12∫0∞1ettsinh⁡(2xt) dt=12∫0∞1eu2usinh⁡(2xu)2u du=∫0∞e−u2sinh⁡(2xu) du.

Since

sinh⁡(x)=ex−e−x2

then

∫0∞e−u2sinh⁡(2xu) du=12∫0∞e−u2(e2xu−e−2xu) du=12ex∫0∞e−u2e2xue−x−e−u2e−2xue−x du=12ex[∫0∞e−(u−x)2 du−∫0∞e−(u+x)2 du]=14πex[erfc(−x)−erfc(x)]=14πex[1−erf(−x)−(1−erf(x))]=12πexerf(x)

Thus, the general solution is:

y=ex(c1+c2erf(x)),c1,c2∈R.

Released under the MIT License.