Eigenvalues and eigenvectors · Definition

Diagonalization

linear algebraeigenvalues

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\).

\[A=PDP^{-1}\]

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

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