Lecture 38 · Week 10· 17:11
The characteristic polynomial
Finding eigenvalues, algebraic and geometric multiplicity.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Today: how to find eigenvalues
Welcome back. Last time we met eigenvalues and eigenvectors. A nonzero vector v is an eigenvector of a square matrix A when A v is lambda times v, for a scalar lambda, called the eigenvalue. Together with the zero vector, the eigenvectors for lambda form the eigenspace E lambda, the null space of A minus lambda I. We also met the determinant test: lambda is an eigenvalue of A exactly when the determinant of A minus lambda I is zero. But the test checks one number at a time. How do we find all the eigenvalues at once? We cannot try every number. Today's answer: let lambda vary. The determinant of A minus lambda I then becomes a polynomial, the characteristic polynomial, and the eigenvalues are its roots.
Here is the plan. First the polynomial, its coefficients and examples. Then two ways of counting an eigenvalue, the algebraic and the geometric multiplicity, and how they compare. Finally, the characteristic polynomial of a linear map.
The characteristic polynomial
Throughout, A is an n by n matrix over a field F. Replace the scalar lambda by a variable, t. The matrix A minus t I has the entries a one one minus t, up to a n n minus t, on its diagonal, and the entries of A off it. Its determinant, computed with the Leibniz formula, is a sum of products of these entries, so it is a polynomial in t. This is the characteristic polynomial of A, written p A of t. The equation p A of lambda equals zero is the characteristic equation of A. For a two by two matrix with the rows (a, b), and (c, d), subtract t on the diagonal. The determinant is a minus t, times d minus t, minus b c. Multiplied out, it is t squared, plus a coefficient of t, which is minus a minus d, plus a constant term, which is a d minus b c.
One point of rigour. The entries of A minus t I are polynomials, not numbers. Two facts make the determinant rules of chapter seven available. First, putting a number lambda in place of t gives the same sum of products, so p A of lambda is the determinant of A minus lambda I. Second, polynomials sit inside a field, the rational functions in t, just as the integers sit inside the rational numbers. Every result of chapter seven holds over any field, so the product rule and cofactor expansion work for A minus t I. The book gives the details. Now the theorem. A scalar lambda in F is an eigenvalue of A if and only if p A of lambda is zero. Indeed, by the determinant test, lambda is an eigenvalue exactly when the determinant of A minus lambda I is zero, and that determinant is p A of lambda.
So the eigenvalues of A are the roots of p A in F. We find them first, and then each eigenspace by elimination.
A first example
Let's find the eigenvalues of the matrix A with the rows (four, one), and (two, three), over the real numbers. Subtract t on the diagonal. The determinant of A minus t I is four minus t, times three minus t, minus one times two. Multiplying out gives twelve, minus seven t, plus t squared, minus two. That is t squared minus seven t plus ten, which factors as t minus two, times t minus five. So the eigenvalues are two and five.
Now the eigenspaces, by elimination. A minus two I has the rows (two, one), and (two, one). Its null space is given by two x one plus x two equals zero, so E two is spanned by the vector (one, minus two). And A minus five I has the rows (minus one, one), and (two, minus two). Its null space is given by minus x one plus x two equals zero, so E five is spanned by the vector (one, one). Check: A times the vector (one, minus two), is the vector (two, minus four), which is two times it. And A times the vector (one, one), is the vector (five, five). So A stretches the line E five by five, and the line E two by two.
The coefficients
What does p A look like in general? Here is the theorem. For an n by n matrix A, p A has degree n. Its leading coefficient is minus one to the n. Its coefficient of t to the n minus one is minus one to the n minus one, times the trace of A. And its constant term is the determinant of A. The proof uses the Leibniz formula, so take it slowly. Each permutation sigma gives a term: a sign, times a product of n entries of A minus t I, one from each row, the entry in row i and column sigma of i. Such an entry contains t only when it lies on the diagonal, that is, when sigma of i is i. Suppose sigma is not the identity. Then it sends some i to a different number j. And sigma cannot also send j to j, because j is already the image of i. So at least two factors of its term are off the diagonal, and the term has degree at most n minus two.
So the two highest powers of t come only from the identity, whose term is the product of the diagonal entries: a one one minus t, times and so on, up to a n n minus t. Taking minus t from every factor gives minus one to the n, times t to the n. Taking minus t from every factor but one, factor i, and a i i from that one, gives minus one to the n minus one, times a i i, times t to the n minus one. Summed over i, the a i i add up to the trace. Finally, the constant term of a polynomial is its value at zero. And p A of zero is the determinant of A minus zero I, which is the determinant of A.
For a two by two matrix there is nothing in between, so p A of t is t squared, minus the trace of A times t, plus the determinant of A. In our example, the trace is four plus three, which is seven, and the determinant is twelve minus two, which is ten. That gives t squared minus seven t plus ten again.
Roots, and three examples
How many roots can p A have? The factor theorem says that lambda is a root of a polynomial f exactly when t minus lambda divides f. Splitting off one factor at a time, a nonzero polynomial of degree d has at most d roots. The proofs are in the book. Since p A has degree n, an n by n matrix has at most n eigenvalues. We saw this last time by counting independent eigenvectors; now it also follows by counting roots. But eigenvalues need not exist. The quarter turn R, with the rows (zero, minus one), and (one, zero), has trace zero and determinant one. So p R of t is t squared plus one.
For every real lambda, lambda squared plus one is at least one, so it is never zero. So R has no real eigenvalues: it turns every nonzero vector, and none keeps its direction. Over the complex numbers, t squared plus one has the roots i and minus i. Triangular matrices are the easy case. If A is triangular, so is A minus t I, and its determinant is the product of its diagonal entries. So p A of t is a one one minus t, times and so on, up to a n n minus t, and the eigenvalues are the diagonal entries, as we saw last time. Now a three by three example. Take the matrix A whose first row is (three, one, one), its second row is (zero, two, zero), and its third row is (one, one, three).
The second row of A minus t I is zero, two minus t, zero. So expand along that row. Only one term is left, with the sign plus: p A of t is two minus t, times the determinant of the minor with the rows (three minus t, one), and (one, three minus t). That determinant is three minus t, squared, minus one. This is t squared minus six t plus eight, which factors as two minus t, times four minus t. So p A of t is two minus t, squared, times four minus t. The eigenvalues are two, a double root, and four. Check with the theorem. Multiplied out, p A of t is minus t cubed, plus eight t squared, minus twenty t, plus sixteen. The leading coefficient is minus one. The trace of A is three plus two plus three, which is eight. And the determinant is p A of zero, two squared times four, which is sixteen.
Algebraic and geometric multiplicity
The eigenvalue two appeared twice as a root. This gives two ways of counting an eigenvalue lambda. Its algebraic multiplicity is the largest whole number m such that t minus lambda, to the power m, divides p A. Its geometric multiplicity is the dimension of its eigenspace, E lambda. By rank nullity, that is n minus the rank of A minus lambda I. For our matrix, two has algebraic multiplicity two, and four has algebraic multiplicity one. We may count the factor two minus t in place of t minus two, since the two differ only by a sign.
Now the eigenspaces. In A minus two I, the first row is (one, one, one), the second row is zero, and the third row is (one, one, one). Its rank is one, so E two has dimension three minus one, which is two. It is the plane x one plus x two plus x three equals zero, with the basis (one, minus one, zero), and (one, zero, minus one). And A minus four I has rank two, so E four is a line, spanned by the vector (one, zero, one). So for A, each eigenvalue has geometric multiplicity equal to its algebraic multiplicity. Now change a single entry. The matrix B has a zero in the third row and second column, where A has a one. The expansion along the second row never used that entry, so B has the same characteristic polynomial: two minus t, squared, times four minus t.
But in B minus two I, the first row is (one, one, one), the second row is zero, and the third row is (one, zero, one). Its rank is two. Its equations give x two equals zero and x three equals minus x one, so E two is only a line, spanned by the vector (one, zero, minus one). So for B, the eigenvalue two has algebraic multiplicity two, but geometric multiplicity one. The eigenvalue four keeps its line, through the vector (one, zero, one). So the characteristic polynomial does not determine the eigenspaces. The same happens in the plane. Two times the identity, and the matrix J with the rows (two, one), and (zero, two), are both triangular with the diagonal entries two and two. So both have the characteristic polynomial two minus t, squared.
For two I, every vector is an eigenvector, so the geometric multiplicity is two. But J minus two I has the rows (zero, one), and (zero, zero), so its null space is the line through e one: geometric multiplicity one. J doubles every vector and adds a slide along the x axis, and only the vectors on that axis keep their direction.
Geometric at most algebraic
In every example so far, the geometric multiplicity was at most the algebraic one. That is always true. The proof changes basis, so first: what do similar matrices share? Let P be invertible, and let B be P inverse A P. Since P inverse times t I times P is t I, B minus t I is P inverse, times A minus t I, times P. By the product rule, its determinant is one over the determinant of P, times p A, times the determinant of P. So p B equals p A. So similar matrices have the same eigenvalues, with the same algebraic multiplicities. And multiplying by P maps each eigenspace of B onto the eigenspace of A for the same eigenvalue, so the geometric multiplicities agree too.
Now the theorem. Let lambda be an eigenvalue of A, with geometric multiplicity k and algebraic multiplicity m. Then one is at most k, and k is at most m. The proof takes a few steps, so take it slowly. Take a basis v one up to v k of E lambda, and extend it to a basis of F n. Put these n vectors as the columns of a matrix P. Its columns are independent, so P is invertible. For j up to k, P sends e j to v j, so P inverse sends v j back to e j. So P inverse A P sends e j to P inverse A v j, which is P inverse of lambda v j, which is lambda e j. So its first k columns are lambda times the first k columns of the identity.
In blocks, P inverse A P has lambda times the k by k identity in the top left corner, zeros below it, and blocks Y and Z on the right. Subtract t I. The result is block triangular, so its determinant is the product of the determinants of the diagonal blocks: lambda minus t, to the power k, times the characteristic polynomial of Z. If k is n, there is no Z, and the determinant is lambda minus t, to the power n. Similar matrices share the characteristic polynomial, so this is p A. So t minus lambda, to the power k, divides p A, and k is at most m. And k is at least one, because an eigenvalue has a nonzero eigenvector.
In particular, an eigenvalue with algebraic multiplicity one, a simple eigenvalue, always has geometric multiplicity one. Counting with multiplicity also explains the trace and the determinant. When p A splits into linear factors, the algebraic multiplicities add up to n, the trace is the sum of the eigenvalues, and the determinant is their product, each counted as often as its multiplicity. For our matrix A, two plus two plus four is eight, and two times two times four is sixteen.
The characteristic polynomial of a linear map
Everything carries over to a linear map T from a vector space V to itself, of finite dimension at least one. The matrices of T in any two bases are similar, so they all have the same characteristic polynomial. We call it p T. Its roots in F are the eigenvalues of T, and each has the same algebraic and geometric multiplicity for T as for its matrix. For example, take differentiation, d by d x, on P two of R, with the basis one, x, x squared. It sends one to zero, x to one, and x squared to two x. The coefficients of these images are the columns of its matrix.
The matrix is triangular with zeros on the diagonal, so the characteristic polynomial of d by d x is minus t cubed. The only eigenvalue is zero, with algebraic multiplicity three. Its eigenspace is the kernel of differentiation, the constant polynomials, so the geometric multiplicity is only one. The only polynomials that differentiation sends to multiples of themselves are the constants, which it sends to zero. Why does this comparison matter? Next lecture we diagonalise matrices, and we will see that this works exactly when p A splits and every geometric multiplicity equals the algebraic one. Our matrix A will pass this test, and B will fail it.
Summary
To sum up. The characteristic polynomial of A is the determinant of A minus t I. It has degree n, its roots in F are exactly the eigenvalues of A, and its coefficients include the trace and the determinant. Each eigenvalue has an algebraic multiplicity, from the polynomial, and a geometric multiplicity, the dimension of its eigenspace. The geometric one is at least one and never larger than the algebraic one. Similar matrices have the same characteristic polynomial, so every linear map from a space to itself has one.
Before the next lecture, read section eight point two of the course book, try the problems on sheet ten about the characteristic polynomial, and do the lecture check on this lecture's page at Open Semester dot com. Next time: diagonalisation, writing A as P D P inverse. See you there.
In this lecture
Materials
Check yourself
3 questions, from warm-up to stretch
Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.
- Question 1 of 3 Warm-up
Let . Find the constant term of the characteristic polynomial , and the two eigenvalues of .
Hint 1 of 2
For a matrix, (Corollary 8.2.6). The eigenvalues are its roots (Theorem 8.2.3).
Hint 2 of 2
Here and . Write down and factor it.
Worked solution
- By Corollary 8.2.6, , with and .
- So , and its constant term is .
- It factors as , so by Theorem 8.2.3 the eigenvalues are and .
- Check: and , as Corollary 8.2.17 says.
- Question 2 of 3 Core
Let . Its eigenvalues are and . Find the algebraic and the geometric multiplicity of the eigenvalue , and the geometric multiplicity of the eigenvalue .
Hint 1 of 2
is triangular, so is the product of the factors (Proposition 8.2.10). The geometric multiplicity of is .
Hint 2 of 2
. For the eigenvalue , find the rank of .
Worked solution
- is triangular, so by Proposition 8.2.10, . The eigenvalue has algebraic multiplicity , and has algebraic multiplicity .
- has rank , so : its equations give and , and .
- The eigenvalue is simple (algebraic multiplicity ), so by Theorem 8.2.16, : its geometric multiplicity is .
- So for the eigenvalue has geometric multiplicity , like the matrix in the lecture.
- Question 3 of 3 Stretch
Let . Find the eigenvalue of with algebraic multiplicity , the other eigenvalue, and the geometric multiplicity of the double eigenvalue.
Hint 1 of 2
The second column of is . Expand along that column: only one term is left.
Hint 2 of 2
. Factor , then find the rank of for the double root.
Worked solution
- Expand along the second column, whose only nonzero entry is in position , with sign : .
- , so . The eigenvalue has algebraic multiplicity , and has algebraic multiplicity .
- Check with Corollary 8.2.17: , and .
- has rank , so : is the plane , with basis , .
- So here the geometric multiplicity of equals its algebraic multiplicity, as for the matrix in the lecture.
How did it go?