Let \(\mathbf{A} = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix}\text{.}\) We compute its eigendecomposition.
First compute the eigenvalues from
\begin{equation*}
\det(\mathbf{A} - \lambda \mathbf{I}) = 0
\end{equation*}
i.e.
\begin{equation*}
\begin{vmatrix} 4-\lambda & 1 \\ 2 & 3-\lambda \end{vmatrix} = (4-\lambda)(3-\lambda) - 2 = \lambda^2 - 7\lambda + 10 = 0
\end{equation*}
giving \(\lambda_1 = 5\) and \(\lambda_2 = 2\text{.}\)
For \(\lambda_1 = 5\text{,}\) solving \((\mathbf{A} - 5\mathbf{I})\mathbf{x} = 0\) yields eigenvector \(\mathbf{v}_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix}\text{.}\) For \(\lambda_2 = 2\text{,}\) solving \((\mathbf{A} - 2\mathbf{I})\mathbf{x} = 0\) yields eigenvector \(\mathbf{v}_2 = \begin{bmatrix} -1 \\ 2 \end{bmatrix}\text{.}\)
Form \(\mathbf{P} = [\mathbf{v}_1\ \mathbf{v}_2] = \begin{bmatrix} 1 & -1 \\ 1 & 2 \end{bmatrix}\) and \(\mathbf{D} = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}\text{.}\) Then \(\mathbf{A} = \mathbf{P}\mathbf{D}\mathbf{P}^{-1}\text{.}\)
Verification:
\begin{equation*}
\mathbf{P}\mathbf{D}\mathbf{P}^{-1} = \begin{bmatrix} 1 & -1 \\ 1 & 2 \end{bmatrix} \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix} \begin{bmatrix} 1 & -1 \\ 1 & 2 \end{bmatrix}^{-1} = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix}
\end{equation*}
Thus we have completed the eigendecomposition of \(\mathbf{A}\text{.}\)
