5.10 Eigenvectors and eigenvalues
Let’s review some of the features of diagonal matrices. Recall that a diagonal matrix has 0s everywhere except maybe on the main diagonal. A simple example for R3 is matrix$diagonal matrix$eigenvalue eigenvalue matrix$eigenvector eigenvector

Its effect on the standard basis vectors e1, e2, and e3 is to stretch by a factor of 3 along the first, leave the second alone, reflect across the xy-plane, and then stretch by a factor of 2 along the third.
A general diagonal matrix looks like

Of course, we might be dealing with a small matrix and not have quite so many zeros. Some of the dj might be zero.
For a diagonal matrix D as above,
- det(D) = d1 d2 ⋯ dn.
- tr (D) = d1 + d2 + ⋯ + dn.
- DT = D.
- D is invertible if and only if none of the dj are 0.
- If D is invertible,

- If {b1, b2, …...