Tutorials › Linear Algebra › Minimal Polynomials and Diagonalizability

Invariant Subspaces and Cayley-Hamilton · Tutorial 580 of 1000

Minimal Polynomials and Diagonalizability

Learn why a complex operator is diagonalizable exactly when its minimal polynomial splits into distinct linear factors, and how to apply the criterion.

Advanced 10 min read

What You'll Learn

  • Define diagonalizability and the minimal polynomial of a finite-dimensional complex operator
  • Prove that eigenvectors belonging to distinct eigenvalues are linearly independent
  • Prove both directions of the minimal-polynomial criterion for diagonalizability
  • Use polynomial evaluation to find and check minimal polynomials of concrete matrices
  • Distinguish repeated characteristic roots from repeated factors in the minimal polynomial

Why the Minimal Polynomial Detects Diagonalizability

Diagonalizing an operator means finding a basis in which its action has no interaction between different coordinates: each basis vector is simply scaled by an eigenvalue. The minimal polynomial records which polynomial identities the operator satisfies. The connection is that a diagonal basis allows an annihilating polynomial with one factor for each distinct eigenvalue, while a repeated factor in the minimal polynomial signals that no such basis exists.

Throughout this tutorial, \(V\) is a nonzero finite-dimensional vector space over \(\mathbb{C}\), and \(T:V\to V\) is linear. For a polynomial \(f(t)=a_0+a_1t+\cdots+a_mt^m\), its evaluation at \(T\) is \(f(T)=a_0\operatorname{id}_V+a_1T+\cdots+a_mT^m\). A polynomial \(f\) annihilates \(T\) if \(f(T)\) is the zero map. Existence of a nonzero annihilating polynomial follows from the Cayley–Hamilton theorem: the characteristic polynomial annihilates a matrix of \(T\).

Definition: The minimal polynomial \(m_T(t)\) is the monic polynomial of least degree that annihilates \(T\). An operator is diagonalizable over \(\mathbb{C}\) if \(V\) has a basis consisting of eigenvectors of \(T\). For a matrix \(\mathbf{A}\), these definitions apply to the operator \(\mathbf{x}\mapsto\mathbf{A}\mathbf{x}\).

A polynomial acts simply on an eigenvector. This observation gives a useful necessary condition on every annihilating polynomial.

Lemma: If \(\lambda\) is an eigenvalue of \(T\) and \(f(T)=\mathbf{0}\), then \(f(\lambda)=0\).

Proof. By the definition of eigenvalue, there is a vector \(\mathbf{v}\ne\mathbf{0}\) with \(T\mathbf{v}=\lambda\mathbf{v}\). Induction gives \(T^j\mathbf{v}=\lambda^j\mathbf{v}\) for each nonnegative integer \(j\). Therefore, if \(f(t)=\sum_{j=0}^m a_jt^j\), then \(f(T)\mathbf{v}=\sum_{j=0}^m a_j\lambda^j\mathbf{v}=f(\lambda)\mathbf{v}\). Since \(f(T)\) is the zero map, \(f(\lambda)\mathbf{v}=\mathbf{0}\). The vector \(\mathbf{v}\) is nonzero, so \(f(\lambda)=0\). \(\square\)

Distinct Eigenvalues Give Independent Directions

The proof of the criterion will use the fact that eigenvectors for different eigenvalues cannot cancel one another. The statement concerns vectors chosen from different eigenspaces; it does not say that any arbitrary collection of vectors from one eigenspace is independent.

Theorem: If \(\lambda_1,\dots,\lambda_k\) are distinct eigenvalues of \(T\), then any vectors \(\mathbf{v}_i\in E_{\lambda_i}\), for \(1\le i\le k\), satisfy: if \(\mathbf{v}_1+\cdots+\mathbf{v}_k=\mathbf{0}\), then every \(\mathbf{v}_i=\mathbf{0}\). Here \(E_{\lambda_i}=\{\mathbf{v}\in V:T\mathbf{v}=\lambda_i\mathbf{v}\}\) is the eigenspace.

Proof. We use induction on \(k\). For \(k=1\), the equation \(\mathbf{v}_1=\mathbf{0}\) already gives the result. Suppose the statement holds for \(k-1\) distinct eigenvalues and that \(\mathbf{v}_1+\cdots+\mathbf{v}_k=\mathbf{0}\). Apply \(T-\lambda_k\operatorname{id}_V\) to both sides. Since \(T\mathbf{v}_i=\lambda_i\mathbf{v}_i\), the resulting equation is \(\sum_{i=1}^{k-1}(\lambda_i-\lambda_k)\mathbf{v}_i=\mathbf{0}\); the term involving \(\mathbf{v}_k\) is zero. The first \(k-1\) vectors still belong to eigenspaces for distinct eigenvalues, so the induction hypothesis gives \((\lambda_i-\lambda_k)\mathbf{v}_i=\mathbf{0}\) for each \(i<k\). Distinctness gives \(\lambda_i-\lambda_k\ne0\), hence \(\mathbf{v}_i=\mathbf{0}\) for \(i<k\). The original sum then gives \(\mathbf{v}_k=\mathbf{0}\). \(\square\)

The Minimal-Polynomial Criterion

Theorem (Minimal-polynomial criterion for diagonalizability): Let \(T:V\to V\) be linear on a nonzero finite-dimensional complex vector space. Then \(T\) is diagonalizable over \(\mathbb{C}\) if and only if its minimal polynomial is a product of distinct linear factors: $$ m_T(t)=(t-\lambda_1)\cdots(t-\lambda_k) $$ for distinct \(\lambda_1,\dots,\lambda_k\in\mathbb{C}\).

Proof. First suppose \(T\) is diagonalizable. Choose a basis of eigenvectors, and list the distinct eigenvalues appearing in that basis as \(\lambda_1,\dots,\lambda_k\). Set \(q(t)=\prod_{i=1}^k(t-\lambda_i)\). On each basis vector \(\mathbf{v}\) with eigenvalue \(\lambda_i\), we have \(q(T)\mathbf{v}=q(\lambda_i)\mathbf{v}=\mathbf{0}\). A linear map that sends every vector of a basis to zero is the zero map, so \(q(T)=\mathbf{0}\). Now let \(f\) be any polynomial that annihilates \(T\). The lemma shows \(f(\lambda_i)=0\) for every \(i\). By the factor theorem, each \(t-\lambda_i\) divides \(f(t)\); because these factors have distinct roots, their product \(q(t)\) divides \(f(t)\). Thus no nonzero annihilating polynomial has degree less than \(k\), and the monic polynomial \(q\) is the minimal polynomial.

Conversely, suppose \(m_T(t)=p(t)=\prod_{i=1}^k(t-\lambda_i)\), with the \(\lambda_i\) distinct. For each \(i\), define the polynomial $$ e_i(t)=\frac{\prod_{j\ne i}(t-\lambda_j)}{\prod_{j\ne i}(\lambda_i-\lambda_j)}. $$ The denominator is nonzero because the roots are distinct. These polynomials satisfy \(e_i(\lambda_j)=1\) if \(i=j\) and \(e_i(\lambda_j)=0\) if \(i\ne j\). The polynomial \(\sum_{i=1}^k e_i(t)-1\) has degree at most \(k-1\) and vanishes at all \(k\) distinct values \(\lambda_1,\dots,\lambda_k\). A nonzero polynomial of degree at most \(k-1\) cannot have \(k\) distinct roots, so \(\sum_i e_i(t)=1\).

For any \(\mathbf{v}\in V\), this identity gives \(\mathbf{v}=\sum_i e_i(T)\mathbf{v}\). Also, $$ (T-\lambda_i\operatorname{id}_V)e_i(T) =\frac{p(T)}{\prod_{j\ne i}(\lambda_i-\lambda_j)} =\mathbf{0}, $$ because \(p(T)=m_T(T)=\mathbf{0}\). Hence each \(e_i(T)\mathbf{v}\) belongs to \(E_{\lambda_i}\), and the eigenspaces together span \(V\). To see that their sum is direct, suppose \(\sum_i\mathbf{w}_i=\mathbf{0}\) with \(\mathbf{w}_i\in E_{\lambda_i}\). Apply \(e_j(T)\) to the equation. Since \(e_j(T)\mathbf{w}_i=e_j(\lambda_i)\mathbf{w}_i\), the result is \(\mathbf{w}_j=\mathbf{0}\). This holds for each \(j\). Choose a basis of each eigenspace; their combined list spans \(V\) and is linearly independent by the direct-sum property. It is therefore an eigenvector basis, so \(T\) is diagonalizable. \(\square\)

Applying the Criterion

Worked Example: A Repeated Factor Obstructs Diagonalization

Consider \(\mathbf{A}=\begin{bmatrix}4&1\\0&4\end{bmatrix}\) over \(\mathbb{C}\). Find its minimal polynomial and decide whether it is diagonalizable.

Subtract \(4\mathbf{I}_2\) to obtain \(\mathbf{N}=\mathbf{A}-4\mathbf{I}_2=\begin{bmatrix}0&1\\0&0\end{bmatrix}\). Direct multiplication gives $$ \mathbf{N}^2= \begin{bmatrix}0&1\\0&0\end{bmatrix} \begin{bmatrix}0&1\\0&0\end{bmatrix} = \begin{bmatrix}0&0\\0&0\end{bmatrix}. $$ Thus \((\mathbf{A}-4\mathbf{I}_2)^2=\mathbf{O}\), so \((t-4)^2\) annihilates \(\mathbf{A}\). But \(\mathbf{A}-4\mathbf{I}_2=\mathbf{N}\ne\mathbf{O}\), so \(t-4\) does not annihilate it. Any monic linear annihilating polynomial would have to be \(t-4\): the vector \(\mathbf{e}_1\) is an eigenvector with eigenvalue \(4\), and the lemma forces an annihilating polynomial to vanish at \(4\). Therefore the minimal polynomial is \((t-4)^2\). It has a repeated factor, so the criterion says \(\mathbf{A}\) is not diagonalizable.

Check: the computed square is zero, but the first power is nonzero, confirming that the exponent \(2\) is necessary.

Worked Example: Distinct Factors for a Triangular Matrix

Let \(\mathbf{B}=\begin{bmatrix}2&1\\0&3\end{bmatrix}\). Determine its minimal polynomial and diagonalize it if possible.

Compute $$ \mathbf{B}^2= \begin{bmatrix}4&5\\0&9\end{bmatrix}, \qquad \mathbf{B}^2-5\mathbf{B}+6\mathbf{I}_2 = \begin{bmatrix}4&5\\0&9\end{bmatrix} - \begin{bmatrix}10&5\\0&15\end{bmatrix} + \begin{bmatrix}6&0\\0&6\end{bmatrix} =\mathbf{O}. $$ Thus \((t-2)(t-3)=t^2-5t+6\) annihilates \(\mathbf{B}\). The vectors \(\mathbf{e}_1=\begin{bmatrix}1\\0\end{bmatrix}\) and \(\begin{bmatrix}1\\1\end{bmatrix}\) are eigenvectors: multiplying gives \(\mathbf{B}\mathbf{e}_1=2\mathbf{e}_1\) and \(\mathbf{B}\begin{bmatrix}1\\1\end{bmatrix}=\begin{bmatrix}3\\3\end{bmatrix}\). The lemma forces every annihilating polynomial to vanish at both \(2\) and \(3\). Consequently its minimal polynomial is exactly \((t-2)(t-3)\), which has distinct factors. The criterion gives diagonalizability, and the eigenvectors above form a basis.

Check: with \(\mathbf{P}=\begin{bmatrix}1&1\\0&1\end{bmatrix}\), multiplication gives $$ \mathbf{B}\mathbf{P} =\begin{bmatrix}2&3\\0&3\end{bmatrix} =\mathbf{P}\begin{bmatrix}2&0\\0&3\end{bmatrix}. $$ The columns of \(\mathbf{P}\) are independent since \(\det\mathbf{P}=1\), so this verifies the diagonalization.

Worked Example: A Repeated Eigenvalue Can Still Be Diagonalizable

Consider \(\mathbf{C}=\begin{bmatrix}1&0&0\\0&1&1\\0&0&2\end{bmatrix}\). Its characteristic polynomial has a repeated root, but determine diagonalizability using the minimal polynomial.

We have $$ \mathbf{C}-\mathbf{I}_3= \begin{bmatrix}0&0&0\\0&0&1\\0&0&1\end{bmatrix}, \qquad \mathbf{C}-2\mathbf{I}_3= \begin{bmatrix}-1&0&0\\0&-1&1\\0&0&0\end{bmatrix}. $$ Their product is \(\mathbf{O}\): the first row is zero, and each nonzero row \((0,0,1)\) in the first factor multiplies the second factor to give its third row, \((0,0,0)\). Thus \((\mathbf{C}-\mathbf{I}_3)(\mathbf{C}-2\mathbf{I}_3)=\mathbf{O}\). The vectors \(\mathbf{e}_1,\mathbf{e}_2\) have eigenvalue \(1\), while \(\begin{bmatrix}0\\1\\1\end{bmatrix}\) has eigenvalue \(2\). Since both eigenvalues occur, the lemma shows that the minimal polynomial must have both factors; hence it is \((t-1)(t-2)\). The criterion gives diagonalizability. In fact, with $$ \mathbf{P}=\begin{bmatrix}1&0&0\\0&1&1\\0&0&1\end{bmatrix}, \qquad \mathbf{C}\mathbf{P} =\begin{bmatrix}1&0&0\\0&1&2\\0&0&2\end{bmatrix} =\mathbf{P}\begin{bmatrix}1&0&0\\0&1&0\\0&0&2\end{bmatrix}. $$ The columns of \(\mathbf{P}\) are independent, since its determinant is \(1\). The displayed multiplication verifies the diagonalization.

Check: the characteristic polynomial is \((t-1)^2(t-2)\), whereas the minimal polynomial is \((t-1)(t-2)\). The repeated characteristic root does not prevent diagonalization.

Common Pitfall: Confusing the Two Polynomials

A tempting but incorrect calculation is to infer the minimal polynomial from the characteristic polynomial alone. For \(\mathbf{A}=\begin{bmatrix}4&1\\0&4\end{bmatrix}\), the characteristic polynomial is \(\det(\mathbf{A}-t\mathbf{I}_2)=(4-t)^2\). One might wrongly conclude that the minimal polynomial is \(t-4\), because \(4\) is the only eigenvalue. The correction is to test polynomial evaluation: \(\mathbf{A}-4\mathbf{I}_2=\begin{bmatrix}0&1\\0&0\end{bmatrix}\ne\mathbf{O}\), while its square is \(\mathbf{O}\). So the minimal polynomial is \((t-4)^2\), and the matrix is not diagonalizable.

The reverse mistake is to treat a repeated root of the characteristic polynomial as proof of non-diagonalizability. In the third example, the characteristic polynomial has the repeated root \(1\), but the minimal polynomial has no repeated factor and the matrix is diagonalizable. The criterion concerns the minimal polynomial: its factors describe the shortest polynomial identity satisfied by the operator.

The field matters as well. The theorem above is for complex vector spaces and complex polynomials. A real matrix may have a minimal polynomial that does not split into real linear factors; that prevents diagonalization over \(\mathbb{R}\), but does not rule out diagonalization after allowing complex scalars. Always identify the scalar field before applying the criterion.

Check Your Understanding

Use polynomial evaluation and the minimal-polynomial criterion to justify each answer.

  1. For \(\mathbf{D}=\begin{bmatrix}5&0\\0&5\end{bmatrix}\), find the minimal polynomial and state whether \(\mathbf{D}\) is diagonalizable.
  2. For \(\mathbf{E}=\begin{bmatrix}0&1\\0&0\end{bmatrix}\), find the minimal polynomial and decide diagonalizability.
  3. Explain why an annihilating polynomial must vanish at every eigenvalue.
  4. If \(m_T(t)=(t+1)(t-2)(t-5)\), what does the criterion imply about \(T\) over \(\mathbb{C}\)?
  5. In the third worked example, why does the repeated root of the characteristic polynomial not contradict the criterion?

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