Lecture 44 · Week 11· 16:40
The minimal polynomial
Minimal polynomial, diagonalisability criterion.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Today: the minimal polynomial
Welcome back. Last lecture we proved the Cayley Hamilton theorem: every square matrix is a root of its own characteristic polynomial. Here it is precisely. Let A be an n by n matrix over a field F, with characteristic polynomial p A. Then p A of A is the zero matrix. But p A is often not the smallest polynomial that does this. Take the diagonal matrix K, with diagonal entries two, two and three. Its characteristic polynomial is two minus t, squared, times three minus t. It has degree three.
Yet the polynomial t minus two, times t minus three, already sends K to zero. K minus two I has the diagonal zero, zero, one, and K minus three I has the diagonal minus one, minus one, zero. Multiply them, one diagonal entry at a time. In the first, zero times minus one is zero. In the second, zero times minus one is zero. And in the third, one times zero is zero. So the product is the zero matrix. A polynomial of degree two does the job of the characteristic polynomial, which has degree three. So today's question is this. What is the smallest polynomial that sends a matrix to zero? We will see that it always exists, that it divides the characteristic polynomial, and that it answers the question of lecture thirty nine: is A diagonalisable?
Here is the plan. First, the definition, and why it makes sense. Then, how to compute it. Then the main theorem, a new test for diagonalisability. And finally, examples where the test does all the work.
The minimal polynomial
First, some words. A polynomial f annihilates A if f of A is the zero matrix. By Cayley Hamilton, p A annihilates A, so nonzero polynomials that annihilate A always exist. A nonzero polynomial is monic if its leading coefficient, the coefficient of its highest power of t, is one. For example, t squared, minus five t, plus six is monic, and two t minus one is not. Dividing a nonzero polynomial by its leading coefficient makes it monic. And a polynomial g divides f if f equals q times g, for some polynomial q. To compare polynomials, we need one tool from lecture forty three: division with remainder. Let g be a nonzero polynomial. Then every polynomial f can be written as q times g, plus r, where the remainder r is zero or has smaller degree than g.
Recall how it works, with f equal to t cubed, minus two t, plus four, and g equal to t minus two. Subtract t squared times g, to remove the leading term. That leaves two t squared, minus two t, plus four. Subtract two t times g, which leaves two t plus four. Then subtract two times g, which leaves eight. The degree is now below the degree of g, so we stop. So f equals t squared plus two t plus two, times g, plus eight. And indeed, f of two is eight. Now the theorem. Let A be an n by n matrix over F. Among the nonzero polynomials that annihilate A, there is exactly one monic polynomial of least degree. And a polynomial f annihilates A exactly when this polynomial divides f.
Here is the proof. It is short, but we will use its idea again and again. Among the nonzero polynomials that annihilate A, choose one of least degree d, and divide it by its leading coefficient. It still annihilates A, and now it is monic. Call it mu A. Now take any f that annihilates A, and divide: f equals q mu A, plus r. Put A into this equation. Since f of A and mu A of A are both the zero matrix, r of A is the zero matrix too. So r annihilates A. If r were not zero, its degree would be smaller than d. That is impossible, since d is the least degree. So r is zero, and mu A divides f. Conversely, if f equals q mu A, then f of A is q of A times mu A of A, which is zero.
Uniqueness. If another monic polynomial of degree d annihilates A, then so does its difference with mu A. The leading terms cancel, so the difference is zero or has degree less than d, and it must be zero. So the two polynomials are equal. This polynomial is called the minimal polynomial of A, and we write it mu A. Its degree is at least one, since a nonzero constant never annihilates A. Similar matrices share it. If B equals P inverse A P, then f of B equals P inverse, f of A, P. So f annihilates B exactly when it annihilates A, and mu B equals mu A.
So for a linear map T from a finite dimensional space V to itself, mu T is defined in the same way, with the zero map in place of the zero matrix. It equals the minimal polynomial of the matrix of T in any basis. And since p A annihilates A, the theorem gives at once: mu A divides p A. In particular, the degree of mu A is at most n.
Computing the minimal polynomial
Which divisors of p A can mu A be? Here is the key fact. The roots of mu A are exactly the eigenvalues of A, the same as the roots of p A. One direction. Let A v equal lambda v, with v not zero. Then A squared v is lambda squared v, and in the same way, f of A times v is f of lambda, times v, for every polynomial f. Apply this to mu A. The zero vector equals mu A of A, times v, which is mu A of lambda, times v. Since v is not zero, mu A of lambda is zero.
Conversely, let mu A of lambda be zero. By the factor theorem, mu A is t minus lambda, times a polynomial q of smaller degree, so q does not annihilate A. Pick a vector w with q of A times w not zero, and call that vector v. Then A minus lambda I, times v, is mu A of A, times w, which is zero. So v is an eigenvector, with eigenvalue lambda. So here is how to find mu A. Factor p A. The minimal polynomial is a monic divisor of p A that has every eigenvalue as a root. Try these candidates in order of degree. The first one that annihilates A is mu A.
For K, the eigenvalues are two and three, so the candidates are t minus two, times t minus three, and t minus two, squared, times t minus three. The first one already annihilates K, as we saw. So mu K is t minus two, times t minus three, of degree two, while p K has degree three. Now change one entry. The matrix J has the rows two, one, zero, then zero, two, zero, and zero, zero, three. It is upper triangular with the same diagonal as K, so it has the same characteristic polynomial, and the same two candidates. Test the first candidate. J minus two I has the rows zero, one, zero, then zero, zero, zero, and zero, zero, one. J minus three I has the rows minus one, one, zero, then zero, minus one, zero, and zero, zero, zero.
In their product, the first row of the left factor times the second column of the right factor is zero times one, plus one times minus one, plus zero times zero, which is minus one. So the product is not the zero matrix. So mu J is the other candidate: t minus two, squared, times t minus three. It does annihilate J, since it is minus p J. Same characteristic polynomial, different minimal polynomials: the minimal polynomial sees something that the characteristic polynomial misses. And since similar matrices share their minimal polynomial, K and J are not similar, even though they have the same characteristic polynomial, trace and determinant. In lecture fifty two, we take a short look at the Jordan form, which explains exactly what the minimal polynomial sees.
A new test for diagonalisability
Now the main theorem. A linear factor is a polynomial t minus lambda. Let A be an n by n matrix over F. Then A is diagonalisable over F exactly when its minimal polynomial is a product of distinct linear factors: t minus lambda one, up to t minus lambda k, with lambda one up to lambda k distinct numbers in F. The same holds for a linear map T on a finite dimensional space. In short: no repeated roots, and no roots missing from the field. So K is diagonalisable, and J is not, because its factor t minus two is repeated. One direction is quick. Suppose A equals P D P inverse. Let lambda one up to lambda k be the distinct entries on the diagonal of D, and let f be the product of t minus lambda i, over these distinct values.
Every diagonal entry of D is a root of f, so f of D is the diagonal matrix of these values of f, which is the zero matrix. And f of A equals P times f of D times P inverse, which is zero too. So mu A divides f. But mu A has every eigenvalue as a root, so it contains every factor of f. Hence mu A equals f: a product of distinct linear factors. The other direction is the heart of the lecture, and its proof is demanding, so take it slowly. We need one fact about kernels.
Let S and T be linear maps from V to V, with V finite dimensional. Then the kernel of S T has dimension at most the dimension of the kernel of S, plus the dimension of the kernel of T. Here is why. Call the kernel of S T, W. If S T sends w to zero, then T of w lies in the kernel of S. So T maps W into the kernel of S. Now apply rank nullity to T on W. The dimension of W is the dimension of the part that T sends to zero, plus the dimension of its image under T. The first part lies in the kernel of T, and the image lies in the kernel of S. That gives the inequality. For a product of more maps, apply it one factor at a time.
Now suppose mu A is t minus lambda one, up to t minus lambda k, with distinct lambdas. Then the product of A minus lambda i I, over all i, is the zero matrix. So its null space is all of F n, of dimension n. Apply the kernel fact to this product. Then n is at most the sum of the dimensions of the null spaces of A minus lambda i I. These null spaces are the eigenspaces, so n is at most g one, plus up to g k, the sum of the geometric multiplicities. On the other hand, the geometric multiplicities never add up to more than n. So their sum is exactly n, and by the multiplicity test of lecture thirty nine, A is diagonalisable. That proves the theorem.
So the two ways diagonalisation can fail, which we met in lecture thirty nine, both show in the minimal polynomial. An eigenvalue missing from the field gives a factor that is not linear, and too few eigenvectors give a repeated factor.
The test at work
In practice, the test needs no eigenvectors. Suppose p A splits, with distinct roots lambda one up to lambda k. Then A is diagonalisable exactly when the product of A minus lambda i I, over these roots, is the zero matrix. Take the two matrices from lecture thirty nine. A has the rows three, one, minus one, then one, three, minus one, and zero, zero, two. B differs from A in one entry: its first row is three, one, zero. Both have the characteristic polynomial two minus t, squared, times four minus t. For A, the first two rows of A minus two I are both one, one, minus one, and the third row is zero. Multiply this row by each column of A minus four I. For the first column, minus one plus one plus zero is zero. For the second, one minus one plus zero is zero. And for the third, minus one minus one plus two is zero.
So the product is the zero matrix, and A is diagonalisable, without a single eigenvector. Its minimal polynomial is t minus two, times t minus four. For B, the first row of B minus two I is one, one, zero, and the third column of B minus four I is zero, minus one, minus two. Their product is zero minus one plus zero, which is minus one, and that is not zero. So B is not diagonalisable, as we found in lecture thirty nine, now in one line. Next, the quarter turn R, with the rows zero, minus one, and one, zero. R squared is minus I, so t squared plus one annihilates R. No monic polynomial of degree one does, since R is not a multiple of I. So mu R is t squared plus one.
Over the real numbers, t squared plus one has no roots, so it is not a product of linear factors, and R is not diagonalisable over the real numbers. Over the complex numbers, it is t minus i, times t plus i, with two distinct roots. So over the complex numbers, R is diagonalisable, as we saw in lecture forty one. The test is most powerful when we know a polynomial equation for A in advance. A monic divisor of a product of distinct linear factors is again such a product: it is made of some of the same factors, each at most once. So take a projection: a square matrix with A squared equal to A. Then t squared minus t, which is t times t minus one, annihilates A. So mu A divides it, and mu A is one of t, t minus one, and t times t minus one. Each is a product of distinct linear factors. So every projection is diagonalisable, and we never computed an eigenvalue.
In the same way, if A squared is the identity, and one plus one is not zero in F, then t squared minus one is t minus one, times t plus one, with two distinct roots. So A is diagonalisable.
Restrictions, and a summary
One more consequence, using the invariant subspaces of lecture forty two. Let T be diagonalisable, and let U be a nonzero subspace that T maps into itself. On U, every polynomial in T acts as the same polynomial in the restriction of T to U. So mu T annihilates the restriction, and the minimal polynomial of the restriction divides mu T. A monic divisor of a product of distinct linear factors is again such a product. So the restriction of T to U is diagonalisable too. With eigenvectors alone, this would be awkward: a basis of eigenvectors of V need not contain a single vector of U. For the identity map on R two, the basis e one, e two, misses the invariant line through the vector (one, one).
Let's sum up. The characteristic polynomial and the minimal polynomial have the same roots, the eigenvalues, and the minimal polynomial divides the characteristic polynomial. The characteristic polynomial records the multiplicities. The minimal polynomial decides diagonalisability: A is diagonalisable exactly when mu A is a product of distinct linear factors. Before the next lecture, read section nine point four of the course book, try the problems on sheet eleven about the minimal polynomial, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we bring back geometry: lengths and angles in general vector spaces, through inner products. 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 degree of the minimal polynomial , and its constant term .
Hint 1 of 2
The roots of are the eigenvalues of (Theorem 9.4.6), here and , and divides (Corollary 9.4.5). Try the smallest candidate first.
Hint 2 of 2
The smallest monic candidate with both roots is . Compute : both factors are diagonal, so multiply the diagonals entry by entry.
Worked solution
- is diagonal, so and the eigenvalues are and . By Theorem 9.4.6 both are roots of , and by Corollary 9.4.5 divides . So is or .
- and . Their product is .
- So : degree , and .
- Question 2 of 3 Core
Let , with . Find the entry in row , column of . Then find the degree of , and decide whether is diagonalisable.
Hint 1 of 2
The entry in row , column of a product is the first row of the left factor times the third column of the right factor. Write out and first.
Hint 2 of 2
The first row of is and the third column of is . If the product is not , then is not , and Theorem 9.4.9 decides the last question.
Worked solution
- and .
- The first row of times the third column of : . So .
- The roots of are and (Theorem 9.4.6) and divides , so is or . The first does not annihilate , so , of degree .
- has the repeated factor , so by Theorem 9.4.9 is not diagonalisable. (Corollary 9.4.10 says the same in one line: splits with distinct roots and , and .)
- Question 3 of 3 Stretch
A real matrix satisfies , and is neither nor . Write and find and . Is diagonalisable?
Hint 1 of 2
says that annihilates . So divides (Theorem 9.4.2). Factor .
Hint 2 of 2
. Its monic divisors are , and (Proposition 9.4.13). Which of them can be when ?
Worked solution
- , so annihilates , and divides (Theorem 9.4.2).
- , a product of distinct linear factors. By Proposition 9.4.13, is , or .
- would mean , that is , and would mean . Both are excluded, so : and .
- is a product of distinct linear factors, so is diagonalisable by Theorem 9.4.9. For example, fits.
How did it go?