The eigenvalues of a block diagonal matrix are the eigenvalues of each block. The corresponding eigenvectors are the eigenvectors of each block padded with zeros. For example:
The eigenvalues of the matrix $$A = \begin{bmatrix}4 & 3 \\ 3 & 4 \end{bmatrix}$$ are $7$ and $1$, and the corresponding eigenvectors are respectively $$\begin{bmatrix}1/\sqrt{2}\\ 1/\sqrt{2} \end{bmatrix} \quad \text{and} \quad \begin{bmatrix}1/\sqrt{2}\\ -1/\sqrt{2} \end{bmatrix}.$$
The eigenvalues of the matrix $$B = \begin{bmatrix}2 & 1 & 0 \\ 1 & 2 & 1 \\ 0 & 1 & 2\end{bmatrix}$$ are $2+\sqrt{2}$, $2$, and $2-\sqrt{2}$ and the corresponding eigenvectors are respectively $$\begin{bmatrix}1/2 \\ -1/\sqrt{2} \\ 1/2\end{bmatrix}, \quad \begin{bmatrix}-1/\sqrt{2} \\ 0 \\ 1/\sqrt{2}\end{bmatrix}, \quad \text{and} \quad \begin{bmatrix}1/2 \\ 1/\sqrt{2} \\ 1/2\end{bmatrix}.$$
The eigenvalues of the matrix $$\begin{bmatrix}A & 0 \\ 0 & B \end{bmatrix} = \begin{bmatrix}4 & 3 & 0 & 0 & 0 \\ 3 & 4 & 0 & 0 & 0 \\ 0 & 0 & 2 & 1 & 0 \\ 0 & 0 & 1 & 2 & 1 \\ 0 & 0 & 0 & 1 & 2 \end{bmatrix}$$ are $7$, $1$, $2+\sqrt{2}$, $2$, and $2-\sqrt{2}$, and the corresponding eigenvectors are respectively $$\begin{bmatrix}1/\sqrt{2}\\ 1/\sqrt{2} \\ 0 \\ 0 \\ 0\end{bmatrix}, \quad \begin{bmatrix}1/\sqrt{2}\\ -1/\sqrt{2} \\ 0 \\ 0 \\ 0\end{bmatrix}, \quad \begin{bmatrix}0 \\ 0 \\ 1/2 \\ -1/\sqrt{2} \\ 1/2\end{bmatrix}, \quad \begin{bmatrix}0 \\ 0 \\ -1/\sqrt{2} \\ 0 \\ 1/\sqrt{2}\end{bmatrix}, \quad \text{and} \quad \begin{bmatrix}0 \\ 0 \\ 1/2 \\ 1/\sqrt{2} \\ 1/2\end{bmatrix}.$$
https://math.stackexchange.com/questions/1553853/recurrence-relation-for-the-determinant-of-a-tridiagonal-matrix
– Ryan Howe Dec 03 '20 at 04:37