Fibonacci sequence is defined by $\phi_{n+2} = \phi_n+\phi_{n+1}$ with $\phi_0 =0$ and $\phi_1 = 1$. I saw a proof of explicit form of $\phi_n$ that uses matrices and diagonalisation : $$\begin{bmatrix}\phi_{n+2}\\\phi_{n+1}\end{bmatrix} = A\begin{bmatrix}\phi_{n+1}\\\phi_{n}\end{bmatrix} = A^n\begin{bmatrix}1\\0\end{bmatrix}$$ Then we find $A$ from first equality and from second equality we Binet's formula.
I wonder if this technique can be used to solve other recurrence relations like 1, 2 and 3. I tried this method for 2, but I got a non-diagonalisable matrix; I did the following :
$$\begin{bmatrix}F(n+2)\\F(n+1)\\F(n) \end{bmatrix} = A\begin{bmatrix}F(n+1)\\F(n)\\1 \end{bmatrix} = A^n\begin{bmatrix}2\\4\\1 \end{bmatrix}$$
I got $$A = \begin{bmatrix}4&-3&+16\\1&0&0\\0&1&0\end{bmatrix}$$ which is not diagonalisable according to Symbolab.
Questions :
Is this method applicable to other recurrence than just Fibonacci sequence ? Is there a special name to these recurrence relations ?