Lecture 8: Eigenvalues, Eigenvectors, and Diagonalization
These notes are interactive: click a section title to open it, click any dotted term to unfold its exact definition or statement in place, click ▸ Proof to expand a proof, and try the exercises — answers are checked instantly.
8.1 Eigenvalues and eigenvectors
A linear map can rotate, shear and stretch vectors in complicated ways, but often there are special directions that it does not turn at all: a vector in such a direction is only stretched, shrunk or flipped. These are the eigenvectors, and the stretching factors are the eigenvalues. Lecture 7 already met them: the reflection across a line keeps the vectors on the line and reverses those perpendicular to it, and the matrix stretches one direction by and another by . In a basis of such directions the matrix of the map becomes diagonal, which is the goal of Section 3. This section sets up the definitions and proves the key structural fact: eigenvectors belonging to different eigenvalues are always independent.
Let be an matrix. A real number is an eigenvalue of if there is a nonzero vector with Such an is called an eigenvector of belonging to (or corresponding to) .
An eigenvector must be nonzero: holds for every , so allowing would make every number an eigenvalue. An eigenvalue, on the other hand, may be : is an eigenvalue exactly when has a nonzero solution. Also, only square matrices have eigenvalues, since and must lie in the same space. In this course the scalars are real numbers, so eigenvalues are real by definition; complex eigenvalues are discussed briefly in Section 2.
Let , the matrix of Lecture 7's example. For , and , So is an eigenvector belonging to the eigenvalue and is an eigenvector belonging to the eigenvalue . The vector is not an eigenvector: would need . Checking whether a given vector is an eigenvector takes one multiplication.
Let be an eigenvalue of the matrix . The eigenspace of for is the set of all eigenvectors belonging to together with the zero vector.
Let be an matrix and a number. Then if and only if . Consequently:
- is an eigenvalue of if and only if ;
- every eigenspace is a subspace of , and a basis of it is found by solving ;
- is an eigenvalue of if and only if is not invertible.
Since , the equation is the same as , that is, , by the distributive law of Lecture 4. Statement (1) is now the definition. For (2), is a null space, hence a subspace by Lecture 6, and Lecture 7 gives a basis. For (3), take : is an eigenvalue if and only if , which by the invertibility theorem means that is not invertible.
□Let . Is an eigenvalue? Is ?
For , , and gives : one pivot and one free variable. The solutions of are , so So is an eigenvalue and is a line. For , , and gives : two pivots, so and is not an eigenvalue.
Sometimes eigenvectors can be seen without any computation.
- A reflection. The reflection across the line spanned by , with standard matrix found in Lecture 7, fixes every vector of and reverses every vector perpendicular to . So is an eigenvalue with , and is an eigenvalue with , . Every other vector is turned off its line.
- A projection. The map , with matrix , keeps and kills : the eigenvalues are and , with and .
- A rotation. The matrix sends to ; it is the rotation by clockwise, in the notation of Lecture 3. It turns every nonzero vector, so it should have no eigenvector. Indeed, says and , hence , that is, . Since , we get and then . So has no (real) eigenvalue at all.
Let be a vector space and a linear map. A number is an eigenvalue of if for some nonzero , and such a is an eigenvector of belonging to . The eigenspace is the kernel of the linear map , hence a subspace of . For on these are the eigenvalues, eigenvectors and eigenspaces of .
Recall that is the space of polynomials of degree at most .
- Differentiation , . Suppose with , and let be the degree of . If , then has degree , while is or has degree ; this is impossible. So and , which means that is constant. Hence is the only eigenvalue of , and is the set of constant polynomials.
- A substitution , , which is linear for the same reason as the shift in Lecture 7's exercises. Substituting twice gives back : . If with , then , so and . Both occur: The eigenvectors for are the polynomials symmetric about , and those for are the antisymmetric ones.
On the space of functions that can be differentiated any number of times (a subspace of the function space of Lecture 6), differentiation is linear, and : every real number is an eigenvalue, with eigenvector . This is why exponentials appear whenever one solves linear differential equations. The space here is not finite-dimensional, so it lies outside the theory of this lecture, but the definition applies unchanged.
Let be linear, let be a basis of , and let , the matrix of under the basis . Then for every and every number , Hence and have the same eigenvalues, and is an eigenvector of if and only if its coordinate vector is an eigenvector of , for the same eigenvalue.
By Lecture 7, , and by Lecture 6, . Two vectors of are equal if and only if their coordinate vectors are equal (unique representation), so if and only if . Finally, if and only if .
□If is another basis of , then has the same eigenvalues as , and therefore the same eigenvalues as , although the two matrices may look very different. This is consistent with Lecture 7: with , and Section 2 shows directly that similar matrices have the same eigenvalues. The eigenvectors do change: the coordinate vectors of one eigenvector are related by .
Let with . Then for every . If moreover is invertible, then and .
, and so on by induction. If is invertible, by part (3) of the proposition; multiplying by gives .
□Let be linear (in particular on ), and let be eigenvectors of belonging to distinct eigenvalues . Then are linearly independent.
Induction on . For the claim holds because an eigenvector is nonzero. Let and assume the claim for eigenvectors. Suppose Applying , which is linear, gives Subtracting times (1) from (2) removes the last term: By the induction hypothesis are independent, so for . The eigenvalues are distinct, so and for . Then (1) reads , and since .
□An matrix, or a linear map on an -dimensional space, has at most distinct eigenvalues.
One eigenvector for each distinct eigenvalue gives an independent list, by the theorem, and an independent list in an -dimensional space has at most vectors, by Lecture 6.
□Let . The vector is an eigenvector of . For which eigenvalue?
Compute and compare with .
Let . What is the dimension of the eigenspace ?
has rank ; use the rank theorem.
What are the eigenvalues of the map , ?
It keeps and sends to ; compare the projection in the example.
8.2 The characteristic equation
Section 1 could test a given number , but how do we find the eigenvalues in the first place? The test was whether has a nonzero null space, that is, whether fails to be invertible, and Lecture 5 turned invertibility into a single number, the determinant. So the eigenvalues are the roots of the equation , whose left side is a polynomial in of degree . Finding eigenvalues becomes finding roots of a polynomial; finding eigenvectors is then row reduction, as before.
A number is an eigenvalue of the matrix if and only if
By the proposition of Section 1, is an eigenvalue if and only if , if and only if is not invertible, by the invertibility theorem, if and only if , by Lecture 5.
□The characteristic polynomial of an matrix is , and is its characteristic equation. Here is a variable: the determinant of is computed by the expansion formula of Lecture 5, which uses only sums and products of the entries and so makes sense when the entries are polynomials in . Substituting a number for gives the determinant of the corresponding numerical matrix.
For , The coefficient of is minus the trace , the sum of the diagonal entries, and the constant term is . For instance, of the earlier example has and , so and the eigenvalues are and . We found before; for , , whose null space is spanned by . Check:
The characteristic polynomial of an matrix has degree . Indeed, expanding completely, as was done for matrices in Lecture 5, gives a sum of terms, each a product of entries taken from different rows and different columns. Only the diagonal entries contain , and only one term, the product of all of them, has degree ; every other term leaves out at least two diagonal entries and has degree at most . Hence where is the trace of (the terms of degree also come only from the diagonal product). The constant term is , by setting : .
Let be an eigenvalue of . Its multiplicity (also called algebraic multiplicity) is the largest integer such that divides . The dimension of is sometimes called the geometric multiplicity of .
An matrix has at most eigenvalues, even when each is counted as many times as its multiplicity. If is a product of linear factors, with the eigenvalues listed according to multiplicity, then
The multiplicities of the distinct roots of a polynomial of degree add up to at most . If is the displayed product, multiplying out shows that the coefficient of is and the constant term is ; compare with the remark on the degree of .
□The eigenvalues of a triangular matrix are its diagonal entries, and the multiplicity of an eigenvalue is the number of times it occurs on the diagonal.
If is triangular, so is , with diagonal entries . By Lecture 5, .
□If , then , so and have the same eigenvalues with the same multiplicities. Moreover if and only if , so carries each eigenspace of onto the eigenspace of for the same eigenvalue, and the two eigenspaces have the same dimension.
By part (3) of Lecture 7's theorem, for every number ; two polynomials that agree at infinitely many numbers are equal (their difference has infinitely many roots), so as polynomials. Next, means ; multiplying by on the left gives , and multiplying that by returns the first equation. Since is invertible, the map is a bijective linear map, so it carries a basis of the eigenspace of to a basis of the eigenspace of .
□To find the eigenvalues and eigenvectors of : (1) compute , using row and column operations or cofactor expansions as in Lecture 5, and try to keep it factored; (2) find its real roots, the eigenvalues; (3) for each eigenvalue , solve by row reduction; the parametric vector form gives a basis of .
Warning. Row operations on itself change the eigenvalues. For example has and eigenvalues and , while its echelon form is triangular with eigenvalues and . Row reduction is used on , after has been fixed, never on .
Let Characteristic polynomial. Adding row to row does not change the determinant (Lecture 5) and produces a common factor in row : where the last step subtracts column from column (columns behave like rows). Expanding along column , So the eigenvalues are (multiplicity ) and (multiplicity ). As a check, .
Eigenvectors for . Row reduction gives which is the reduced echelon form. The free variable is , and the two nonzero rows give , . In parametric vector form,
Eigenvectors for . Row reduction gives the reduced echelon form, with one pivot (in column ). The free variables are and , and the first row gives . In parametric vector form, so The eigenvalue has multiplicity and a -dimensional eigenspace (a plane), while has multiplicity and a line.
For the rotation of the geometric example, , which has no real root. This confirms that has no eigenvalues.
Let denote the imaginary number with . The complex numbers are the numbers of the form with ; their set is denoted , and if and only if and . Like , the complex numbers form a field: one can add, subtract and multiply them, using . For example, In particular, , which is if and only if . Therefore each nonzero has the inverse
Over the complex numbers, , so the rotation of the example has the complex eigenvalues and . Their eigenvectors lie in : since , the vector is an eigenvector for , and since , the vector is an eigenvector for . By the fundamental theorem of algebra every polynomial splits into linear factors over , so every square matrix has complex eigenvalues. In this course the scalars are real, and “eigenvalue” means a real eigenvalue.
By the theorem of Section 1, the eigenvalues of a linear map can be computed from any of its matrices , and by the proposition the characteristic polynomial does not depend on the basis; it is called the characteristic polynomial of . Consider the substitution on of the polynomial example, with the standard basis . Since we can write all three equations at once as where, as in the row-times-column product, column of holds the weights that express the -th polynomial of in terms of ; for example column says . So the columns of are the coordinate vectors , , , as in Lecture 7.
is triangular, so by the theorem : the eigenvalue has multiplicity and has multiplicity . By the theorem of Section 1, the eigenvectors of are the polynomials whose coordinate vectors solve .
The eigenvalue . Row reduction gives the reduced echelon form, with its pivot in column . The free variables are and , and the first row gives . In parametric vector form, These coordinate vectors belong to the polynomials and , so the eigenspace of for is .
The eigenvalue . Row reduction gives the reduced echelon form, with pivots in columns and . The free variable is , and the rows give , . In parametric vector form, Taking gives the coordinate vector , the polynomial , so the eigenspace of for is . These are the eigenvectors found by hand in the polynomial example.
A matrix has trace and determinant . What is its larger eigenvalue?
By the case, .
What is the largest eigenvalue of ?
.
What is the multiplicity of the eigenvalue of ?
The matrix is triangular; count the diagonal entries equal to (the theorem).
8.3 Diagonalization
A diagonal matrix is the simplest kind of matrix: it stretches each coordinate axis by its own factor, and its powers are computed entry by entry. A matrix is diagonalizable if, after a change of basis, it becomes diagonal; by Lecture 7 this means . The columns of then have to be eigenvectors, so the question is whether there are enough independent eigenvectors to make a basis. The answer is a counting criterion: add up the dimensions of the eigenspaces and compare with . Two things can go wrong, and the examples at the end show both: the characteristic polynomial may have too few real roots, and an eigenspace may be smaller than the multiplicity of its eigenvalue.
An matrix is diagonalizable if it is similar to a diagonal matrix, that is, if , or equivalently , for some invertible matrix and some diagonal matrix . A linear map is diagonalizable if has a basis for which is diagonal.
An matrix is diagonalizable if and only if has linearly independent eigenvectors, that is, if and only if has a basis consisting of eigenvectors of . More precisely, for an invertible and a diagonal , So the columns of are eigenvectors, and the diagonal entries of are the corresponding eigenvalues, in the same order.
is equivalent to (multiply on the right by , or by ). Compare the two sides column by column. Write where are the standard unit vectors of , so that column of is . Column of is , and column of is times column of , that is, . So if and only if for all . If is diagonalizable, the columns of the invertible matrix are therefore eigenvectors, and they are independent by the invertibility theorem. Conversely, if are independent eigenvectors, the matrix with these columns is invertible by the same theorem, and .
□In the language of Lecture 7: if is a basis of eigenvectors and , then is the matrix of the same map in the eigenvector basis, and . In coordinates relative to the map just multiplies the -th coordinate by . Likewise, a linear map is diagonalizable exactly when has a basis of eigenvectors of , and then ; by the theorem of Section 1 and Lecture 7, this happens if and only if one (equivalently, every) matrix of is diagonalizable.
An matrix with distinct eigenvalues is diagonalizable.
One eigenvector for each eigenvalue gives eigenvectors, which are independent by the theorem of Section 1; apply the diagonalization theorem.
□The identity has the single eigenvalue , of multiplicity , and it is diagonal. Repeated eigenvalues do not prevent diagonalization; what matters is the size of the eigenspaces, as the next two results show.
Let be distinct eigenvalues of (or of a linear map ), and choose a basis of each eigenspace . Then all these vectors together form a linearly independent list.
Suppose a linear combination of the vectors in the bases of the eigenspaces, taken all together, is equal to , and let be the part of it that uses the basis vectors of . Then and . If some were nonzero, the nonzero ones would be eigenvectors for distinct eigenvalues with sum , a nontrivial relation among them, contradicting the theorem of Section 1. So every , and since the vectors used in form a basis of , all their coefficients are .
□If is an eigenvalue of with multiplicity , then .
contains an eigenvector, so its dimension is at least . Suppose has rank ; then by the rank theorem, and we must show . Row reduce to an echelon form: by Lecture 4 there is an invertible matrix , a product of elementary matrices, such that is in echelon form. It has pivots, so its last rows are zero.
Now consider , whose entries are polynomials in of degree at most . Substituting gives , so every entry in the last rows of vanishes at . We use one fact about polynomials: divides a polynomial if and only if . Hence every entry of these rows is divisible by . Since the determinant is linear in each row (Lecture 5), the factor can be taken out of each of these rows: for some polynomial . On the other hand, by the product rule, with . So divides , and by the definition of multiplicity.
□Let be an matrix with distinct eigenvalues , of multiplicities . The following are equivalent.
- is diagonalizable.
- The dimensions of the eigenspaces add up to :
- is a product of real linear factors, and for every .
Write .
(1) (2). By the diagonalization theorem there is a basis of consisting of eigenvectors. Each of them lies in some , and those lying in are independent, so there are at most of them (Lecture 6). Hence . On the other hand, the combined bases of the eigenspaces form an independent list of vectors in , by the lemma, so .
(2) (1). The combined bases give independent eigenvectors, by the lemma; apply the diagonalization theorem.
(2) (3). By the definition of multiplicity, for a polynomial with for all ; since every real root of is one of the , has no real roots, and comparing degrees, . Using the theorem, So if and only if both inequalities are equalities, that is, for every (each ) and ; in the latter case is the constant , the leading coefficient of (the remark on the degree), which is statement (3).
□(1) Find the eigenvalues from . If has fewer than real roots counted with multiplicity, stop: is not diagonalizable. (2) For each eigenvalue find a basis of . An eigenvalue of multiplicity always has , by the theorem, so only repeated eigenvalues need checking. (3) If equals the multiplicity for every , let have the basis vectors as columns and the corresponding eigenvalues on the diagonal. (4) Check , which avoids computing .
Return to of Section 2. The eigenvalue has multiplicity and ; the eigenvalue has multiplicity and . So and is diagonalizable by the criterion, with Check: since multiplying by on the right scales its columns by . Here and The order of the columns may be changed, as long as is changed in the same way; for instance goes with .
Powers. By part (4) of Lecture 7's theorem, with , . Multiplying out, For this is itself, and for , , it gives which agrees with a direct multiplication.
Let Characteristic polynomial. Column of has a single nonzero entry, in position ; expanding along it, and then along column of the remaining matrix, The eigenvalues are (multiplicity ), and ; check: .
Eigenspaces. For , row reduction gives the reduced echelon form, with pivots in columns and . So , and the free variables are and . In parametric vector form, so and , equal to the multiplicity of . The eigenvalues and have multiplicity , so their eigenspaces are lines. For the equations are (the first row appears twice), with solution , , . For they are , , , with solution , , . Taking and , Diagonalization. The dimensions add up to , so One checks column by column; for example the last column of is .
For the substitution on , the computation in Section 2 found the eigenvalue with multiplicity and eigenspace spanned by and , and the eigenvalue with eigenspace spanned by . The dimensions add up to , so is diagonalizable: for the basis of , In this basis it is clear that is the identity.
The rotation is not diagonalizable: it has no eigenvalues at all (Section 2), let alone two independent eigenvectors. Geometrically, a diagonal matrix keeps the two coordinate directions of some basis, while a rotation by keeps no direction. (Over the complex numbers it is diagonalizable, with ; see the remark.)
Let be an triangular matrix whose diagonal entries are all equal to . Then is diagonalizable if and only if .
By the theorem on triangular matrices, is the only eigenvalue of . If with diagonal, the diagonal entries of are eigenvalues of , by the diagonalization theorem, so and . Conversely, is diagonal.
□The matrix is upper triangular with constant diagonal and , so it is not diagonalizable, by the proposition. The criterion shows the same thing by counting: , so has multiplicity , while has rank (swapping rows and gives an echelon form with pivots in columns , , ), so ; indeed . The same reasoning shows that every nonzero strictly upper triangular matrix (zero diagonal) is not diagonalizable.
Let which differ only in two entries of row . Both are triangular with diagonal , so both have characteristic polynomial : the eigenvalue has multiplicity and the eigenvalue has multiplicity .
The eigenvalue . In both and the first two columns are zero, so the rank is at most ; and rows , , form an upper triangular block with diagonal entries in columns , , , so these rows are independent and the rank is exactly . Hence , with basis . This eigenvalue causes no trouble.
The eigenvalue . Here both already in echelon form. has three pivots, so , and is not diagonalizable: the dimensions add up to . Its eigenspace is spanned by and (free variables and ). On the other hand has two pivots, so , the dimensions add up to , and is diagonalizable. With free variables , The diagonal of a triangular matrix gives the eigenvalues and their multiplicities, but not the dimensions of the eigenspaces; those depend on the entries above the diagonal.
For , differentiation is not diagonalizable. Its only eigenvalue is , with the constants (Section 1), so the dimensions of the eigenspaces add up to . In matrix terms, for the standard basis is strictly upper triangular and nonzero, as in Lecture 7. Similarly, the matrix of Lecture 7's remark is not diagonalizable, by the proposition.
For , what is the entry of ?
Use the formula for in the example, with .
For which value of is diagonalizable?
Which matrix is diagonalizable?
Two distinct eigenvalues suffice (the corollary). The second has a constant diagonal and is not ; the third has characteristic polynomial .
A matrix has characteristic polynomial , and . What must be for the matrix to be diagonalizable?
The criterion: the dimensions must add up to .
Diagonalization turns powers into powers of numbers, which is the key to linear recurrences and to systems that evolve step by step, : in an eigenvector basis each coordinate is simply multiplied by its eigenvalue at every step. The two obstacles met in this section, eigenvalues that are not real and eigenspaces that are too small, never occur for symmetric matrices (); proving this requires the inner product, which is still to come.
Index of statements
- Definition 8.1 (Eigenvalue and eigenvector of a matrix)
- Remark 8.2 (Two points in the definition)
- Example 8.3 (Checking a vector)
- Definition 8.4 (Eigenspace)
- Proposition 8.5 (Eigenvalues through the null space)
- Example 8.6 (Is a given number an eigenvalue?)
- Example 8.7 (Eigenvectors from geometry)
- Definition 8.8 (Eigenvalue and eigenvector of a linear map)
- Example 8.9 (Eigenvectors of maps on polynomials)
- Remark 8.10 (Exponential functions)
- Theorem 8.11 (Eigenvalues of a map and of its matrix)
- Remark 8.12 (Different bases, one set of eigenvalues)
- Proposition 8.13 (Powers and inverses)
- Theorem 8.14 (Eigenvectors for distinct eigenvalues are independent)
- Corollary 8.15 (At most eigenvalues)
- Theorem 8.16 (Eigenvalues are the roots of a determinant)
- Definition 8.17 (Characteristic polynomial and equation)
- Example 8.18 (The case)
- Remark 8.19 (The degree of )
- Definition 8.20 (Multiplicity of an eigenvalue)
- Corollary 8.21 (Counting eigenvalues)
- Theorem 8.22 (Triangular matrices)
- Proposition 8.23 (Similar matrices have the same eigenvalues)
- Remark 8.24 (The procedure, and a warning)
- Example 8.25 (A matrix with a repeated eigenvalue)
- Example 8.26 (No real eigenvalues)
- Remark 8.27 (Complex numbers and complex eigenvalues)
- Example 8.28 (The characteristic polynomial of a linear map)
- Definition 8.29 (Diagonalizable)
- Theorem 8.30 (The diagonalization theorem)
- Remark 8.31 (The meaning of and )
- Corollary 8.32 (Distinct eigenvalues suffice)
- Remark 8.33 (The condition is not necessary)
- Lemma 8.34 (Bases of eigenspaces combine)
- Theorem 8.35 (Eigenspace dimension is at most the multiplicity)
- Theorem 8.36 (The criterion for diagonalization)
- Remark 8.37 (How to diagonalize)
- Example 8.38 (Diagonalizing the matrix)
- Example 8.39 (A matrix)
- Example 8.40 (Diagonalizing a linear map)
- Example 8.41 (Non-example: a rotation)
- Proposition 8.42 (Triangular with a constant diagonal)
- Example 8.43 (Non-example: a matrix with one eigenvalue)
- Example 8.44 (Two matrices with the same diagonal)
- Example 8.45 (Non-example: differentiation)
- Remark 8.46 (Looking ahead)