Series Solutions: First Examples

Let us look (again) at the example

y''+4y=0.

Using other techniques it is not hard to see that the solutions are of the form

\begin{displaymath}y(t)=A \sin (2t) +B \cos(2t).\end{displaymath}

We want to illustrate how to find power series solutions for a second-order linear differential equation.

The generic form of a power series is

\begin{displaymath}y(t)=\sum_{n=0}^\infty a_n t^n.\end{displaymath}

We have to determine the right choice for the coefficients (an).

As in other techniques for solving differential equations, once we have a "guess" for the solutions, we plug it into the differential equation. Recall from the previous section that

\begin{displaymath}y''(t)=\sum_{n=2}^\infty n(n-1) a_n t^{n-2}.\end{displaymath}

Plugging this information into the differential equation we obtain:

\begin{displaymath}\sum_{n=2}^\infty n(n-1) a_n t^{n-2}+4\sum_{n=0}^\infty a_n t^n=0.\end{displaymath}

Our next goal is to simplify this expression such that only one summation sign "$\sum$" remains. The obstacle we encounter is that the powers of both sums are different, tn-2 for the first sum and tn for the second sum. We make them the same by shifting the index of the first sum by 2 units to obtain


\begin{displaymath}\sum_{n=0}^\infty (n+2)(n+1) a_{n+2} t^{n}+\sum_{n=0}^\infty 4 a_n t^n=0.\end{displaymath}

Now we can combine the two sums as follows:

\begin{displaymath}\sum_{n=0}^\infty \left( \phantom{\int}(n+2)(n+1) a_{n+2} t^{n}+ 4 a_n t^n\phantom{\int}\right)=0,\end{displaymath}

and factor out tn:

\begin{displaymath}\sum_{n=0}^\infty \left( \phantom{\int}(n+2)(n+1) a_{n+2} + 4 a_n \phantom{\int}\right)t^n=0.\end{displaymath}

Next we need a result you probably already know in the case of polynomials: A polynomial is identically equal to zero if and only if all of its coefficients are equal to zero. This results also holds true for power series:

Theorem. A power series is identically equal to zero if and only if all of its coefficients are equal to zero.

This theorem applies directly to our example: The power series on the left is identically equal to zero, consequently all of its coefficients are equal to 0:

\begin{displaymath}(n+2)(n+1) a_{n+2} + 4 a_n =0 \mbox{ for all } n=0,1,2,3,\ldots\end{displaymath}

Solving these equations for the "highest index" n+2, we can rewrite as

\begin{displaymath}a_{n+2}=-\frac{4}{(n+1)(n+2)} a_n \mbox{ for all } n=0,1,2,3,\ldots\end{displaymath}

These equations are known as the "recurrence relations" of the differential equations. The recurrence relations contain all the information about the coefficients we need.

Recall that

\begin{displaymath}y(t)=\sum_{n=0}^\infty a_n t^n=a_0+a_1 t+a_2 t^2 +a_3 t^3+\ldots,\end{displaymath}

in particular y(0)=a0, and

\begin{displaymath}y'(t)=\sum_{n=1}^\infty n a_n t^{n-1}=a_1+2 a_2 t + 3 a_3 t^2+\ldots,\end{displaymath}

in particular y'(0)=a1. This means, we can think of the first two coefficients a0 and a1 as the initial conditions of the differential equation.

How can we evaluate the next coefficient a2? Let us read our recurrence relations for the case n=0:

\begin{displaymath}a_2=-\frac{4}{1\cdot 2} a_0.\end{displaymath}

Reading off the recurrence relation for n=1 yields

\begin{displaymath}a_3=-\frac{4}{2\cdot 3} a_1.\end{displaymath}

Continue ad nauseam:

\begin{displaymath}a_4=-\frac{4}{3\cdot 4} a_2=-\frac{4}{3\cdot 4}\cdot( -\frac{4}{1\cdot 2} a_0)=\frac{2^4}{4!}a_0.\end{displaymath}


\begin{displaymath}a_5=-\frac{4}{4\cdot 5} a_3=-\frac{4}{4\cdot 5}\cdot( -\frac{4}{2\cdot 3} a_1)=\frac{2^5}{2\cdot 5!}a_1.\end{displaymath}

What do we know about the solutions to our differential equation at this point? They look like this:

\begin{eqnarray*}y(t)&=&\sum_{n=0}^\infty a_n t^n\\
&=&a_0 +a_1 t +a_2 t^2 +a_3...
...}\left((2 t)-\frac{1}{3!} (2 t)^3+\frac{1}{5!}(2t)^5\ldots\right)\end{eqnarray*}


Of course the power series inside the parentheses are the familiar functions $\cos(2t)$ and $\sin(2t)$:

\begin{displaymath}y(t)=a_0 \cos(2t)+\frac{a_1}{2}\sin(2t),\end{displaymath}

so we have found the general solution of the differential equation (with a0 instead of B, and a1/2 instead of A).


The series solutions method is mainly used to find power series solutions of differential equations whose solutions can not be written in terms of familiar functions such as polynomials, exponential or trigonometric functions. This means that in general you will not be able to perform the last few steps of what we just did (less worries!), all we can try to do is to come up with a general expression for the coefficients of the power series solutions.


As another introductory example, let's find the solution to the initial value problem

\begin{displaymath}y''-4y'+3=0,\quad y(0)=1,\ y'(0)=2.\end{displaymath}

The generic form of a power series is

\begin{displaymath}y(t)=\sum_{n=0}^\infty a_n t^n.\end{displaymath}

We have to determine the right choice for the coefficients (an).

Start by plugging this "guess" into the differential equation. Recall from the previous section that

\begin{displaymath}y'(t)=\sum_{n=1}^\infty n a_n t^{n-1},\end{displaymath}

and

\begin{displaymath}y''(t)=\sum_{n=2}^\infty n(n-1) a_n t^{n-2}.\end{displaymath}

Plugging this information into the differential equation we obtain:

\begin{displaymath}\sum_{n=2}^\infty n(n-1) a_n t^{n-2}-4\sum_{n=1}^\infty n a_{n}t^{n-1}+3\sum_{n=0}^\infty a_n t^n=0.\end{displaymath}

Our next goal is to simplify this expression such that only one summation sign "$\sum$" remains. The obstacle we encounter is that the powers of the three sums are different, tn-2 for the first sum tn-1 for the second sum and tn for the third. We make them the same by shifting the index of the first two sums to obtain


\begin{displaymath}\sum_{n=0}^\infty (n+2)(n+1) a_{n+2} t^{n}-4\sum_{n=0}^\infty (n+1)a_{n+1}t^n+3\sum_{n=0}^\infty a_n t^n=0.\end{displaymath}

Now we can combine the sums as follows:

\begin{displaymath}\sum_{n=0}^\infty \left( \phantom{\int}(n+2)(n+1) a_{n+2} t^{n}-4 (n+1) a_{n+1}t^n+ 3 a_n t^n\phantom{\int}\right)=0,\end{displaymath}

and factor out tn:

\begin{displaymath}\sum_{n=0}^\infty \left( \phantom{\int}(n+2)(n+1) a_{n+2} -4 (n+1) a_{n+1}+ 3 a_n \phantom{\int}\right)t^n=0.\end{displaymath}

Since the power series on the left is identically equal to zero, all of its coefficients are equal to zero:

\begin{displaymath}(n+2)(n+1) a_{n+2} -4 (n+1) a_{n+1}+ 3 a_n =0 \mbox{ for all } n=0,1,2,3,4,\ldots\end{displaymath}

Solving these equations for the "highest index" n+2, we can rewrite as

\begin{displaymath}a_{n+2}=\frac{4}{(n+2)} a_{n+1}-\frac{3}{(n+1)(n+2)}a_n \mbox{ for all } n=0,1,2,3,\ldots\end{displaymath}

These recurrence relations contain all the information about the coefficients we need.

Recall that y(0)=a0 and y'(0)=a1, so our initial conditions imply that a0=1 and a1=2.

Reading off the recurrence relations we can compute the next coefficients:

\begin{eqnarray*}a_2&=&\frac{5}{2}=\frac{5}{2!}\\
a_3&=&\frac{14}{6}=\frac{14}{...
...5!}\\
a_6&=&\frac{365}{720}=\frac{365}{6!}\mbox{ and so forth.}
\end{eqnarray*}


Can you see a pattern evolving for the numerators? Going from an to an+1 we multiply by 3 and subtract 1. With mostly patience, experience and some magic, we can see that the nth numerator is of the form

\begin{displaymath}\frac{3^n+1}{2}.\end{displaymath}

This implies that

\begin{displaymath}a_n=\frac{3^n+1}{2\cdot n!}\mbox{ for all } n=0,1,2,3,\ldots\end{displaymath}

This implies that our solution has the power series:

\begin{displaymath}y(t)=\sum_{n=0}^\infty \frac{3^n+1}{2 \cdot n!} t^n.\end{displaymath}

We can rewrite this to retrieve the solution in more familiar form:

\begin{eqnarray*}y(t)&=&\sum_{n=0}^\infty \frac{3^n+1}{2 \cdot n!} t^n\\
&=&\su...
...}^\infty \frac{t^n}{n!}\\
&=&\frac{1}{2}e^{3t}+\frac{1}{2}e^{t}
\end{eqnarray*}


Isn't Math fun?

[Back] [Next]
[Algebra] [Trigonometry] [Complex Variables]
[Calculus] [Differential Equations] [Matrix Algebra]

S.O.S MATHematics home page

1998-07-02

Copyright © 1999-2004 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA