Linear Algebra / Unit 5, Eigenvalues and Eigenvectors / Topic 5.2
Unit 5. Eigenvalues and Eigenvectors
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.
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.
For a 2 by 2 matrix, the characteristic polynomial contains only the trace and the determinant.
p(λ) = λ² − (tr A)λ + det AThe quadratic formula gives the eigenvalues, with T for the trace and D for the determinant.
λ = (T ± √T² − 4D)/2The quantity under the square root decides the kind of eigenvalues.
| T² − 4D | Eigenvalues | Example | p(λ) |
|---|---|---|---|
| Positive | Two different real numbers | 2112 | λ² − 4λ + 3 = (λ − 1)(λ − 3) |
| Zero | One real number, repeated | 1101 | λ² − 2λ + 1 = (λ − 1)² |
| Negative | Two complex numbers | 0−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.
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)factorThe 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.
When a factor of p(λ) is repeated, the eigenvalue is called repeated. Two numbers describe a repeated 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.
| Matrix | A − I | Eigenvectors for λ = 1 | Geometric multiplicity |
|---|---|---|---|
| 1001 | 0000 | All vectors except the zero vector | 2 |
| 1101 | 0100 | Only 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.
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.
If Av = λv, then the same vector v is an eigenvector of several matrices that are built from A.
| Matrix | Eigenvalue | Reason |
|---|---|---|
| A² | λ² | A(Av) = A(λv) = λ²v |
| Ak | λk | Repeat the step above |
| A⁻¹ | 1/λ | Multiply Av = λv by A⁻¹ and divide by λ |
| A + cI | λ + c | (A + cI)v = λv + cv |
| cA | cλ | (cA)v = cλv |
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 entriesOne use of the theorem is to write high powers of A in terms of low powers. Here A² = 4A − 3I.
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.
| Term | Meaning |
|---|---|
| Characteristic polynomial | p(λ) = det(A − λI), of degree n |
| 2 by 2 case | λ² − (tr A)λ + det A |
| Algebraic multiplicity | The number of times a root repeats |
| Geometric multiplicity | The dimension of the eigenspace |
| Defective matrix | A matrix with fewer than n independent eigenvectors |
| Cayley-Hamilton theorem | The matrix satisfies its own characteristic equation |
Work each problem on paper first. Then open the answer to check your work.
tr A = 7the tracedet A = 12 − 2 = 10the determinantp(λ) = λ² − 7λ + 10λ² − (trace)λ + (determinant)p(λ) = (λ − 2)(λ − 5)factor
The eigenvalues are 2 and 5.
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.
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.
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.
A²: 4 and 25.
A⁻¹: 1/2 and 1/5.
A − 2I: 0 and 3.
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
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.
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
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.
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
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
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?
For a 2 by 2 matrix, the characteristic polynomial is λ² − (trace)λ + (determinant). The trace is 5, and the determinant is 4 − 6 = −2.
2. What kind of eigenvalues does the matrix 2−112 have?
The characteristic polynomial is λ² − 4λ + 5.discriminant = 16 − 20 = −4The discriminant is negative, so the two roots are complex numbers.
3. A matrix A has the eigenvalues 3 and −2. Find the eigenvalues of A².
If Av = λv, then A²v = λ²v. The eigenvalues of A² are 3² = 9 and (−2)² = 4.
4. Find the algebraic multiplicity of the eigenvalue 2 of 210020005.
The matrix is triangular, so det(A − λI) = (2 − λ)²(5 − λ). The factor (2 − λ) appears twice.
5. Find the geometric multiplicity of the eigenvalue 2 of the same matrix, 210020005.
A − 2I has the rows 0, 1, 0 and 0, 0, 0 and 0, 0, 3. Its rank is 2, so its null space has the dimension 3 − 2 = 1. The only eigenvectors are the multiples of (1, 0, 0).