To diagonalize is to write with diagonal. The columns of are independent eigenvectors and the diagonal of holds their eigenvalues, in the same order.
| Step | On | |
|---|---|---|
| 1 | Find the eigenvalues. Solve , as in finding eigenvalues. | : |
| 2 | Find a basis of each eigenspace. Row reduce , as in finding eigenvectors. | : ; : |
| 3 | Count the eigenvectors. You need of them; eigenvectors for distinct eigenvalues are independent. Fewer than means is not diagonalizable: stop. | vectors for ✓ |
| 4 | Build and in matching order. Column of is the eigenvector for the -th diagonal entry of . | , |
| 5 | Find and check . Checking needs no inverse; you still need to write . | ; ✓ |