Tutorials › Linear Algebra › Proof: Distinct Eigenvalues Provide a Full Eigenbasis

Diagonalization · Tutorial 538 of 1000

Proof: Distinct Eigenvalues Provide a Full Eigenbasis

See why distinct eigenvalues guarantee a full eigenbasis, and learn how to build and verify the resulting diagonalization.

Intermediate 10 min read

What You'll Learn

  • Prove that eigenvectors for distinct eigenvalues are linearly independent.
  • Explain why \(n\) independent vectors in \(\mathbb{R}^n\) form a basis.
  • Construct a diagonalization from eigenvalues and corresponding eigenvectors.
  • Check a proposed diagonalization by matching the order of the columns and diagonal entries.
  • Distinguish a sufficient condition for diagonalizability from a necessary one.

From Distinct Eigenvalues to a Basis

Diagonalization is possible when a matrix has enough independent eigenvectors to form a basis. A repeated eigenvalue can have an eigenspace with too few independent vectors, so merely counting eigenvalues with repetition is not enough. Distinct eigenvalues, however, force independence: eigenvectors chosen for different eigenvalues cannot combine to give a nontrivial dependence relation. This fact gives a useful guarantee. If an \(n\times n\) real matrix has \(n\) distinct real eigenvalues, choosing one eigenvector for each eigenvalue produces a basis of \(\mathbb{R}^n\), and that basis gives a diagonalization.

Throughout, matrices and vectors are over \(\mathbb{R}\). For an \(n\times n\) matrix \(\mathbf{A}\), a real number \(\lambda\) is an eigenvalue if there is a vector \(\mathbf{v}\ne\mathbf{0}\) such that \(\mathbf{A}\mathbf{v}=\lambda\mathbf{v}\). Such a vector is an eigenvector for \(\lambda\). The eigenspace \(E_{\lambda}\) consists of \(\mathbf{0}\) together with all eigenvectors for \(\lambda\); equivalently, \(E_{\lambda}=\operatorname{Nul}(\mathbf{A}-\lambda\mathbf{I}_n)\).

Definition: A real \(n\times n\) matrix \(\mathbf{A}\) is diagonalizable if there is an invertible matrix \(\mathbf{P}\) and a diagonal matrix \(\mathbf{D}\) such that \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\). The columns of \(\mathbf{P}\) are an ordered basis of eigenvectors of \(\mathbf{A}\), and the corresponding eigenvalues, in the same order, are the diagonal entries of \(\mathbf{D}\).

The order condition in the definition matters. If the \(j\)th column of \(\mathbf{P}\) is an eigenvector for \(\lambda_j\), then the \(j\)th diagonal entry of \(\mathbf{D}\) must be \(\lambda_j\). The identity \(\mathbf{A}\mathbf{P}=\mathbf{P}\mathbf{D}\) expresses this column by column: each column of \(\mathbf{P}\) is multiplied by its own eigenvalue.

Why Distinct Eigenvalues Force Independence

The central step is a statement about any finite number of eigenvectors, not just \(n\) of them. It applies to vectors chosen from distinct eigenspaces, so it does not assume that each eigenspace is one-dimensional.

Theorem: Let \(\mathbf{A}\) be a real matrix. If \(\lambda_1,\dots,\lambda_m\) are distinct eigenvalues of \(\mathbf{A}\), and \(\mathbf{v}_i\) is a nonzero eigenvector for \(\lambda_i\) for each \(i\), then the list \(\mathbf{v}_1,\dots,\mathbf{v}_m\) is linearly independent.

Proof. We use induction on \(m\). When \(m=1\), the list consists of the nonzero vector \(\mathbf{v}_1\), so its only linear combination equal to \(\mathbf{0}\) is \(c_1\mathbf{v}_1=\mathbf{0}\) with \(c_1=0\). Now suppose \(m>1\), and suppose the result holds for lists of \(m-1\) eigenvectors belonging to distinct eigenvalues. Assume that \(c_1\mathbf{v}_1+\cdots+c_m\mathbf{v}_m=\mathbf{0}\). Apply the matrix \(\mathbf{A}-\lambda_m\mathbf{I}\) to both sides. Since \(\mathbf{A}\mathbf{v}_i=\lambda_i\mathbf{v}_i\), the result is \(\sum_{i=1}^{m-1}c_i(\lambda_i-\lambda_m)\mathbf{v}_i=\mathbf{0}\); the term involving \(\mathbf{v}_m\) is zero. The first \(m-1\) vectors belong to distinct eigenvalues, so the induction hypothesis says they are independent. Therefore \(c_i(\lambda_i-\lambda_m)=0\) for every \(i<m\). Since \(\lambda_i\ne\lambda_m\), each \(c_i=0\) for \(i<m\). The original relation now reduces to \(c_m\mathbf{v}_m=\mathbf{0}\). Because \(\mathbf{v}_m\ne\mathbf{0}\), \(c_m=0\). All coefficients vanish, which proves independence. \(\square\)

The argument works because applying \(\mathbf{A}-\lambda_m\mathbf{I}\) removes the last eigenvector from the relation while multiplying each earlier eigenvector by a nonzero scalar. Distinctness is essential at exactly that step: if \(\lambda_i=\lambda_m\), then \(\lambda_i-\lambda_m=0\), and the argument gives no information about \(c_i\).

Why \(n\) Independent Vectors Give a Diagonalization

For a matrix with \(n\) distinct real eigenvalues, choose one eigenvector for each eigenvalue. The theorem proves that the resulting list of \(n\) vectors is independent. To connect this conclusion to diagonalization, we use the fact that \(n\) independent vectors in \(\mathbb{R}^n\) form a basis. Here is the matrix reason. Put those vectors into the columns of a square matrix \(\mathbf{P}\). Independence means \(\mathbf{P}\mathbf{x}=\mathbf{0}\) has only the zero solution. Thus its reduced row echelon form has a pivot in every column. Since there are \(n\) columns and \(n\) rows, it is \(\mathbf{I}_n\). Row operations are reversible, so applying them to any right-hand side shows that \(\mathbf{P}\mathbf{x}=\mathbf{b}\) is solvable for every \(\mathbf{b}\in\mathbb{R}^n\). Its columns therefore span \(\mathbb{R}^n\), as well as being independent; together, these properties mean they are a basis.

Theorem: If a real \(n\times n\) matrix \(\mathbf{A}\) has \(n\) distinct real eigenvalues, then \(\mathbf{A}\) is diagonalizable over \(\mathbb{R}\).

Proof. List the distinct eigenvalues as \(\lambda_1,\dots,\lambda_n\), and choose a nonzero eigenvector \(\mathbf{v}_i\) for each \(\lambda_i\). By the preceding theorem, these \(n\) vectors are independent. By the square-matrix basis argument above, they form a basis of \(\mathbb{R}^n\). Let \(\mathbf{P}\) be the matrix whose columns, in order, are \(\mathbf{v}_1,\dots,\mathbf{v}_n\), and let \(\mathbf{D}\) be the diagonal matrix with entries \(\lambda_1,\dots,\lambda_n\) in that order. The basis property makes \(\mathbf{P}\) invertible. For every column \(i\), the eigenvector equation gives \(\mathbf{A}\mathbf{v}_i=\lambda_i\mathbf{v}_i\), so the columns of \(\mathbf{A}\mathbf{P}\) are exactly the columns of \(\mathbf{P}\mathbf{D}\). Hence \(\mathbf{A}\mathbf{P}=\mathbf{P}\mathbf{D}\). Multiplying on the right by \(\mathbf{P}^{-1}\) gives \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\), as required. \(\square\)

Worked Constructions

Worked Example: A Two-by-Two Matrix

Diagonalize \(\mathbf{A}=\begin{bmatrix}2&0\\1&4\end{bmatrix}\) using its two distinct eigenvalues.

For \(\lambda=2\), solve \((\mathbf{A}-2\mathbf{I}_2)\mathbf{x}=\mathbf{0}\):

$$ \begin{bmatrix}0&0\\1&2\end{bmatrix} \begin{bmatrix}x\\y\end{bmatrix} =\begin{bmatrix}0\\0\end{bmatrix} \quad\Longrightarrow\quad x+2y=0. $$

Choose \(y=1\), which gives \(x=-2\), so \(\mathbf{v}_1=\begin{bmatrix}-2\\1\end{bmatrix}\). For \(\lambda=4\), solve:

$$ \begin{bmatrix}-2&0\\1&0\end{bmatrix} \begin{bmatrix}x\\y\end{bmatrix} =\begin{bmatrix}0\\0\end{bmatrix} \quad\Longrightarrow\quad x=0. $$

Choose \(y=1\), giving \(\mathbf{v}_2=\begin{bmatrix}0\\1\end{bmatrix}\). The eigenvector equations check directly: \(\mathbf{A}\mathbf{v}_1=\begin{bmatrix}-4\\2\end{bmatrix}=2\mathbf{v}_1\), and \(\mathbf{A}\mathbf{v}_2=\begin{bmatrix}0\\4\end{bmatrix}=4\mathbf{v}_2\). Form the eigenvector matrix and diagonal matrix in matching order:

$$ \mathbf{P}=\begin{bmatrix}-2&0\\1&1\end{bmatrix}, \qquad \mathbf{D}=\begin{bmatrix}2&0\\0&4\end{bmatrix}, \qquad \mathbf{P}^{-1}=\begin{bmatrix}-\tfrac12&0\\\tfrac12&1\end{bmatrix}. $$

Indeed, \(\mathbf{P}\mathbf{P}^{-1}=\begin{bmatrix}1&0\\0&1\end{bmatrix}\). Also, multiplying columns gives

$$ \mathbf{A}\mathbf{P} =\begin{bmatrix}-4&0\\2&4\end{bmatrix} =\mathbf{P}\mathbf{D}. $$

Since \(\mathbf{P}\) is invertible, this verifies \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\).

Worked Example: Three Distinct Eigenvalues

Diagonalize the upper triangular matrix \(\mathbf{A}=\begin{bmatrix}1&1&0\\0&2&1\\0&0&3\end{bmatrix}\).

For a triangular matrix, the determinant of \(\mathbf{A}-\lambda\mathbf{I}_3\) is the product of its diagonal entries, so its characteristic equation is \((1-\lambda)(2-\lambda)(3-\lambda)=0\). The eigenvalues are \(1,2,3\), all distinct. For \(\lambda=1\), the equations from \(\mathbf{A}-\mathbf{I}_3\) give \(y=0\) and then \(z=0\); choose \(\mathbf{v}_1=\begin{bmatrix}1\\0\\0\end{bmatrix}\). For \(\lambda=2\), the equations give \(z=0\) and \(y=x\); choose \(\mathbf{v}_2=\begin{bmatrix}1\\1\\0\end{bmatrix}\). For \(\lambda=3\), the equations give \(y=2x\) and \(z=y\); choose \(\mathbf{v}_3=\begin{bmatrix}1\\2\\2\end{bmatrix}\).

Check each eigenvector by multiplication: \(\mathbf{A}\mathbf{v}_1=\begin{bmatrix}1\\0\\0\end{bmatrix}=\mathbf{v}_1\), \(\mathbf{A}\mathbf{v}_2=\begin{bmatrix}2\\2\\0\end{bmatrix}=2\mathbf{v}_2\), and \(\mathbf{A}\mathbf{v}_3=\begin{bmatrix}3\\6\\6\end{bmatrix}=3\mathbf{v}_3\). Put these vectors into the columns of \(\mathbf{P}\):

$$ \mathbf{P}=\begin{bmatrix}1&1&1\\0&1&2\\0&0&2\end{bmatrix}, \qquad \mathbf{D}=\begin{bmatrix}1&0&0\\0&2&0\\0&0&3\end{bmatrix}. $$

An inverse is \(\mathbf{P}^{-1}=\begin{bmatrix}1&-1&\tfrac12\\0&1&-1\\0&0&\tfrac12\end{bmatrix}\). Multiplication gives \(\mathbf{P}\mathbf{P}^{-1}=\mathbf{I}_3\). The eigenvector checks also give the required matrix check, column by column:

$$ \mathbf{A}\mathbf{P} =\begin{bmatrix}1&2&3\\0&2&6\\0&0&6\end{bmatrix} =\mathbf{P}\mathbf{D}. $$

Thus \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\). The theorem explains in advance why the three selected eigenvectors must be independent; the multiplication verifies that the particular matrices implement the diagonalization.

Worked Example: A Symmetric Matrix With Three Eigenvalues

Consider \(\mathbf{B}=\begin{bmatrix}2&1&0\\1&2&0\\0&0&5\end{bmatrix}\). Its characteristic equation factors as \(((2-\lambda)^2-1)(5-\lambda)=0=(1-\lambda)(3-\lambda)(5-\lambda)=0\), so the distinct eigenvalues are \(1,3,5\). For \(\lambda=1\), the first two coordinates satisfy \(x+y=0\), and the third is zero; take \(\mathbf{u}_1=\begin{bmatrix}1\\-1\\0\end{bmatrix}\). For \(\lambda=3\), they satisfy \(y=x\), with third coordinate zero; take \(\mathbf{u}_2=\begin{bmatrix}1\\1\\0\end{bmatrix}\). For \(\lambda=5\), the first two coordinates vanish; take \(\mathbf{u}_3=\begin{bmatrix}0\\0\\1\end{bmatrix}\).

Direct checks give \(\mathbf{B}\mathbf{u}_1=\begin{bmatrix}1\\-1\\0\end{bmatrix}=\mathbf{u}_1\), \(\mathbf{B}\mathbf{u}_2=\begin{bmatrix}3\\3\\0\end{bmatrix}=3\mathbf{u}_2\), and \(\mathbf{B}\mathbf{u}_3=\begin{bmatrix}0\\0\\5\end{bmatrix}=5\mathbf{u}_3\). Therefore choose

$$ \mathbf{Q}=\begin{bmatrix}1&1&0\\-1&1&0\\0&0&1\end{bmatrix}, \qquad \mathbf{D}=\begin{bmatrix}1&0&0\\0&3&0\\0&0&5\end{bmatrix}, \qquad \mathbf{Q}^{-1}=\begin{bmatrix}\tfrac12&-\tfrac12&0\\\tfrac12&\tfrac12&0\\0&0&1\end{bmatrix}. $$

Multiplying gives \(\mathbf{Q}\mathbf{Q}^{-1}=\mathbf{I}_3\), and the eigenvector checks give \(\mathbf{B}\mathbf{Q}=\begin{bmatrix}1&3&0\\-1&3&0\\0&0&5\end{bmatrix}=\mathbf{Q}\mathbf{D}\). Hence \(\mathbf{B}=\mathbf{Q}\mathbf{D}\mathbf{Q}^{-1}\).

Common Mistake: Pairing the Wrong Eigenvalue With a Column

A common error is to find the right eigenvectors but place the eigenvalues in a different order on the diagonal. For the last example, the first column of \(\mathbf{Q}\) is an eigenvector for \(1\), not \(3\). If we incorrectly use \(\mathbf{D}_{\mathrm{wrong}}=\begin{bmatrix}3&0&0\\0&1&0\\0&0&5\end{bmatrix}\), then the first column of \(\mathbf{Q}\mathbf{D}_{\mathrm{wrong}}\) is \(\begin{bmatrix}3\\-3\\0\end{bmatrix}\). But the first column of \(\mathbf{B}\mathbf{Q}\) is \(\mathbf{B}\mathbf{u}_1=\begin{bmatrix}1\\-1\\0\end{bmatrix}\). Thus \(\mathbf{B}\mathbf{Q}\ne\mathbf{Q}\mathbf{D}_{\mathrm{wrong}}\), and the claimed diagonalization fails. The correction is to keep each eigenvalue beside its corresponding eigenvector: the order \(\mathbf{u}_1,\mathbf{u}_2,\mathbf{u}_3\) requires diagonal entries \(1,3,5\).

The condition of \(n\) distinct real eigenvalues is sufficient, not necessary, for real diagonalizability. A repeated eigenvalue does not itself prevent diagonalization; what matters in general is whether there are enough independent eigenvectors. The present result is valuable because distinct eigenvalues settle that independence question immediately: selecting one nonzero eigenvector for each of the \(n\) eigenvalues gives the full eigenbasis without needing to compare dimensions of eigenspaces.

Check Your Understanding

Use the independence proof and the column-by-column check to justify your conclusions.

  1. Why must the coefficient \(\lambda_i-\lambda_m\) in the induction proof be nonzero?
  2. For a real \(4\times4\) matrix with four distinct real eigenvalues, how many eigenvectors are needed to form the matrix \(\mathbf{P}\)?
  3. Suppose the columns of \(\mathbf{P}\) are eigenvectors for \(2,5,1\), in that order. What must the diagonal entries of \(\mathbf{D}\) be, in order?
  4. Explain why independence of \(n\) vectors in \(\mathbb{R}^n\) makes the eigenvector matrix invertible.
  5. Does the theorem say that a matrix with a repeated eigenvalue cannot be diagonalizable? Explain what the theorem does and does not guarantee.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon