Example 7.2.1.
We start with a very simple example
\begin{equation}
y'' - y = 0 .
\end{equation}
Let us try a power series solution near \(x_0 = 0\text{,}\) which is an ordinary point. Every point is an ordinary point in fact, as the equation is a constant-coefficient one. We already know we should obtain exponentials or the hyperbolic sine and cosine, but let us pretend we do not know this fact.
We try
\begin{equation}
y = \sum_{k=0}^\infty a_k x^k .
\end{equation}
If we differentiate, the \(k=0\) term is a constant and hence disappears. We get
\begin{equation}
y' = \sum_{k=1}^\infty k a_k x^{k-1} .
\end{equation}
We differentiate yet again to obtain (now the \(k=1\) term disappears)
\begin{equation}
y'' = \sum_{k=2}^\infty k(k-1) a_k x^{k-2} .
\end{equation}
We need to subtract \(y\) from \(y''\text{,}\) so we reindex the series for \(y''\) (replace \(k\) with \(k+2\)):
\begin{equation}
y'' = \sum_{k=0}^\infty (k+2)\,(k+1) \, a_{k+2} x^k .
\end{equation}
Now we plug \(y\) and \(y''\) into the differential equation
\begin{equation}
\begin{split}
0 = y''-y & =
\Biggl( \sum_{k=0}^\infty (k+2)\,(k+1) \, a_{k+2} x^k \Biggr)
-
\Biggl( \sum_{k=0}^\infty a_k x^k \Biggr)
\\
& =
\sum_{k=0}^\infty \,\Bigl( (k+2)\,(k+1) \, a_{k+2} x^k
-
a_k x^k \Bigr)
\\
& =
\sum_{k=0}^\infty \,\bigl( (k+2)\,(k+1) \,a_{k+2} - a_k \bigr) \, x^k .
\end{split}
\end{equation}
As \(y'' - y\) is supposed to be equal to 0, we know that the coefficients of the resulting series must be equal to 0. Therefore, for every \(k=0,1,2,3,\ldots\text{,}\) we have
\begin{equation}
(k+2)\,(k+1) \,a_{k+2} - a_k = 0 ,
\qquad
\text{or}
\qquad
a_{k+2} = \frac{a_k}{(k+2)(k+1)} .
\end{equation}
The equation above is called a recurrence relation for the coefficients of the power series. It does not matter what \(a_0\) or \(a_1\) are. They can be arbitrary. But once we pick \(a_0\) and \(a_1\text{,}\) all other coefficients are determined by the recurrence relation.
Let us see what the coefficients must be. First, \(a_0\) and \(a_1\) are arbitrary. Then,
\begin{equation}
a_2 = \frac{a_0}{2}, \quad
a_3 = \frac{a_1}{(3)(2)}, \quad
a_4 = \frac{a_2}{(4)(3)} = \frac{a_0}{(4)(3)(2)}, \quad
a_5 = \frac{a_3}{(5)(4)} = \frac{a_1}{(5)(4)(3)(2)}, \quad \ldots
\end{equation}
For even \(k\text{,}\) that is, \(k=2n\text{,}\) we have
\begin{equation}
a_k = a_{2n} = \frac{a_0}{(2n)!} .
\end{equation}
For odd \(k\text{,}\) that is, \(k=2n+1\text{,}\) we have
\begin{equation}
a_k = a_{2n+1} = \frac{a_1}{(2n+1)!} .
\end{equation}
We write down the series for the solution
\begin{equation}
y =
\sum_{k=0}^\infty
a_k x^k
=
\sum_{n=0}^\infty
\left(
\frac{a_0}{(2n)!} \,x^{2n}
+
\frac{a_1}{(2n+1)!} \,x^{2n+1}
\right)
=
a_0
\sum_{n=0}^\infty
\frac{1}{(2n)!} \,x^{2n}
+
a_1
\sum_{n=0}^\infty
\frac{1}{(2n+1)!} \,x^{2n+1} .
\end{equation}
We recognize the two series as the hyperbolic sine and cosine. Therefore,
\begin{equation}
y =
a_0 \cosh x + a_1 \sinh x .
\end{equation}

