logo

Solution of Differential Equations Using Series Solutions 📂Odinary Differential Equations

Solution of Differential Equations Using Series Solutions

Description

Differential equations with constant coefficients can be relatively easily solved using methods such as separation of variables or integrating factor method. However, differential equations with coefficients that include the independent variable, as shown below, cannot be easily solved.

P(x)d2ydx2+Q(x)dydx+R(x)y=0 \begin{equation} P(x)\dfrac{d^2 y}{dx^2} + Q(x)\dfrac{dy}{dx}+R(x)y=0 \label{1}\end{equation}

Here, PP, QQ, and RR are assumed to be polynomials without common factors. Equations of the above form include

Bessel’s equation

x2y+xy+(x2ν2)y=0,ν is constant x^2 y^{\prime \prime} +xy^{\prime}+(x^2-\nu ^2)y=0,\quad \nu \text{ is constant}

Legendre’s equation

(1x2)y2xy+l(l+1)y=0,l is constant (1-x^2)y^{\prime \prime}-2xy^{\prime}+l(l+1)y=0,\quad l \text{ is constant}

among others. The goal in solving such differential equations is to find solutions in the form of power series.

Definition1

In (1)\eqref{1}, x0x_{0} is called an ordinary point if P(x0)0P(x_{0}) \ne 0. Since PP is continuous, there exists an open interval that includes x0x_{0}, denoted as P(x)0P(x) \ne 0. Our objective here is to find a power series solution to (1)\eqref{1} in the vicinity of an ordinary point x0x_{0}. In other words, the solution to (1)\eqref{1} is assumed to be a power series of the form

y=a0+a1(xx0)+a2(xx0)2+=n=0an(xx0)n y=a_{0}+a_{1}(x-x_{0})+a_2(x-x_{0})^2+\cdots = \sum \limits _{n=0}^\infty a_{n}(x-x_{0})^n

and converges within the radius of convergence xx0<ρ|x-x_{0}| < \rho. This method allows us to solve difficult differential equations with the independent variable xx in the coefficients.

On the other hand, x0x_{0} is called a singular point if P(x0)=0P(x_{0})=0. Among singular points,

limxx0(xx0)Q(x)P(x)<andlimxx0(xx0)2R(x)P(x)< \lim \limits_{x\rightarrow x_{0}}(x-x_{0})\frac{Q(x)}{P(x)} < \infty\quad \mathrm{and}\quad \lim \limits_{x\rightarrow x_{0}} (x-x_{0})^{2}\frac{R(x) }{P(x)}<\infty

those satisfying this condition are called regular singular points. If it is not a regular singular point, it is called an irregular singular point. When x0x_{0} is a regular singular point, the solution is assumed to start as follows.

y=n=0anxn+s y=\sum \limits_{n=0}^{\infty}a_{n}x^{n+s}

This method of solving is known as the Frobenius method.

Example

Solve for the series solution of y+y=0y^{\prime \prime}+y=0 and <x<-\infty < x < \infty.

Although the content is lengthy, it is not difficult, so take your time reading it. The given equation for the example may be sufficiently easily solved without resorting to a series solution, but the importance lies in practicing the method of solving through series solutions. Firstly, y+y=0y^{\prime \prime}+y=0 is when P(x)=1P(x)=1, Q(x)=0Q(x)=0, and R(x)=1R(x)=1. Thus, every point is an ordinary point, but for simplification, let’s choose x0=0x_{0}=0. Assume the given differential equation’s solution converges for the power series below at x<ρ|x| < \rho.

y=a0+a1x+a2x2+=n=0anxn y=a_{0}+a_{1}x+a_2x^2+\cdots = \sum \limits_{n=0}^\infty a_{n}x^n

To insert into the differential equation, calculate yy^{\prime \prime} to get

y=2a2+32a3x++n(n1)anxn2+=n=2n(n1)anxn2 y^{\prime \prime}=2a_2+3\cdot 2 a_{3} x + \cdots +n(n-1)a_{n}x^{n-2}+\cdots = \sum \limits_{n=2} ^\infty n(n-1)a_{n}x^{n-2}

Inserting yy and yy^{\prime \prime} into the given differential equation yields

n=2n(n1)anxn2+n=0anxn=0 \sum \limits_{n=2} ^\infty n(n-1)a_{n}x^{n-2} + \sum \limits_{n=0}^\infty a_{n}x^n=0

An important point in the series solution method is to align the order of xx. When substituting n+2n+2 instead of nn for the first term of the series, it becomes as follows.

n=0(n+2)(n+1)an+2xn+n=0anxn=0    n=0[(n+2)(n+1)an+2+an]xn=0 \begin{align*} && \sum \limits_{n=0} ^\infty (n+2)(n+1)a_{n+2}x^{n} + \sum \limits_{n=0}^\infty a_{n}x^n&=0 \\ \implies && \sum \limits_{n=0} ^\infty \left[ (n+2)(n+1)a_{n+2}+ a_{n} \right] x^{n}&=0 \end{align*}

From the properties of power series, for the above equation to hold, all coefficients must be 00. Thus, we obtain the following equation.

(n+2)(n+1)an+2+an=0    (n+2)(n+1)an+2=an    an+2=1(n+2)(n+1)an \begin{align*} && (n+2)(n+1)a_{n+2}+ a_{n}&=0 \\ \implies && (n+2)(n+1)a_{n+2}&=-a_{n} \\ \implies&& a_{n+2}&=\dfrac{-1}{(n+2)(n+1)} a_{n} \end{align*}

The formula that describes the relationship between the preceding and succeeding coefficients is called a recurrence relation. From the recurrence relation, each term’s coefficient can be determined. Since the n+2n+2th coefficient can be found from the nnth coefficient, knowing the first two coefficients, a0,a1a_{0}, a_{1}, allows us to know all coefficients. Therefore, the series can be divided into two parts, grouped as a0a_{0} and a1a_{1}. For even nn in general, it can be expressed as follows for n=2k(k=1,2,)n=2k(k=1,2,\dots).

a2=121a0=12!a0a4=143a2=14312!a0=14!a0a6=16!a0an=a2k=(1)k(2k)!a0 \begin{align*} a_2 &=\dfrac{-1}{2\cdot 1}a_{0}=\dfrac{-1}{2!}a_{0} \\ a_{4} &=\dfrac{-1}{4\cdot 3}{a_2}=\dfrac{-1}{4\cdot 3}\dfrac{-1}{2!}a_{0}=\dfrac{1}{4!}a_{0} \\ a_{6}&=\dfrac{-1}{6!}a_{0} \\ &\vdots \\ a_{n} &=a_{2k}=\dfrac{(-1)^k}{(2k)!}a_{0} \end{align*}

For odd nn in general, it can be expressed as follows for n=2k+1(k=1,2,)n=2k+1(k=1,2,\dots).

a3=132a1=13!a1a5=154a3=15413!a0=15!a1a7=17!a1an=a2k+1=(1)k(2k+1)!a1 \begin{align*} a_{3} &=\dfrac{-1}{3\cdot 2}a_{1}=\dfrac{-1}{3!}a_{1} \\ a_{5}&=\dfrac{-1}{5 \cdot 4}a_{3}=\dfrac{-1}{5\cdot 4}\dfrac{-1}{3!}a_{0}=\dfrac{1}{5!}a_{1} \\ a_{7}&=\dfrac{-1}{7!}a_{1} \\ &\vdots \\ a_{n} &=a_{2k+1}=\dfrac{(-1)^k}{(2k+1)!}a_{1} \end{align*}

Inserting and organizing the above results into yy gives the following.

y=a0+a1xa02!x2a13!x3++(1)na0(2n)!x2n+(1)na1(2n+1)!x2n+1+=a0[112!x2+14!x4++(1)n(2n)!x2n+]+a1[x13!x3+15!x5++(1)n(2n+1)!x2n+1+]=a0n=0(1)n(2n)!x2n+a1n=0(1)n(2n+1)!x2n+1 \begin{align*} y&= a_{0}+a_{1}x-\dfrac{a_{0}}{2!}x^2-\dfrac{a_{1}}{3!}x^3+\cdots +\dfrac{(-1)^na_{0}}{(2n)!}x^{2n}+\dfrac{ (-1)^{n} a_{1}}{(2n+1)!} x^{2n+1} +\cdots \\ &=a_{0}\left[ 1-\dfrac{1}{2!}x^2+\dfrac{1}{4!}x^4+\cdots + \dfrac{(-1)^n}{(2n)!}x^{2n} + \cdots \right] + a_{1} \left[ x-\dfrac{1}{3!}x^3 +\dfrac{1}{5!}x^5+\cdots +\dfrac{ (-1)^n}{(2n+1)!}x^{2n+1} +\cdots \right] \\ &= a_{0} \sum \limits_{n=0}^\infty \dfrac{(-1)^n } {(2n)!} x^{2n}+a_{1}\sum \limits_{n=0}^\infty \dfrac{(-1)^n}{(2n+1)!}x^{2n+1} \end{align*}

We have found the two solutions and the general solution for the given second-order differential equation. The general solution is represented as a linear combination of the below two independent solutions. y1(x)=n=0(1)n(2n)!x2n,y2(x)=n=0(1)n(2n+1)!x2n+1 y_{1}(x)=\sum \limits_{n=0}^\infty \dfrac{(-1)^n } {(2n)!} x^{2n},\quad y_{2}(x)=\sum \limits_{n=0}^\infty \dfrac{(-1)^n}{(2n+1)!}x^{2n+1}

Using the ratio test, it can be seen that both series y1,y2y_{1}, y_{2} converge for all xx. Moreover, these two series exactly match the Taylor series of cos\cos and sin\sin. This means y=a0cosx+a1sinxy=a_{0}\cos x+a_{1}\sin x, which is the same as the solution obtained through solving second-order differential equations with constant coefficients.


  1. William E. Boyce, Boyce’s Elementary Differential Equations and Boundary Value Problems (11th Edition, 2017), p195-219 ↩︎