I have a system of recurrence relations in the following form:
$$ \begin{pmatrix} f(n+1)\\ g(n+1)\\ \end{pmatrix} = \textbf{A} \begin{pmatrix} f(n)\\ g(n)\\ \end{pmatrix} +\vec{b} $$
which hold for all $n \in \{ 0,1,2,...,N\}.$ I also have the conditions: $f(0) = g(N+1) = 0.$ I've been trying to find a way to solve this but I'm really not sure how to proceed. Any help would be appreciated.
$$\begin{pmatrix} f(1)\\ g(1)\\ \end{pmatrix} = \textbf{A} \begin{pmatrix} 0\\ g(0)\\ \end{pmatrix} +\vec{b} $$ $$\begin{pmatrix} f(2)\\ g(2)\\ \end{pmatrix} = \textbf{A} \begin{pmatrix} f(1)\\ g(1)\\ \end{pmatrix} +\vec{b} = \textbf{A}(\textbf{A} \begin{pmatrix} 0\\ g(0)\\ \end{pmatrix} +\vec{b} )+\vec{b} = \textbf{A}^2\begin{pmatrix} 0\\ g(0)\\ \end{pmatrix} +\textbf{A}\vec{b}+\vec{b} $$ $$\vdots$$ $$\vdots$$
however $$\begin{pmatrix} f(N+1)\\ g(N+1)\\ \end{pmatrix} = \begin{pmatrix} f(N+1)\\ 0\\ \end{pmatrix} = \textbf{A}^{N+1} \begin{pmatrix} 0\\ g(0)\\ \end{pmatrix} +\sum_{k=0}^{N} A^{k}\vec{b} $$ You could use the last equation to get $g(0)$ as a function of $f(N+1)$.