Diagonalization
A matrix is diagonalizable if it has linearly independent eigenvectors which occurs if the geometric multiplicity (dimension of the eigenspace) equals the algebraic multiplicity (root multiplicity in the characterstic polynomial) for every eigenvalue.
If matrix is diagonalizable then it can be written as
Where