Consider the second-order homogeneous relation \(S(k) - 7S(k - 1) + 12 S(k- 2) = 0\) together with the initial conditions \(S(0) = 4\) and \(S(1) = 4\text{.}\) From our discussion above, we can predict that the solution to this relation involves terms of the form \(b a^k\text{,}\) where \(b\) and \(a\) are nonzero constants that must be determined. If the solution were to equal this quantity exactly, then
\begin{equation*}
\quad \quad \quad \begin{array}{ccc}
S(k)=b a^k & & \\
S(k-1)=b a^{k-1} & \textrm{ } & \textrm{ } \\
S(k-2)=b a^{k-2} & & \\
\end{array}
\end{equation*}
Substitute these expressions into the recurrence relation to get
\begin{equation*}
b a^k-7 b a^{k-1}+12 b a^{k-2}=0
\end{equation*}
Each term on the left-hand side of this equation has a factor of \(b a^{k-2}\text{,}\) which is nonzero. Dividing through by this common factor yields
\begin{gather}
a^2 - 7a + 12 = (a - 3) (a - 4) = 0\tag{8.3.1}
\end{gather}
Therefore, the only possible values of
\(a\) are 3 and 4. Equation
(8.3.1) is called the characteristic equation of the recurrence relation. The fact is that our original recurrence relation is true for any sequence of the form
\(S(k) = b_1 3^k + b_24^k\text{,}\) where
\(b_1\) and
\(b_2\) are real numbers. This set of sequences is called the general solution of the recurrence relation. If we didnβt have initial conditions for
\(S\text{,}\) we would stop here. The initial conditions make it possible for us to find definite values for
\(b_1\) and
\(b_2\text{.}\)
\begin{equation*}
\left\{
\begin{array}{c}
S(0)=4 \\
S(1)=4 \\
\end{array}
\right\}\textrm{ }\Rightarrow \left\{
\begin{array}{c}
b_13^0+b_24^0=4 \\
b_13^1+b_24^1=4 \\
\end{array}
\right\}\textrm{ }\Rightarrow \left\{
\begin{array}{c}
b_1+b_2=4 \\
3b_1+4b_2=4 \\
\end{array}
\right\}\textrm{ }
\end{equation*}
The solution of this set of simultaneous equations is
\(b_1 = 12\) and
\(b_2 = -8\) and so the solution is
\(S(k) = 12 \cdot 3^k - 8 \cdot 4^k\text{.}\)