Series solutions
In Section 13.2, we outlined a method to solve homogeneous LODEs where the coefficients of the dependent function and its derivatives are constants. Examples were carried out on second-order LODEs but the method generalises to higher order LODEs as well. In this section, we solve the homogeneous ODE without requiring that the coefficients are constants. In general equations of the form,
cannot usually be solved in closed form. Often we can find a solution in terms of infinite series.
Power series and their convergence are discussed in Chapter 6. We start off with a brief introduction on when we can find series solutions to differential equations. Consider the following general form of the homogeneous differential equation,
The idea behind this method is to assume that we can write the solution as a power series of the form,
as seen in Chapter 6 , where is an ordinary point. With regard to Eq. (13.2), is an ordinary point provided that the coefficients have a Taylor series [see Section 6.1] around . A point that is not ordinary is called singular. A series solution of the form (13.102) can be assumed given that is an ordinary point.
Before we see how series are used to solve ODEs, we discuss index shifting and power series derivatives.
Index shifting
When adding/subtracting multiple series, we first need to have the series starting and ending at the same value of . For this reason, sometimes we need to shift a series without changing the value of the series. This is much like changing the variable in integrals. Consider the following series
and suppose we wanted to start the series at without changing its value. We define a new index, such that which implies that ; substituting in the series above, we have,
Finally, we can choose any letter to represent the index so we can simply move back to using ,
Derivatives of power series
Consider the function
taking the first derivative gives,
Note that the series now starts at since the constant term, has zero as its derivative.
Power series solutions
We are now ready to move to an example where we use series solutions to approximate solutions to initial value problems. We typically seek a solution of the form
Note that the initial condition in an IVP dictates where we normally center the series solution. The objective is to determine the coefficients that satisfy the differential equation and initial conditions.
Consider the following IVP,
Clearly, if a closed form solution is easy to find, a series solution is not preferred; however, the method is very powerful when closed form solutions cannot be found. The differential equation in Eq. (13.104) is known as the Airy equation and its solution cannot be expressed in terms of elementary functions. With the initial condition given at , we choose to start with power series (13.103) taking and so, the assumed form of the solution is
We rearrange the ODE given in (13.104) to give
where the LHS is represented by the second derivative of (13.105) and the RHS is represented by the solution form (13.105), multiplied by . We need to find conditions that all coefficients , satisfy. Differentiating (13.105) wrt yields,
The second derivative is given by,
We also note that is given by,
Substituting Eqs. (13.108) and (13.109) in Eq. (13.106), we get
Recall that our objective is to write down conditions that allow us to determine the coefficients . This is achieved by having the same exponent on . We observe that, in order to get both series in terms of , we need to shift the series on the LHS down by 2 and the series on the RHS up by 1 . This yields,
The next step is to get the two series starting at the same value of . One way to achieve this is to consider the term for the series on the LHS of Eq. (13.111), outside the series, i.e.
From Eq. (13.112), we have that and the following recurrence relation,
Plugging in values of for , we obtain the first three terms as
We can perhaps see from Eq. (13.113) that for all where , the coefficients are given in terms of . Similarly, for all , the coefficients are given in terms of . For all , the coefficients are given in terms of and are therefore 0 . Indeed we have,
and so on. Similarly, we have
Now that we have the coefficients we can plug them in back to Eq. (13.105) and obtain the general solution as,
Note that and are constants that are determined through application of the initial conditions. Note also that the solutions found here are only valid within the radius of convergence of the power series (see Section 6.2 in Chapter 6 for details on convergence).