Solving ODEs by Series

7 minute read ·

Published:

Now, we consider a somehow more general case, where we want to solve a linear second-order homogeneous equation with coefficients that are polynomials. Consider the following equation

p(t)y+q(t)y+r(t)y=0p\left( t \right) y''+q\left( t \right) y'+r\left( t \right) y=0

where p(t)0p\left(t\right)\ne 0 in some interval and p(t),q(t),r(t)p\left(t\right),q\left(t\right),r\left(t\right) are polynomials of tt.

Properties of Power Series

An infinite series

y(t)=n=0an(tt0)n=a0+a1x+a2x2+ y\left( t \right) =\sum_{n=0}^{\infty}{a_n\left( t-t_0 \right) ^n}=a_0+a_1x+a_2x^2+\cdots 

is called a power series about t=t0t=t_0. The following are some of its properties.

  1. All power series have an interval of convergence. This means that there exists a nonnegative number ρ\rho such that the infinite series converges for tt0<ρ\left|t-t_0\right|<\rho, and diverges for tt0>ρ\left|t-t_0\right|>\rho. The number ρ\rho is called the radius of convergence of the power series.
  1. The power series can be differentiated and integrated term by term, and the resultant series have the same radius of convergence.
  1. One simple method to determine the radius of convergence of a power series is the Cauchy ratio test. Suppose
limnan+1an=λ \underset{n\rightarrow \infty}{\lim}\left| \frac{a_{n+1}}{a_n} \right|=\lambda 

Then the radius of convergence is ρ=1λ\displaystyle \rho=\frac{1}{\lambda}.

  1. Many functions f(t)f\left(t\right) that arise in applications can be expanded in power series, i.e., there exists a series of coefficients a0,a1,a2,a_0,a_1,a_2,\dots so that
f(t)=n=0an(tt0)nf\left(t\right)=\sum_{n=0}^{\infty}a_n\left(t-t_0\right)^n

Such functions are said to be analytic at t=t0t=t_0, the series expansion is called the Taylor series of ff about t=t0t=t_0, and the coefficients can be found by

an=f(n)(t0)n!a_n=\frac{f^{\left(n\right)}\left(t_0\right)}{n!}
  1. The radius of convergence can be determined if we treat the function ff in the complex plane. Let z0Cz_0\in\mathbb{C} be the point that is closest to t0t_0 that f(n)(z0)f^{(n)}(z_0) fails to exist, then the radius of convergence is ρ=z0t0\rho=\left\|z_0-t_0\right\|.
  1. The product of two power series is still a power series, this product is called the Cauchy product
n=0an(tt0)nn=0bn(tt0)n=n=0cn(tt0)n\sum_{n=0}^{\infty}{a_n\left( t-t_0 \right) ^n}\sum_{n=0}^{\infty}{b_n\left( t-t_0 \right) ^n}=\sum_{n=0}^{\infty}{c_n\left( t-t_0 \right) ^n}

where the coefficient is

cn=j+k=najbk=a0bn+a1bn1++anb0c_n=\sum_{j+k=n}a_jb_k=a_0b_n+a_1b_{n-1}+\cdots+a_nb_0

which is called the convolution of ana_n and bnb_n.

  1. Important series expansions (Remember them!)
11x=1+x+x2+=n=0xn,ρ=1\begin{align*} \frac{1}{1-x}=1+x+x^2+\cdots=\sum_{n=0}^{\infty}x^n, && \rho=1 \end{align*}
ex=1+x+x22+x36+=n=0xnn!,ρ=\begin{align*} e^x=1+x+\frac{x^2}{2}+\frac{x^3}{6}+\cdots=\sum_{n=0}^{\infty}\frac{x^n}{n!}, && \rho=\infty \end{align*}
sinx=xx33!+x55!=n=0(1)nx2n+1(2n+1)!,ρ=\begin{align*} \sin x=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots=\sum_{n=0}^{\infty}\frac{\left(-1\right)^nx^{2n+1}}{\left(2n+1\right)!}, && \rho=\infty \end{align*}
cosx=1x22!+x44!=n=0(1)nx2n(2n)!,ρ=\begin{align*} \cos x=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots=\sum_{n=0}^{\infty}\frac{\left(-1\right)^nx^{2n}}{\left(2n\right)!}, && \rho=\infty \end{align*}
ln(1x)=xx22x33=n=1xnn,ρ=1\begin{align*} \ln\left(1-x\right)=-x-\frac{x^2}{2}-\frac{x^3}{3}-\cdots=-\sum_{n=1}^{\infty}\frac{x^n}{n}, && \rho = 1 \end{align*}
ln(1+x)=xx22+x33=n=1(1)n+1xnn,ρ=1\begin{align*} \ln\left(1+x\right)=x-\frac{x^2}{2}+\frac{x^3}{3}-\cdots=\sum_{n=1}^{\infty}\left(-1\right)^{n+1}\frac{x^n}{n}, && \rho = 1 \end{align*}

Series Solution

For a second-order equation with variable coefficients (but are analytic functions, at least), although it’s not very rigorous, we can first expect that the solution yy is also a power series. Then, by doing series expansion and setting the polynomial coefficients properly, we can expect the equation to hold. A formal statement of this is as follows.

Let the functions q(t)/p(t)q\left(t\right)/p\left(t\right) and r(t)/p(t)r\left(t\right)/p\left(t\right) have convergent Taylor series expansions about t=t0t=t_0, for tt0<ρ\left|t-t_0\right|<\rho. Then, every solution y(t)y\left(t\right) of the differential equation

p(t)y+q(t)y+r(t)y=0p\left(t\right)y''+q\left(t\right)y'+r\left(t\right)y=0

is analytic at t=t0t=t_0, and the radius of convergence of its Taylor series expansion about t=t0t=t_0 is at least ρ\rho. Set

y(t)=a0+a1(tt0)+a2(tt0)2+y\left(t\right)=a_0+a_1\left(t-t_0\right)+a_2\left(t-t_0\right)^2+\cdots

the coefficients are determined by plugging the expression into the differential equation and setting the sum of the coefficients of like powers of tt in this expression equal to zero.

However, it is possible that sometime p(t0)=0p\left(t_0\right)=0, and the above method of series expansion will fail to work, but we still want to find a solution around the point t=t0t=t_0. One possible case is Euler’s equation.

Euler’s Equation

The differential equation

t2y+αty+βy=0t^2y''+\alpha ty'+\beta y=0

where α,βR\alpha,\beta\in\mathbb{R} are constant is known as Euler’s equation.

This equation has a singular point at t=0t=0 and the series solution method above cannot work. However, we can treat t>0t>0 and t<0t<0 separately.

First, assume that t>0t>0.

For t<0t<0, let t=xt=-x (x>0x>0), and let y=u(x)y=u\left(x\right). Then the equation is transformed into

x2u+αxu+βu=0x^2u''+\alpha x u'+\beta u = 0

which should have the same solution as the case when t>0t>0. Thus, for the final solution, we only need to put a modulus on tt.

Observe that t2yt^2y'', tyty', and yy will have the same order if y=try=t^r. Our goal is to find two independent solutions. Therefore, we plug in y=try=t^r into the equation.

ddttr=rtr1,d2dt2tr=r(r1)tr2\begin{align*} \frac{\mathrm{d}}{\mathrm{d}t}t^r=rt^{r-1}, && \frac{\mathrm{d}^2}{\mathrm{d}t^2}t^r=r\left(r-1\right)t^{r-2} \end{align*}

The original equation then becomes,

[r(r1)+αr+β]tr=0\left[r\left(r-1\right)+\alpha r+\beta\right]t^r=0

Hence, y=try=t^r is a solution if and only if rr is a solution of the quadratic equation

r2+(α1)r+β=0r^2+\left(\alpha-1\right)r+\beta=0

Two Different Real Roots, (α1)24β>0\left(\alpha-1\right)^2-4\beta >0

The general solution is given by

y(t)=c1tr1+c2trty\left(t\right)=c_1t^{r_1}+c_2t^{r_t}

where r1,2=12[(α1)±(α1)24β]\displaystyle r_{1,2}=-\frac{1}{2}\left[\left(\alpha-1\right)\pm\sqrt{\left(\alpha - 1\right)^2-4\beta}\right].

Two Equal Roots, (α1)24β=0\left(\alpha-1\right)^2-4\beta =0

One solution that is obvious is

y1(t)=tr1y_1\left(t\right)=t^{r_1}

where r=1α2\displaystyle r=\frac{1-\alpha}{2}.

To find the second independent solution, applying the differential operator

L=t2d2dt2+αtddt+β\displaystyle L=t^2\frac{\mathrm{d}^2}{\mathrm{d}t^2}+\alpha t\frac{\mathrm{d}}{\mathrm{d}t}+\beta

and rewrite the equation as Ly=0Ly=0. Plug in y=try=t^r, we have

L[tr]=(rr1)2trL\left[t^{r}\right]=\left(r-r_1\right)^2t^{r}

Taking partial derivatives of both sides with respect to rr gives

rL[tr]=L[rtr]=r[(rr1)2tr]\frac{\partial}{\partial r}L\left[t^r\right]=L\left[\frac{\partial}{\partial r}t^{r}\right]=\frac{\partial}{\partial r}\left[\left(r-r_1\right)^2t^r\right]

That is

L[trlnt]=(rr1)2trlnt+2(rr1)trL\left[t^r\ln t\right]=\left(r-r_1\right)^2t^r\ln t+2\left(r-r_1\right)t^r

We can see that if r=r1r=r_1, then the right-hand side will vanish. Therefore, the second solution is

y2(t)=tr1lnty_2\left(t\right)=t^{r_1}\ln t

The general solution is

y=(c1+c2lnt)tr1y=\left(c_1+c_2\ln t\right)t^{r_1}

Two Complex Solutions, (α1)24β<0\left(\alpha-1\right)^2-4\beta <0

Let

r1=λ+iμ,r2=λiμ\begin{align*} r_1=\lambda+i\mu, && r_2=\lambda-i\mu \end{align*}

and

ϕ(t)=tλ+iμ=tλ[cos(μlnt)+isin(μlnt)]\phi\left(t\right)=t^{\lambda+i\mu}=t^{\lambda}\left[\cos\left(\mu \ln t\right)+i\sin\left(\mu \ln t\right)\right]

It can be shown that the real and imaginary parts are two independent solutions. Therefore,

y1(t)=Re(ϕ(t))=tλcos(μlnt)y2(t)=Im(ϕ(t))=tλsin(μlnt)\begin{align*} y_1\left(t\right)=\mathrm{Re}\left(\phi\left(t\right)\right)=t^{\lambda}\cos\left(\mu\ln t\right)\\ y_2\left(t\right)=\mathrm{Im}\left(\phi\left(t\right)\right)=t^{\lambda}\sin\left(\mu\ln t\right)\\ \end{align*}

and the general solution is

y(t)=tλ[c1cos(μlnt)+c2sin(μlnt)]y\left(t\right)=t^{\lambda}\left[c_1\cos\left(\mu\ln t\right)+c_2\sin\left(\mu\ln t\right)\right]

where λ=1α2\displaystyle \lambda=\frac{1-\alpha}{2}, μ=4β(α1)22\displaystyle \mu = \frac{\sqrt{4\beta-\left(\alpha-1\right)^2}}{2}.

Method of Frobenius

Here, we want to find a class of singular differential equations that is more general than Euler’s equation. A very natural generalization is the following

L(y)=y+p(t)y+q(t)y=0L(y)=y''+p\left(t\right)y'+q\left(t\right)y=0

where p(t)p\left(t\right) and q(t)q\left(t\right) can be expanded in series of the form

p(t)=p0t+p1+p2t+p3t2+q(t)=q0t2+q1t+q2+q3t+q4t2+\begin{align*} p\left(t\right)&=\frac{p_{0}}{t}+p_1+p_2t+p_3t^2+\cdots\\ q\left(t\right)&=\frac{q_{0}}{t^2}+\frac{q_{1}}{t}+q_2+q_3t+q_4t^2+\cdots \end{align*}

In this case, the equation is said to have a regular singular point at t=0t=0. Equivalently, an equation has a regular singular point at t=0t=0 if functions tp(t)tp\left(t\right) and t2q(t)t^2q\left(t\right) are analytic at t=0t=0. It has a regular singular point at t=t0t=t_0 if functions (tt0)p(t)\left(t-t_0\right)p\left(t\right) and (tt0)2q(t)\left(t-t_0\right)^2q\left(t\right) are analytic at t=t0t=t_0.

We focus on the interval t>0t>0 and multiply through the equation by t2t^2 and get

t2y+t(tp(t))y+t2q(t)=0t^2y''+t\left(tp\left(t\right)\right)y'+t^2q\left(t\right)=0

Compare the above equation with Euler’s equation, and find that it seems like adding higher order terms, i.e., by changing α\alpha to tp(t)=n=0pntn\displaystyle tp\left(t\right)=\sum_{n=0}^{\infty}p_nt^n, and changing β\beta to t2q(t)=n=0qntn\displaystyle t^2q\left(t\right)=\sum_{n=0}^{\infty}q_nt^n. Therefore, we may be able to obtain a solution by plugging in higher order term to the original trt^r solution. Specifically, let

y(t)=n=0antn+r=trn=0antny\left(t\right)=\sum_{n=0}^{\infty}a_nt^{n+r}=t^{r}\sum_{n=0}^{\infty}a_nt^n

Then,

y(t)=n=0(n+r)antn+r1y'\left(t\right)=\sum_{n=0}^{\infty}\left(n+r\right)a_nt^{n+r-1}

and

y(t)=n=0(n+r)(n+r1)antn+r2y''\left(t\right)=\sum_{n=0}^{\infty}\left(n+r\right)\left(n+r-1\right)a_nt^{n+r-2}

Plug these in the original equation at get

L(y)=tr{t=0(n+r)(n+r1)antn+(m=0pmtm)[n=0(n+r)antn]}+tr(m=0qmtm)(n=0antn)=[r(r1)+00r+q0]a0tr+{[(1+r)r+p0(1+r)+q0]a1+(rp1+q1)a0}tr+1++([(n+1)(n+r1)+p0(n+r)+q0]an+n=0[(k+r)pnk+qnk]ak)tn+r\begin{align*} L(y)&=t^r\left\{\sum_{t=0}^{\infty}\left(n+r\right)\left(n+r-1\right)a_nt^n+\left(\sum_{m=0}^{\infty}p_mt^m\right)\left[\sum_{n=0}^{\infty}\left(n+r\right)a_nt^n\right]\right\}\\ &+t^r\left(\sum_{m=0}^{\infty}q_mt^m\right)\left(\sum_{n=0}^{\infty}a_nt^{n}\right)\\ &=\left[r\left(r-1\right)+0_0r+q_0\right]a_0t^r\\ &+\left\{\left[\left(1+r\right)r+p_0\left(1+r\right)+q_0\right]a_1+\left(rp_1+q_1\right)a_0\right\}t^\\ &+\dots\\ &+\left(\left[\left(n+1\right)\left(n+r-1\right)+p_0\left(n+r\right)+q_0\right]a_n+\sum_{n=0}^{\infty}\left[(k+r)p_{n-k}+q_{n-k}\right]a_k\right)t^{n+r} \end{align*}

If we set

F(r)=r(r1)+p0r+q0F\left(r\right)=r\left(r-1\right)+p_0r+q_0

and set the coefficient of each like power equal to zero, we have an indicial equation

F(r)=r(r1)+p0r+q0=0F\left(r\right)=r\left(r-1\right)+p_0r+q_0=0

and a recurrence relation

F(n+r)an=k=0n1[(k+r)pnk+qmk]akF\left(n+r\right)a_n=-\sum_{k=0}^{n-1}\left[\left(k+r\right)p_{n-k}+q_{m-k}\right]a_k

From these two relations, we can (hopefully) obtain two sets of coefficients an(r1)a_n(r_1) and an(r2)a_n(r_2) and the two independent solutions are

y1(t)=tr1n=0an(r1)tn,y2(t)=tr2n=0an(r2)tn\begin{align*} y_1\left(t\right)=t^{r_1}\sum_{n=0}^{\infty}a_n\left(r_1\right)t^{n}, && y_2\left(t\right)=t^{r_2}\sum_{n=0}^{\infty}a_n\left(r_2\right)t^{n} \end{align*}

if we can obtain two different real solutions r1r_1 and r2r_2, with (r1r2)Z\left(r_1-r_2\right)\notin\mathbb{Z}.

Next, we discuss the possible situations that the above conditions are not satisfied.

Two Complex Roots

If rr is a complex root of the indicial equation, then

y(t)=trn=0antny\left(t\right)=t^r\sum_{n=0}^{\infty}a_nt^{n}

is a complex-valued solution, whose real and imaginary part are both real-valued solutions.

Equal Roots

If rr is the only root of the indicial equation, then we have only one independent solution.

y1(t)=trn=0antny_1\left(t\right)=t^r\sum_{n=0}^{\infty}a_nt^{n}

To find the other solution, use the similar method of dealing with Euler’s equation. The second solution is

y2(t)=y1(t)lnt+n=0an(r)tn+ry_2\left(t\right)=y_1\left(t\right)\ln t+\sum_{n=0}^{\infty}a_n'\left(r\right)t^{n+r}

Roots Differing by a Positive Integer

Suppose that r2r_2 and r1=r2+Nr_1=r_2+N, where NZ+N\in\mathbb{Z}^{+}, are two roots of the indicial equation. Then, we can certainly find one solution

y1(t)=trn=0an(r1)tny_1\left(t\right)=t^r\sum_{n=0}^{\infty}a_n\left(r_1\right)t^{n}

It may be impossible to find another solution with coefficients an(r2)a_n\left(r_2\right).

In this case, the equation will have a second solution of the form

y2(t)=ay1(t)lnt+n=0an(r2)tn+r2y_2\left(t\right)=ay_1\left(t\right)\ln t+\sum_{n=0}^{\infty}a_n'\left(r_2\right)t^{n+r_2}

Categories: Mathematics