Eigenvalues and eigenvectors · Definition
Diagonalization
Before you start you need to know
To diagonalize is to choose the basis in which a matrix acts as plain stretching along the axes, which makes its powers trivial to compute.
Definition
A square matrix \(A\) is diagonalizable if it is similar to a diagonal matrix \(D\), that is, if it can be written as an invertible matrix \(P\) times \(D\) times the inverse of \(P\).
Writing \(A=PDP^{-1}\) means the columns of \(P\) are eigenvectors of \(A\) and the diagonal entries of \(D\) are their eigenvalues, in the same order. In the basis of those vectors the transformation just multiplies each coordinate by a number. This is the change of basis of the previous topic put to work for eigenvalues.
Not every matrix is diagonalizable. The exact condition is that there exist \(n\) linearly independent eigenvectors, that is, that the dimensions of the eigenspaces add up to \(n\); equivalently, \(\dim E_\lambda\) equals the multiplicity of each root of the characteristic polynomial. If the \(n\) eigenvalues are distinct, this holds automatically. The matrix \(\begin{pmatrix}2&1\\0&2\end{pmatrix}\) fails: 2 is a double root but its eigenspace is a line. Neither is the \(90^\circ\) rotation over \(\mathbb{R}\), since it has no real eigenvalues.
The practical payoff is powers: \(A^k=PD^kP^{-1}\) and \(D^k\) is obtained by raising each diagonal entry to the power. For \(A=\begin{pmatrix}4&1\\2&3\end{pmatrix}\), with \(D=\operatorname{diag}(5,2)\), it is enough to compute \(5^k\) and \(2^k\). A common mistake is ordering the columns of \(P\) differently from the entries of \(D\); the order must match.
Think about it
Is every invertible matrix diagonalizable?
No. The matrix \(\begin{pmatrix}2&1\\0&2\end{pmatrix}\) is invertible (determinant 4) but not diagonalizable. Invertible concerns nonzero eigenvalues, not how many independent eigenvectors there are.
If \(A=PDP^{-1}\), what is the determinant of \(A\)?
The product of the diagonal entries of \(D\), because \(\det A=\det P\det D\det P^{-1}=\det D\).
Exercises 10
- Let \(\begin{pmatrix}4&1\\2&3\end{pmatrix}\) with eigenvalues 5 and 2. With \(D=\operatorname{diag}(5,2)\), which matrix \(P\) satisfies \(P^{-1}AP=D\)?
- A \(2\times 2\) matrix has eigenvalues 1 and 4. Is it diagonalizable?
- A \(4\times 4\) matrix is diagonalizable. How many linearly independent eigenvectors does it have?
- A diagonalizable matrix \(A=PDP^{-1}\) has \(D=\operatorname{diag}(2,-1)\). What is the diagonal matrix of \(A^3\) in the same basis?
- Let \(\begin{pmatrix}2&1\\0&2\end{pmatrix}\). Is it diagonalizable?
- A diagonalizable matrix has trace 7 and determinant 10. Which diagonal matrix is similar to it?
- With \(A=\begin{pmatrix}4&1\\2&3\end{pmatrix}\), \(A=PDP^{-1}\) and \(D=\operatorname{diag}(5,2)\), what is the diagonal matrix of \(A^5\)?
- Let \(\begin{pmatrix}1&1&0\\0&1&0\\0&0&2\end{pmatrix}\), with eigenvalues 1 (double) and 2. Is it diagonalizable?
- A \(3\times 3\) matrix has eigenvalues 2 (double) and 5 (simple). Which condition is equivalent to being diagonalizable?
- Is the \(90^\circ\) rotation, \(\begin{pmatrix}0&-1\\1&0\end{pmatrix}\), diagonalizable over \(\mathbb{R}\)?
References
- Gilbert Strang, Introduction to Linear Algebra, 6th edition, Wellesley-Cambridge Press, 2023. §6.2
- Sheldon Axler, Linear Algebra Done Right, 4th edition, Springer, 2024. §5.D
- David C. Lay, Steven R. Lay, Judi J. McDonald, Linear Algebra and Its Applications, 6th edition, Pearson, 2021. §5.3
- Stephen H. Friedberg, Arnold J. Insel, Lawrence E. Spence, Linear Algebra, 4th edition, Pearson / Prentice Hall, 2003. §5.2