3.5. Power Series Solutions#

Power series solutions are another technique we can use to solve 2nd-order homogeneous ODEs of the form

(3.105)#y+p(x)y+q(x)y=0

This is useful for more-general cases where our other techniques fail.

For example, how would you find the solution to this ODE?

(3.106)#(1+x2)y4xy+6y=0

None of the methods we’ve discussed so far would allow us to find an analytical solution to this problem—but we can using a power series solution.

Power series solutions will be of the form

(3.107)#y=n=0anxn

where the coefficients an are what we need to find.

  1. First, for power series to be a valid solution, we need to check whether x=0 is an ordinary point of the ODE: is the ODE continuous and bounded at x=0?

Continuous means that there should be no discontinuity at x=0.

Bounded means that the solution should be finite at x=0.

For example, consider the ODE

(3.108)#y4xy+(4x22)y=0

Both p(x)=4x and q(x)=(4x22) are continuous and bounded at x=0, so x=0 is an ordinary point.

On the other hand, what about

(3.109)#y+x3y+1xy=0 ?

In this case, the solution is unbounded at x=0, and so it is not an ordinary point.

  1. If x=0 is an ordinary point, then we can find a solution in the form of a power series:

(3.110)#y=n=0anxn

We then solve for the coefficients an by plugging this in to the ODE. To do that, we’ll need to take advantage of certain properties of power series.

3.5.1. Properties of power series#

  • Dummy index rule. We can replace the index variable used in the power series with another index variable arbitrarily:

(3.111)#n=0anxn=m=0amxm

This is because the index variable is just a “dummy” that only has meaning inside the sum.

  • Product rule. We can bring variables, including x, multiplying an entire power series into the power series:

(3.112)#xn=0anxn=n=0anxn+1
  • Derivatives. We can take derivatives of our power series:

(3.113)#y=n=0an(n)xn1=n=1an(n)xn1y=n=0an(n)(n1)xn2=n=2an(n)(n1)xn2

Notice that we can change where the sums in the power series start, because for y the term corresponding to n=1 would just be zero, and similar for the first two terms of y.

  • Index shift. We can redefine the index used within a sum to shift where it starts. For example, if we let m=n1, or n=m+1, then:

(3.114)#n=1an(n)xn1=m=0am+1(m+1)xm

Or, in other case, if we let m=n2, or n=m+2, then:

(3.115)#n=2an(n)(n1)xn2=m=0am+2(m+2)(m+1)xm

Now, let’s apply these properties to solve ODEs.

3.5.2. Power series example 1#

Let’s try to apply the power series approach to solve

(3.116)#y+y=0,

where we know the solution will be y(x)=c1sinx+c2cosx.

  1. Is x=0 an ordinary point? Yes, the ODE is continuous and bounded at x=0. So, we can find a solution of the form y(x)=n=0anxn.

  2. Now, we solve for the coefficents by plugging the power series into the ODE:

(3.117)#n=2an(n)(n1)xn2+n=0anxn=0

Let’s use the index shift rule on the first part of that:

(3.118)#n=2an(n)(n1)xn2m=0am+2(m+2)(m+1)xm

Then, we can use the dummy index rule to change m back to n:

(3.119)#m=0am(m+2)(m+1)xmn=0an(n+2)(n+1)xn

Now, let’s replace the first term in the ODE with that, merge both terms into a single sum, and simplify:

(3.120)#n=0an(n+2)(n+1)xn+n=0anxn=0n=0xn[an+2(n+2)(n+1)+an]=0

There are infinite terms in this sum, involving the continuous variable x; the only way that equation can be satisfied is if

  • x=0 always, which cannot be true, or

  • an+2(n+2)(n+1)+an=0 for all values of n. This is what we can use to find the coefficients of our power series solution.

Use that expression to define a recursive formula for the coefficients:

(3.121)#an+2=an(n+1)(n+2)

We can see that the even coefficients will be related to each other, and the odd coefficients will be related. Let’s try to identify a pattern with each, starting with the even terms:

(3.122)#n=0:a2=a012=a02!n=2:a4=a234=a04!n=4:a6=a456=a06!

and the odd terms:

(3.123)#n=1:a3=a123=a13!n=3:a5=a345=a15!n=5:a7=a567=a17!

Now, let’s put that all together:

(3.124)#y(x)=a0+a1x+a2x2+a3x3+y=a0(1x22!+x44!+)+a1(xx33!+x55!+)

which you might recognize as being the Taylor series expansion of sine and cosine:

(3.125)#y(x)=a0cosx+a1sinx

So, our unknown coefficients end up being our integration constants, which we can use our two constraints to find.

3.5.3. Power series example 2#

Find the solution to the ODE

(3.126)#(1+x2)y4xy+6y=0

First, rearrange into standard form:

(3.127)#y4x1+x2y+61+x2y=0

Then, check whether x=0 is an ordinary point: yes, it is.

Now, let’s insert the power series into the ODE:

(3.128)#y+x2y4xy+6y=0n=2an(n)(n1)xn2+x2n=0an(n)(n1)xn24xn=1an(n)xn1+6n=0anxn=0

First, we’ll use the power rule:

(3.129)#n=2an(n)(n1)xn2+n=2an(n)(n1)xn4n=1an(n)xn+6n=0anxn=0

and then the index shift and dummy index rules on the first term:

(3.130)#n=2an(n)(n1)xn2m=0am+2(m+2)(m+1)xmn=0an+2(n+2)(n+1)xn

Then, put that back into the full equation and combine the sums:

(3.131)#n=0an+2(n+2)(n+1)xn+n=0an(n)(n1)xn4n=1an(n)xn+6n=0anxn=0n=0xn[an+2(n+2)(n+1)+an(n)(n1)4an(n)+6an]=0an+2(n+2)(n+1)+an(n25n+6)=0an+2(n+2)(n+1)+an(n3)(n2)=0

Thus, our recursion formula for the coefficients an is

(3.132)#an+2=an(n3)(n2)(n+1)(n+2)

Again, we can see that the even terms will be related and the odd terms will be related:

(3.133)#n=0:a2=a062=3a0n=2:a4=0n=4:a6=a4230=0

and the odd terms:

(3.134)#n=1:a3=a126=a13n=3:a5=0n=5:a7=a5642=0

The solution is then

(3.135)#y(x)=a0+a1x3a0x2a13x3y=a0(13x2)+a1(xx33)

where we find a0 and a1 using our initial or boundary conditions.