Tutorials › Linear Algebra › Triangular Matrices And Their Eigenvalues

Eigenvalues and Eigenvectors · Tutorial 488 of 1000

Triangular Matrices And Their Eigenvalues

Learn why a triangular matrix’s diagonal entries give all its eigenvalues, and how repeated diagonal entries determine their multiplicities.

Intermediate 9 min read

What You'll Learn

  • Recognize upper and lower triangular matrices.
  • Prove the determinant formula for triangular matrices.
  • Find eigenvalues of triangular matrices from their diagonal entries.
  • Count repeated roots when diagonal entries coincide.
  • Distinguish the two common characteristic-polynomial sign conventions.
  • Avoid using the eigenvalue formula for matrices that are not triangular.

Why the Diagonal Determines the Eigenvalues

For a general matrix, finding eigenvalues can require computing a characteristic polynomial and then finding its roots. A triangular matrix has a useful simplification: its characteristic polynomial factors directly into terms involving its diagonal entries. This means its eigenvalues can be read off without expanding a determinant or solving a new polynomial equation.

Throughout, let \(\mathbb{F}\) be either \(\mathbb{R}\) or \(\mathbb{C}\), and let \(\mathbf{A}\in\mathbb{F}^{n\times n}\), where \(n\ge 1\). A matrix is upper triangular if its entries below the diagonal are zero, and lower triangular if its entries above the diagonal are zero. A matrix that is both is diagonal. Write its diagonal entries as \(a_{11},a_{22},\dots,a_{nn}\).

Definition: The characteristic polynomial, using the course convention, is \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I}_n)\). A scalar \(\lambda\in\mathbb{F}\) is an eigenvalue of \(\mathbf{A}\) if there is a vector \(\mathbf{v}\ne\mathbf{0}\) such that \(\mathbf{A}\mathbf{v}=\lambda\mathbf{v}\). The multiplicity of a root of a polynomial is the number of times its corresponding linear factor occurs.

The sign convention matters when writing the polynomial. Since \(p_{\mathbf{A}}(\lambda)\) is defined using \(\mathbf{A}-\lambda\mathbf{I}_n\), its factors for a triangular matrix are \(a_{ii}-\lambda\). Some books instead use \(\det(\lambda\mathbf{I}_n-\mathbf{A})\), which has factors \(\lambda-a_{ii}\). These polynomials differ by the constant factor \((-1)^n\), so they have the same roots with the same multiplicities.

The Determinant of a Triangular Matrix

We first justify the determinant calculation that makes the eigenvalue formula work. For an \(n\times n\) matrix \(\mathbf{B}=(b_{ij})\), the determinant can be written as a sum over permutations \(\sigma\) of \(\{1,\dots,n\}\): each term is a signed product \(b_{1,\sigma(1)}b_{2,\sigma(2)}\cdots b_{n,\sigma(n)}\). A term is zero if any entry in its product is zero.

Theorem: The determinant of an upper or lower triangular matrix is the product of its diagonal entries.

Proof. First suppose that \(\mathbf{B}\) is upper triangular, so \(b_{ij}=0\) whenever \(i>j\). For a term indexed by a permutation \(\sigma\) to be nonzero, every selected entry \(b_{i,\sigma(i)}\) must be nonzero. Upper triangularity therefore requires \(\sigma(i)\ge i\) for every \(i\). But \(\sum_{i=1}^{n}\sigma(i)=\sum_{i=1}^{n}i\), since \(\sigma\) is a permutation. The nonnegative integers \(\sigma(i)-i\) have sum zero, so each one is zero. Thus only the identity permutation can contribute a nonzero term, and that term is \(b_{11}b_{22}\cdots b_{nn}\). For a lower triangular matrix, a nonzero term requires \(\sigma(i)\le i\) for every \(i\). The nonnegative integers \(i-\sigma(i)\) also have sum zero, so again \(\sigma(i)=i\) for each \(i\). The determinant is therefore the diagonal product in either case. \(\square\)

Subtracting \(\lambda\) from each diagonal entry preserves triangularity: \(\mathbf{A}-\lambda\mathbf{I}_n\) has the same zero entries above or below the diagonal as \(\mathbf{A}\). Applying the determinant theorem gives the characteristic-polynomial formula.

Theorem (Characteristic polynomial of a triangular matrix): If \(\mathbf{A}\in\mathbb{F}^{n\times n}\) is upper or lower triangular, then \(p_{\mathbf{A}}(\lambda)=\prod_{i=1}^{n}(a_{ii}-\lambda)\). Equivalently, \(\det(\lambda\mathbf{I}_n-\mathbf{A})=\prod_{i=1}^{n}(\lambda-a_{ii})\).

Proof. The diagonal entries of \(\mathbf{A}-\lambda\mathbf{I}_n\) are \(a_{ii}-\lambda\), and that matrix is triangular. The determinant theorem gives \(\det(\mathbf{A}-\lambda\mathbf{I}_n)=\prod_{i=1}^{n}(a_{ii}-\lambda)\). For the alternate convention, \(\lambda\mathbf{I}_n-\mathbf{A}=-(\mathbf{A}-\lambda\mathbf{I}_n)\); its diagonal entries are \(\lambda-a_{ii}\), so the same determinant theorem gives the second formula directly. \(\square\)

Reading Off Eigenvalues and Their Multiplicities

The earlier material on the eigenvalue equation and singularity establishes that \(\lambda\) is an eigenvalue of \(\mathbf{A}\) exactly when \(\det(\mathbf{A}-\lambda\mathbf{I}_n)=0\). For a triangular matrix, the factorization now makes this test immediate: the product is zero exactly when at least one factor \(a_{ii}-\lambda\) is zero.

Corollary: The eigenvalues of a triangular matrix are precisely its diagonal entries. If a value occurs \(r\) times on the diagonal, it is a root of the characteristic polynomial with multiplicity \(r\).

Proof. By the characteristic-polynomial formula, \(p_{\mathbf{A}}(\lambda)=\prod_{i=1}^{n}(a_{ii}-\lambda)\). This product is zero if and only if at least one factor is zero, which happens if and only if \(\lambda=a_{ii}\) for some \(i\). By the eigenvalue-and-singularity criterion, these and only these values are eigenvalues. If a particular value \(\mu\) occurs \(r\) times among \(a_{11},\dots,a_{nn}\), then exactly \(r\) factors in the product equal \(\mu-\lambda\). The other factors do not vanish at \(\lambda=\mu\), so the root has multiplicity \(r\). \(\square\)

This conclusion concerns roots and their multiplicities in the characteristic polynomial. It does not say how many linearly independent eigenvectors there are for a repeated eigenvalue; the diagonal entries alone do not settle that question.

Worked Example: Distinct Diagonal Entries

Find the characteristic polynomial and eigenvalues of the upper triangular matrix \(\mathbf{A}=\begin{bmatrix}2&5&-1\\0&-1&4\\0&0&3\end{bmatrix}\).

Subtracting \(\lambda\mathbf{I}_3\) gives another upper triangular matrix:

$$ \mathbf{A}-\lambda\mathbf{I}_3= \begin{bmatrix} 2-\lambda&5&-1\\ 0&-1-\lambda&4\\ 0&0&3-\lambda \end{bmatrix}. $$

The determinant theorem applies because this matrix is upper triangular. Hence

$$ p_{\mathbf{A}}(\lambda) =(2-\lambda)(-1-\lambda)(3-\lambda). $$

The roots are \(\lambda=2\), \(\lambda=-1\), and \(\lambda=3\), each appearing once. Thus these are the eigenvalues, each with multiplicity one. The alternate convention gives \(\det(\lambda\mathbf{I}_3-\mathbf{A})=(\lambda-2)(\lambda+1)(\lambda-3)\), which differs from \(p_{\mathbf{A}}\) by a factor of \(-1\).

Check: At each listed value, one factor in \(p_{\mathbf{A}}(\lambda)\) is zero, so the determinant is zero and the eigenvalue criterion applies. At every other value, all three factors are nonzero, so their product is nonzero and there is no eigenvalue.

Worked Example: A Lower Triangular Matrix with a Repeated Entry

Find the characteristic polynomial and eigenvalues of \(\mathbf{B}=\begin{bmatrix}4&0&0\\2&4&0\\-1&3&0\end{bmatrix}\).

This matrix is lower triangular. Its diagonal entries are \(4,4,0\), and subtracting \(\lambda\mathbf{I}_3\) gives

$$ \mathbf{B}-\lambda\mathbf{I}_3= \begin{bmatrix} 4-\lambda&0&0\\ 2&4-\lambda&0\\ -1&3&-\lambda \end{bmatrix}. $$

Its determinant is the product of its diagonal entries:

$$ p_{\mathbf{B}}(\lambda)=(4-\lambda)^2(-\lambda). $$

Therefore \(4\) is an eigenvalue with multiplicity two, and \(0\) is an eigenvalue with multiplicity one. Expanding the polynomial provides a check on its sign and degree:

$$ (4-\lambda)^2(-\lambda) =(16-8\lambda+\lambda^2)(-\lambda) =-16\lambda+8\lambda^2-\lambda^3. $$

Check: Substituting \(\lambda=4\) into the factored polynomial gives \((4-4)^2(-4)=0\), and substituting \(\lambda=0\) gives \(4^2(0)=0\). The squared factor records exactly two occurrences of \(4\) on the diagonal.

Worked Example: A Parameter Changes the Multiplicity

For the real parameter \(t\), find the eigenvalues and their multiplicities for \(\mathbf{C}=\begin{bmatrix}t&2&0\\0&1&5\\0&0&t\end{bmatrix}\).

The matrix is upper triangular, so its diagonal entries \(t,1,t\) give the factors:

$$ p_{\mathbf{C}}(\lambda) =(t-\lambda)(1-\lambda)(t-\lambda) =(t-\lambda)^2(1-\lambda). $$

If \(t\ne1\), the eigenvalue \(t\) occurs twice on the diagonal and has multiplicity two; the eigenvalue \(1\) occurs once and has multiplicity one. If \(t=1\), all three diagonal entries equal \(1\), and the polynomial becomes

$$ p_{\mathbf{C}}(\lambda)=(1-\lambda)^3. $$

Thus \(1\) is the only eigenvalue in that case, with multiplicity three.

Check: For \(t=3\), the formula is \((3-\lambda)^2(1-\lambda)\), with roots \(3,3,1\). For \(t=1\), substituting into the original factorization gives \((1-\lambda)^2(1-\lambda)=(1-\lambda)^3\), matching the three diagonal entries.

Common Pitfall: Losing the Sign

With the course convention \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I}_n)\), writing every factor as \(\lambda-a_{ii}\) can give the wrong polynomial, even though it gives the right roots. For example, take the upper triangular matrix \(\mathbf{D}=\begin{bmatrix}1&2&0\\0&2&3\\0&0&4\end{bmatrix}\). A mistaken calculation would write \(p_{\mathbf{D}}(\lambda)=(\lambda-1)(\lambda-2)(\lambda-4)\). But the defined matrix \(\mathbf{D}-\lambda\mathbf{I}_3\) has diagonal entries \(1-\lambda,2-\lambda,4-\lambda\), so the correct calculation is

$$ p_{\mathbf{D}}(\lambda) =(1-\lambda)(2-\lambda)(4-\lambda) =-(\lambda-1)(\lambda-2)(\lambda-4). $$

The incorrect expression has the opposite sign because there are three factors. Both expressions vanish at \(1,2,4\), so the error does not change the eigenvalues; it does change the characteristic polynomial. A reliable check is to apply the definition first: write \(\mathbf{A}-\lambda\mathbf{I}_n\), read its diagonal entries, and only then multiply the factors.

Finally, the diagonal-entry rule requires a triangular matrix. For a matrix that is not triangular, its diagonal entries alone do not in general determine its eigenvalues. The rule works here because triangularity makes the determinant of \(\mathbf{A}-\lambda\mathbf{I}_n\) a product of its diagonal entries, not because every matrix has that determinant formula.

Check Your Understanding

Use the course convention \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I}_n)\) in each question.

  1. Find the characteristic polynomial and eigenvalues of \(\begin{bmatrix}3&-2\\0&-5\end{bmatrix}\).
  2. For \(\begin{bmatrix}2&0&0\\1&2&0\\4&-1&6\end{bmatrix}\), state each eigenvalue and its multiplicity.
  3. For which real values of \(t\) does \(\begin{bmatrix}t&1&0\\0&2&1\\0&0&t\end{bmatrix}\) have a repeated eigenvalue? State the multiplicity in each case.
  4. Explain why the factors in \(\det(\lambda\mathbf{I}_n-\mathbf{A})\) have the opposite order from those in \(p_{\mathbf{A}}(\lambda)\).
  5. Does the diagonal-entry rule apply to \(\begin{bmatrix}1&1\\1&2\end{bmatrix}\)? Give the condition that the rule requires.

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