To start off, I am not looking for the answers to this question, only a how-to. I would like to figure out the solutions myself, but I don't know where to start with this one. The form described was not covered in the lecture and I have not been able to find it by searching, so I am reaching out so that maybe someone can show me how to do this type of problem.
The question is as follows:
Find the solution to the following linear, homogeneous recurrence with constant coefficients: $a_{n}=-9a_{n-2}$ for $n\geq 2$ with initial conditions $a_{0}=-2, a_{1}=24$. The solution is of the form:
$$a_{n}=(\alpha +i\beta )(ir)^{n}+(\alpha -i\beta )(-ir)^{n}$$
for suitable real constants $\alpha, \beta, r$. Find these constants and enter their values:
$r=$
$\alpha=$
$\beta=$
The solution can also be written in piecewise form and purely in terms of real numbers:
$$a_{n}=\left\{\begin{matrix}
c_{1}r^{n}, &for\, n\, mod\, 4=0 \\
c_{2}r^{n}, &for\, n\, mod\, 4=1 \\
c_{3}r^{n}, &for\, n\, mod\, 4=2 \\
c_{4}r^{n}, &for\, n\, mod\, 4=3
\end{matrix}\right.$$
for suitable real constants $c_{1}, c_{2}, c_{3}, c_{4}$. Find these constants as well.
Thank you!
We use the method of characteristic polynomials, by looking for solutions of the type $a_n=c^n$. Substituting in the recurrence, we get $c^n=-9c^{n-2}$. Dividing through by $c^{n-2}$ we get $c^2+9=0$, which has the roots $c=3i$ and $c=-3i$. So, by general theory, the general solution of our recurrence is $$a_b=A(3i)^n+B(-3i)^n,\tag{1}$$ where $A$ and $B$ are arbitrary constants. We could have done this part more quickly by noting that the characteristic polynomial of the recurrence is $x^2+9$.
To find the constants $A$ and $B$ in our case, we use the initial value $a_0=-2$ and $a_1=24$. Substituting in (1), we find that $A+B=-2$ and $3iA-3iB=24$. The second equation simplifies to $A-B=-8i$, and now we can solve for $A$ and $B$, and find the $\alpha$ and $\beta$ mentioned in the problem statement.
The solution to a "real" problem we have obtained involves complex numbers, and one may consider that unattractive. To eliminate mention of $i$, note that $i^n=1$ if $n$ is divisible by $4$, and $i^n=i$ if $n$ has remainder $1$ on division by $4$, and $i^n=-1$ if $n$ has remainder $2$, and $i^n=-i$ if $i$ has remainder $3$.
For each of these cases, calculate. Let's do the case $n$ has remainder $1$ on division by $4$. Then $(\alpha+\beta i)(3i)^n=3^n(\alpha i-\beta )$, and $(\alpha-\beta i)(-3i)^n=3^n(-\alpha i-\beta)$. Adding, we obtain an $i$-free expression for $a_n$.
The other three cases are similar.