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
![Displayed math](https://static.packt-cdn.com/products/9781837636754/graphics/media/file522.jpg)
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
![Displayed math](https://static.packt-cdn.com/products/9781837636754/graphics/media/file523.jpg)
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,
![Displayed math](https://static.packt-cdn.com/products/9781837636754/graphics/media/file524.jpg)
- If {b1, b2, …...