Consider a linear transformation given by the matrix \begin{align*} A = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 2 & 5 & 2 & 1 \\ -1 & 1 & 0 & 3 \end{bmatrix} \end{align*} Find a basis for $R^4$ with respect to which the matrix representation for the linear transformation above is diagonal.
Why the basis is the linear independent eigenvectors of matrix $A$? How does it come?
It comes from the fact that, for an eigenvector $v$, we have $Av=\lambda v$ for the corresponding eigenvalue value $\lambda$.
Let $B$ be the matrix of eigenvectors. Then $B^{-1}AB=D$ is equivalent to $AB=BD$. Now use $Av=\lambda v$ to see that $D$ will consist precisely of the eigenvalues on the diagonal. Both sides have $i$th column equal to $\lambda_iv_i$, where $\lambda_i$ is the $i$th eigenvalue and $v_i$ the $i$th eigenvector.