Series ODE#

Mathematics Methods 2

We showed how to solve 2nd order linear ODES with constant coefficients, now consider ODEs where coefficients are functions of the independent variable - here we denote it by x

It is sufficient to consider the homogeneous equation

(132)#P(x)y+Q(x)y+R(x)y=0

since the procedure for the corresponding inhomogeneous equation is similar.

For now we will work with p q r that are polynomials and have no common factors, but can be extended to general analytic functions

Suppose also that we wish to solve Eq. (1) in the neighborhood of a point x0. The solution of Eq. (1) in an interval containing x0 is closely associated with the behavior of P in that interval

A point x0 such that P(x0)’ = 0 is called an ordinary point. Since P is continuous, it follows that there is an interval about x0 in which P(x) is never zero. In that interval we can divide Eq. (1) by P(x) to obtain

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

where p(x), q(x) are continuous functions. Hence, according to the existence and uniqueness Theorem 3.2.1, there exists in that interval a unique solution of Eq. (1) that also satisfies the initial conditions y(x0) = y0, y’(x0) = y’0 for arbitrary values of y0 and y’0. In this and the following section we discuss the solution of Eq. (1) in the neighborhood of an ordinary point.

We look for solution of (294) in the form of a power series:

y=n=0an(xx0)n

and we assume that the series converges in the interval |xx0|<ρ, ρ>0.

Series solutions of ODEs#

(310) A point x=x0 is an ordinary point if p(x) and q(x) are analytic on some interval about x0, as opposed to a singular point. If x0 is a singularity of functions p(x) and q(x) but such that (xx0)p(x) and (xx0)2q(x) are analytic at x0, then x0 is a regular singular point.

Note that it is possible to translate the point x0 to the origin. We can also analyse the behaviour at infinity with the transformation x=1/t.

Power series Method#

A power series in powers of xx0 is an infinite series

m=0am(xx0)m

where x is a variable, x0 is a constant called the centre of the series and am are the coefficients of the series. It is possible to translate the point x0 to the origin, so for convenience we will often want to assume x0=0. Then

m=0amxm

We assume the solution of (310) to be of the form of the power series, so that

y=m=1mam(xx0)m1y=m=2m(m1)am(xx0)m2

The idea to solve (310) is:

  1. Represent p(x) and q(x) by power series

  2. Substitute y and its derivatives in (310)

  3. Equate coefficients of like powers of x and determine them successively

To demonstrate this, lets look at a simple example, the simple harmonic oscillator y+y=0. Inserting the above power series into the ODE (assuming x0=0) yields

m=2m(m1)amxm2+m=0amxm=0

We cannot solve this yet as the summands involve different powers of x and the lower limits are different. To circumvent this, we can use a shifted index n=m2 for y and then relabel nm:

y(x)=m=0am+2(m+2)(m+1)xm

Now we can procceed

m=0am+2(m+2)(m+1)xm+m=0amxm=0
 m=0[am+2(m+2)(m+1)+am]xm=0

We require the overall coefficient of each and every power of x to vanish. This is the only way to guarantee that the LHS equals zero for any x. Thus, we can write

[am+2(m+2)(m+1)+am=0
 am+2=1(m+2)(m+1)am

which is known as a recurrence relation. It seperately links am together for even m and odd m. Using the recurrence relation, we can determine all the coefficients of the power series and thus determine the answer of the ODE. Thus, for the simple harmonic oscillator, we find for even m=2k:

a2(k+1)=1(2k+2)(2k+1)a2k

and by inspection we see that

a2k=(1)k(2k)!a0

Using the same procedure for odd m=2k+1 we find by inspection that

a2k+1=(1)k(2k+1)!a1

Thus, relabelling km, we can write

y(x)=a0m=0(1)m(2m)!x2m+a1m=0(1)m(2m+1)!x2m+1

We can recognise the two power series as the sine and cosine functions respectively. Thus, the answer to the ODE can be written as

y(x)=a0cos(x)+a1sin(x)

which, as expected, is the solution to the simple harmonic oscillator. Note that this is the general solution with the undetermined coefficients a0 and a1 acting as the two required arbitrary constants.

Frobenius method#

Consider a second-order linear ODE

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

Theorem (Fuchs) If x=x0 is a regular singular point, then the solutions of a differential equation:

  1. are analytic on some neighbourhood around x0

  2. or they have a pole or a logarithmic term.

The solution to the ODE can be expressed using a generalised Frobenious series, meaning that any solution can be written as

y(x)=m=0am(xx0)m+r

where am0, since if it were zero we can absorb a factor of (xx0) into (xx0)r. This condition leads to the indicinal equation for r (i.e. the equation for the index r), which is a quadratic. Usually there are two solutions and hence two series, however, if the roots for r differ by an integer, we have to be careful, for reasons that will be explained below. The best way to demonstrate the Frobenious method is through an example. We will solve Bessel’s equation which in standard form is

y+1xy+(1s2x2)y=0

where s0, p(x)=1/x and q(x)=1s2x2. So p and q are not analytic at x=0, and x=0 is a singular point. Also (xx0)p(x) and (xx0)2q(x) are analytic at x0=0, thus x0=0 is a regular singluar point and so we can use the Frobenious method to solve the ODE. Therefore we substitue

y(x)=m=0amxm+r,        y(x)=m=0am(m+r)xm+r1,        y(x)=m=0am(m+r)(m+r1)xm+r2

into Bessel’s equation, noting that the limits are all m=0 since the m=0 and m=1 terms do not necessarily differentiate to zero. If r is not an integer then the leading term does not vanish upon differentiating. Thus we get

x2m=0am(m+r)(m+r1)xm+r2+xm=0am(m+r)xm+r1+(x2s2)m=0amxm+r=0

Now absorb the x1,x2 pre-factors onto the sum

m=0am(m+r)(m+r1)xm+r+m=0am(m+r)xm+rs2m=0amxm+r+m=0amxm+r+2=0

Letting n=m+2 in the final sum:

... + ... + ... +n=2an2xn+r=0

Finally, relabel nm, collect in powers of x and split of the m=0 and m=1 terms of the first three sums:

a0[r(r1)+rs2]xr+a1[(r+1)r+(r+1)s2]xr+1+m=2[am[(m+r)2s2]+am2]xm+r=0

Similarly to the power series method, we require all coefficients infront of each power of x to vanish. The first two terms yield the indicial equation for determinind r. The general term inside the summation gives the recurrence relation that generates the coefficients of the power series solution.

For m=0, after simplification the indicial equation becomes:

r2s2=0        r=±s

where s is positive. Remember that a0 cannot be zero.

For m=1:

a1[(r+1)2s2]=0

thus either

a1=0              or                (r+1)2s2=0

For now we will only consider the a1=0 possibility.

for m2:

am=am2(r+m)2s2=am2m2+2rm

where the last equality comes from the indicial equation, r2=s2. Using the recursion relation to evaluate the am coefficients and inserting in the generalised power series yields the answer to the ODE

y(x)=xr[1x22(2+r+x42×4(2+2r)(4+2r) ...]

Remembering that a1=0, the recurrence relation implies that all aodd=0 and thus there is no second series. However, the two roots r=±s will usually yield the two independent solutions.

Now lets go back to the second indicial equation (from m=1) and consider [(r+1)2s2]=0. Since r2=s2 (from the first indicial equation), this requires 2r+1=0 or r=1/2 and is thus the special case for s=1/2. Therefore we will look for solutions with s=1/2.

For the r=1/2 solution, the recurrence relation becomes

am=am2m(m+1)

and thus

y(x)=a0x1/2[1x23!+x45! ...]

which can be written as

y(x)=a0x1/2[xx33!+x35! ...]=a0sinxx1/2

There is no second series, since a1=0 for r=1/2.

Now lets consider the r=1/2 solution. The recurrence relation becomes

am=am2m(m1)

In this cae, a1 is undetermined and thus the solution is given by two series:

y(x)=a0x1/2[1x22!+x44! ...]+a1x1/2[xx33!+x55! ...]

which can be written as

y(x)=a0cosxx1/2+a1sinxx1/2=yGS(x)

The second term just duplicates the solution we found for r=1/2, so that solution is already present here, which is why we identify this solution as the general solution, yGS(x). This occurs when the roots differ by an integer, as they do here (r=1/2,+1/2), which is why we must be careful when roots for r do differ by an integer.