Scientia sine finibus

Linear Algebra / Unit 5, Eigenvalues and Eigenvectors / Topic 5.2

Units and Topics

Unit 5. Eigenvalues and Eigenvectors

5.2 The Characteristic Polynomial

This topic studies the polynomial det(A − λI), whose roots are the eigenvalues of A. The polynomial explains how many eigenvalues a matrix has, when they repeat, and when they are complex numbers.

You need Topics 3.4, 3.5, and 5.1 for this topic.

1. The Definition

For an n by n matrix A, the expression det(A − λI) is a polynomial in λ of degree n. It is called the characteristic polynomial of A, and it is written p(λ). The equation p(λ) = 0 is called the characteristic equation. From Topic 5.1, its solutions are the eigenvalues of A.

A polynomial of degree n has at most n different roots. So an n by n matrix has at most n different eigenvalues.

2. The 2 by 2 Case

For a 2 by 2 matrix, the characteristic polynomial contains only the trace and the determinant.

p(λ) = λ² − (tr A)λ + det A

The quadratic formula gives the eigenvalues, with T for the trace and D for the determinant.

λ = (T ± √T² − 4D)/2

The quantity under the square root decides the kind of eigenvalues.

T² − 4DEigenvaluesExamplep(λ)
PositiveTwo different real numbers2112λ² − 4λ + 3 = (λ − 1)(λ − 3)
ZeroOne real number, repeated1101λ² − 2λ + 1 = (λ − 1)²
NegativeTwo complex numbers0−110λ² + 1

Try it: the graph of the characteristic polynomial

Move the sliders to change the four entries of the matrix. The curve is the graph of p(λ), with λ on the horizontal axis. The eigenvalues are the points where the curve crosses the horizontal axis.

3. A 3 by 3 Example

For a larger matrix, calculate det(A − λI) by a cofactor expansion, as in Topic 3.4. Choose a row or a column with zeros.

A = 410230111 A − λI = 4 − λ1023 − λ0111 − λ

Column 3 has only one entry that is not 0. Expanding along it gives

p(λ) = det(A − λI)the characteristic polynomialp(λ) = (1 − λ)[(4 − λ)(3 − λ) − 2]expand along the third columnp(λ) = (1 − λ)(λ² − 7λ + 10)multiply out inside the bracketsp(λ) = (1 − λ)(λ − 2)(λ − 5)factor

The eigenvalues are 1, 2, and 5. Check: their sum is 8, which is the trace 4 + 3 + 1.

Keep the polynomial in factored form when a factor appears during the expansion. Multiplying it out and then factoring a polynomial of degree 3 is much more work.

4. Repeated Eigenvalues

When a factor of p(λ) is repeated, the eigenvalue is called repeated. Two numbers describe a repeated eigenvalue.

  • The algebraic multiplicity is the number of times that the factor (λ − λ₁) appears in p(λ).
  • The geometric multiplicity is the dimension of the eigenspace, which is the number of independent eigenvectors for that eigenvalue.

The geometric multiplicity is at least 1, and it is never larger than the algebraic multiplicity. The two matrices below both have p(λ) = (λ − 1)², so the eigenvalue 1 has the algebraic multiplicity 2 in both.

MatrixA − IEigenvectors for λ = 1Geometric multiplicity
10010000All vectors except the zero vector2
11010100Only the multiples of (1, 0)1

A matrix that has fewer independent eigenvectors than its size, like the shear in the second row, is called defective. Topic 5.3 shows why this matters.

5. Complex Eigenvalues

A polynomial with real coefficients can have roots that are complex numbers. The rotation by 90° has p(λ) = λ² + 1, with the roots i and −i, where i is the number whose square is −1. For a matrix with real entries, complex eigenvalues always come in pairs of the form a + bi and a − bi.

When complex numbers are allowed, a polynomial of degree n has exactly n roots, counted with their multiplicities. So an n by n matrix always has n eigenvalues in this sense. Unit 8 works with complex numbers.

6. Facts That Follow from the Polynomial

  • The sum of the n eigenvalues is the trace, and their product is the determinant. Repeated eigenvalues are counted as many times as they repeat, and complex eigenvalues are included.
  • A and AT have the same eigenvalues, because det(AT − λI) = det(A − λI).
  • Similar matrices have the same characteristic polynomial, so they have the same eigenvalues. The reason is that P⁻¹AP − λI = P⁻¹(A − λI)P, and the determinants of P⁻¹ and P cancel.

The eigenvalues of related matrices

If Av = λv, then the same vector v is an eigenvector of several matrices that are built from A.

MatrixEigenvalueReason
A²λ²A(Av) = A(λv) = λ²v
AkλkRepeat the step above
A⁻¹1/λMultiply Av = λv by A⁻¹ and divide by λ
A + cIλ + c(A + cI)v = λv + cv
cAcλ(cA)v = cλv

7. The Cayley-Hamilton Theorem

A square matrix satisfies its own characteristic equation. If each power of λ in p(λ) is replaced by the same power of A, and the constant term is multiplied by I, the result is the zero matrix. This is called the Cayley-Hamilton theorem.

For example, A = 2112 has p(λ) = λ² − 4λ + 3.

A² − 4A + 3I = 5445 − 8448 + 3003the three matricesA² − 4A + 3I = 0000add the matching entries

One use of the theorem is to write high powers of A in terms of low powers. Here A² = 4A − 3I.

8. Large Matrices

The characteristic polynomial is the right tool for matrices of size 2 and 3 and for proofs. It is not used for large matrices. There is no formula for the roots of a general polynomial of degree 5 or more, and the roots of a polynomial of high degree are very sensitive to small errors in its coefficients. Computer programs find eigenvalues by other methods, which improve an estimate step by step. Topic 6.3 mentions one of them.

Common Mistakes

  • Forgetting the minus sign in front of the trace. The 2 by 2 polynomial is λ² − (tr A)λ + det A.
  • Multiplying out a factored polynomial of degree 3 and then having to factor it again.
  • Assuming that a repeated eigenvalue has as many independent eigenvectors as its algebraic multiplicity. Check the eigenspace.
  • Concluding that a matrix has no eigenvalues when the roots are complex. It has no real eigenvalues.
  • Counting a repeated eigenvalue only once when checking the trace and the determinant.

Summary

TermMeaning
Characteristic polynomialp(λ) = det(A − λI), of degree n
2 by 2 caseλ² − (tr A)λ + det A
Algebraic multiplicityThe number of times a root repeats
Geometric multiplicityThe dimension of the eigenspace
Defective matrixA matrix with fewer than n independent eigenvectors
Cayley-Hamilton theoremThe matrix satisfies its own characteristic equation

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Write the characteristic polynomial of 3214 and find the eigenvalues.

tr A = 7the tracedet A = 12 − 2 = 10the determinantp(λ) = λ² − 7λ + 10λ² − (trace)λ + (determinant)p(λ) = (λ − 2)(λ − 5)factor

The eigenvalues are 2 and 5.

2. For which values of k does 1k11 have two different real eigenvalues?

T = 2the traceD = 1 − kthe determinantT² − 4D = 4 − 4(1 − k) = 4kthe discriminant

The eigenvalues are real and different when k is positive. For k = 0 there is one repeated eigenvalue, and for negative k the eigenvalues are complex.

3. Find the eigenvalues of 200130453, and state the algebraic multiplicity of each.

The matrix is lower triangular, so p(λ) = (2 − λ)(3 − λ)².

The eigenvalue 2 has the algebraic multiplicity 1, and the eigenvalue 3 has the algebraic multiplicity 2.

4. Find the geometric multiplicity of the eigenvalue 3 for the matrix in Problem 3.

A − 3I = −100100450. The first row gives x = 0, and the third row then gives y = 0. The unknown z is free.

The eigenvectors are the multiples of (0, 0, 1), so the geometric multiplicity is 1. The matrix is defective.

5. A has the eigenvalues 2 and 5. Find the eigenvalues of A², A⁻¹, and A − 2I.

A²: 4 and 25.

A⁻¹: 1/2 and 1/5.

A − 2I: 0 and 3.

6. Use the Cayley-Hamilton theorem to write A³ in terms of A and I for A = 2112.

A² = 4A − 3Ifrom A² − 4A + 3I = 0A³ = A(4A − 3I)multiply both sides by AA³ = 4A² − 3Amultiply outA³ = 4(4A − 3I) − 3Asubstitute A² = 4A − 3I againA³ = 13A − 12Icollect the terms

Python Practice

Step 1. Find the characteristic polynomial

The instruction np.poly gives the coefficients of the characteristic polynomial of a square matrix, starting with the highest power of λ.

Python

The result is [ 1. -4. 3.], which means λ² − 4λ + 3. The trace of this matrix is 4 and the determinant is 3.

Now find the polynomial of the 3 by 3 matrix in Part 3, which has the rows 4, 1, 0 and 2, 3, 0 and 1, 1, 1. The line that starts with c stores the coefficients, so do not change it.

Python

Python uses the polynomial det(λI − A), which starts with +λ³. The polynomial det(A − λI) of Part 3 starts with −λ³. The two differ only by the sign of the whole polynomial when n is odd, so they have the same roots.

Step 2. Find the roots of a polynomial

The instruction np.roots finds the roots of a polynomial from the list of its coefficients. The code below finds the roots of λ² − 7λ + 10.

Python

The result is [5. 2.]. These are the eigenvalues of the matrix in Practice Problem 1.

In the next box, change the list so that the code finds the roots of λ³ − 8λ² + 17λ − 10, the polynomial from Step 1.

Python

Step 3. Complex roots

The rotation by 90° has the polynomial λ² + 1. Its coefficients are 1, 0, and 1. The 0 is the coefficient of λ, and it must be included in the list.

Python

The result is [-0.+1.j 0.-1.j]. Python writes the imaginary unit as j. The two roots are i and −i.

Step 4. Check the Cayley-Hamilton theorem

The code below calculates A² − 4A + 3I for the matrix of Part 7. The instruction np.eye(2) is the 2 by 2 identity matrix.

Python

The result is the zero matrix.

The matrix in the next box has the trace 7 and the determinant 10. Replace the two zeros in the second line with the numbers that make the result the zero matrix.

Python

Step 5. The eigenvalues of related matrices

The matrix with the rows 4, 1 and 2, 3 has the eigenvalues 5 and 2. The code below prints the eigenvalues of its square and of its inverse.

Python

The first result is [25. 4.], the squares of 5 and 2. The second result is 0.5 and 0.2, which are 1/2 and 1/5. Python may list them in either order.

In the next box, change the last line so that it prints the eigenvalues of A − 2I. Use np.eye(2) for the identity matrix.

Python

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Which polynomial is the characteristic polynomial of 1234?

2. What kind of eigenvalues does the matrix 2−112 have?

3. A matrix A has the eigenvalues 3 and −2. Find the eigenvalues of A².

4. Find the algebraic multiplicity of the eigenvalue 2 of 210020005.

5. Find the geometric multiplicity of the eigenvalue 2 of the same matrix, 210020005.

Next: Topic 5.3, Diagonalization