Chapter 7. Eigenvalues and diagonalization
An eigenvector is a nonzero vector that a linear map sends to a scalar multiple of itself. The characteristic polynomial detects the possible scalars. When eigenvectors form a basis, the map has a diagonal matrix in that basis.
Throughout this chapter, is finite-dimensional and is or . The choice of scalar field matters both for the existence of eigenvalues and for diagonalization.
7.1 Eigenvalues and eigenspaces
The determinant detects when an endomorphism loses an input direction. To find directions on which acts by scalar multiplication, we apply that test to . Its kernel will collect the vectors satisfying the eigenvector equation.
Definition 7.1.1. Let be linear. A scalar is an eigenvalue of if there exists such that
Such a nonzero vector is an eigenvector for .
The identity map allows us to subtract scalar multiplication from . Since ,
The requirement forces to be singular, meaning that it has no inverse.
Proof. Let satisfy . Suppose, for a contradiction, that is not singular. It then has an inverse, with
Applying this inverse to gives
The inverse is linear by Proposition 3.3.6, so it sends the zero vector to the zero vector. This contradicts . Therefore is singular. ◻
Conversely, if is singular, the finite-dimensional endomorphism criteria in § 4.3 give a nonzero vector in its kernel. The displayed equivalences then show that this vector is an eigenvector of with eigenvalue .
Thus Theorem 6.3.3 gives
Definition 7.1.2. The eigenspace associated with is
An eigenspace includes the zero vector, while an eigenvector must be nonzero. In particular, . A nonzero scalar multiple of an eigenvector is another eigenvector for the same eigenvalue.
Proposition 7.1.3 (Eigenspaces are subspaces). Every eigenspace is a subspace of . If is an eigenvalue, then .
Proof. The zero vector belongs to . For and ,
Hence . For an eigenvalue, the eigenspace contains a nonzero vector, so its dimension is positive. ◻
Proposition 7.1.4 (Intersection of distinct eigenspaces). If are distinct eigenvalues of , then
Proof. If belongs to both eigenspaces, then and . Subtracting gives . Since the scalar is nonzero, . ◻
Exercise 7.1.5
Suppose, for a matrix , is an eigenvector for the eigenvalue and is an eigenvector for the eigenvalue . What are the necessary and sufficient conditions that be an eigenvector of and what is its eigenvalue?
Matrices and coordinates
For , a nonzero column is an eigenvector with eigenvalue if . The eigenspace is , and the eigenvalue criterion is .
Let be an ordered basis and let . For ,
On the other hand, . Uniqueness of coordinates therefore gives
Thus a nonzero vector is an eigenvector of precisely when its coordinate column is an eigenvector of the representing matrix.
A motivating quotient
For a real matrix and a nonzero vector , the quotient
compares a quadratic expression with the squared length of . The associated optimization problem is to consider
7.2 Characteristic polynomials and similarity
Characteristic polynomials
Definition 7.2.1. The characteristic polynomial of is
For an endomorphism , its characteristic polynomial is .
Let denote the entry in row , column of the identity matrix,
The permutation formula gives
The term of degree is obtained by selecting from every diagonal position. Thus this is a polynomial of degree with leading term . Setting gives its constant term, . Its roots in the scalar field are exactly the eigenvalues of .
There is also a direct expansion for . Normalize a top-degree form on a basis . Then
For , multilinearity gives the expansion
In the sum displayed here, only the -th input is replaced by . The coefficient of is
where only the -th input is acted on by . Since , the leading coefficient is . Thus
If , then , so Proposition 6.2.2 gives
Changing the basis
Changing coordinates changes the entries of a representing matrix, but the equation concerns the map and vector themselves. The change-of-basis formula identifies how this equation is expressed in two coordinate systems.
Suppose are bases with , and write , . Then
and hence . For , the coordinate columns satisfy and .
Definition 7.2.2. Two square matrices are similar if there exists an invertible matrix such that
Proposition 7.2.3 (Invariants under similarity). Similar matrices have the same determinant and characteristic polynomial. If , then is an eigenvector of for if and only if is an eigenvector of for .
Proof. Multiplicativity gives
Also , so
Finally, gives
Since is invertible, if and only if . ◻
For , this gives an isomorphism of kernels. Its two directions are shown in Figure 7.1,
Example 7.2.4. The converse to characteristic-polynomial invariance fails. Let
Both characteristic polynomials are , but
Their kernels have different dimensions, so they cannot be similar.
7.3 Computing eigenvalues and eigenspaces
The calculation has two stages. First solve for the eigenvalues in the chosen scalar field. For each such value, solve the homogeneous system . Its full solution space is the eigenspace, and its nonzero solutions are the eigenvectors.
Diagonal and triangular matrices
Example 7.3.1. For
the standard basis vectors satisfy , , and . The characteristic polynomial is
Thus the eigenvalues are the diagonal entries.
A triangular matrix also has its diagonal entries as eigenvalues, since subtracting preserves triangularity. For instance,
Here , so is an eigenvector for . Finding eigenvectors for and requires solving the corresponding kernel equations. In general, for triangular ,
Exercise 7.3.2
Find all eigenvectors of the matrix
Exercise 7.3.3
Let be a basis of and be the map given by
Find the eigenvectors of by solving
where
directly for .
A matrix that interchanges coordinates
Example 7.3.4. Let
Its characteristic polynomial is . Row reduction gives
If , the matrix reduces to the identity and its kernel is zero. If , the kernel equation is , giving
If , the equation is , giving
The nonzero vectors in these spaces are the eigenvectors. Over , their two directions appear in Figure 7.2.
A matrix with no real eigenvalue
Example 7.3.5. Consider
Its characteristic polynomial is , and
For real , the last diagonal entry is strictly negative, so the kernel is zero. Thus has no real eigenvalues. Over , the roots of are and . Geometrically, makes a counterclockwise quarter-turn in the real plane, as in Figure 7.3.
7.4 Complex eigenvalues
Complex arithmetic
The quarter-turn has no eigenvalue over , but its characteristic polynomial has roots over . We recall the arithmetic needed to solve its kernel equations with complex coordinates.
A complex number has the form , with and . Its real and imaginary parts are and , respectively.
Powers of repeat with period four,
The conjugate of is , and its modulus is the nonnegative number satisfying
For ,
More generally, division by can be written as .
Figure 7.4 identifies with the point and its conjugate with .
Returning to the rotation example
Regard the real matrix from Example 7.3.5 as a matrix acting on . For , its kernel equations give
For , they give . Consequently,
In each case, the eigenvectors are obtained by taking .
Exercise 7.4.1
For any , the real matrix
is called a rotation matrix, because it rotates each vector counterclockwise by the angle . Compute the (possibly complex) eigenvalues and eigenvectors of .
Roots and multiplicities
Theorem 7.4.2 (Fundamental theorem of algebra). Every complex polynomial of degree ,
factors as
where , with repetitions allowed.
The proof uses elementary real-analysis facts. Polynomials and their moduli are continuous, and a continuous real-valued function on a closed bounded disc in attains its minimum. We also use the polar description of a nonzero complex number and the trigonometric angle-addition formulas.
Proof. We first prove that every nonconstant complex polynomial has a root. Write . For , the triangle inequality gives
If also , then
Consequently, tends to infinity as tends to infinity. Choose large enough that whenever . On the closed disc , continuity gives a point where attains its minimum. This minimum is at most , so no point outside the disc has a smaller value. Thus is a global minimum of .
Suppose . Expanding the polynomial around and dividing by , write
where is the first index with . Such an index exists because is not constant. Set , and write . The unit complex number
satisfies . Indeed, repeated multiplication and the angle-addition formulas give .
Put , taking if the sum is empty. For , the remaining terms satisfy
Choose so small that , , and . These conditions can be met because and is a fixed nonnegative number. The first nonconstant term is now a negative real number, and the remainder is too small to cancel its decrease. More precisely,
Hence , contradicting the global minimality of . Therefore , proving that a root exists.
Let be a root. The identity
shows that is divisible by . The quotient has degree and leading coefficient . If it is nonconstant, apply the root argument to the quotient and factor again. Repeating reduces the degree by one at each step and leaves the constant . This gives
The same root may occur at more than one step, so repetitions are allowed. ◻
The characteristic polynomial of an -by- complex matrix therefore has roots counted with multiplicity. The multiplicity of is the number of factors equal to . The eigenvalues need not be distinct. Since the convention here is , its factorization has leading coefficient .
Example 7.4.3. For the identity matrix on ,
Its only eigenvalue is , with multiplicity two, and every nonzero vector is an eigenvector.
In contrast, let
It has the same characteristic polynomial, but
Hence
which has dimension one.
The different actions of and over are pictured in Figure 7.5. The matrix is the shear studied in § 2.1. Its columns describe the whole grid transformation, while its eigenspace identifies the vectors that the shear fixes.
Proposition 7.4.4 (Eigenspace dimension and root multiplicity). If is an eigenvalue of a complex matrix and has multiplicity in its characteristic polynomial, then
Proof. Let be the given -by- matrix, and write . Since is an eigenvalue, its eigenspace contains a nonzero vector, so . Choose a basis of this eigenspace and extend it to a basis of , using Proposition 1.2.6. The matrix in this new basis has the same characteristic polynomial as , since similarity preserves characteristic polynomials.
If , every vector of this basis is multiplied by . The representing matrix is , so its characteristic polynomial is . Thus .
Suppose . Since for , the matrix in the extended basis has the form
In the permutation expansion of from Equation 5.4, column has only one possibly nonzero entry, in row . Every contributing permutation must therefore fix those first indices. The remaining factors select one entry from each row and column of . Their permutation has the same sign as the full permutation, since a decomposition into transpositions of the last indices also decomposes the full permutation. Consequently,
The factor shows that has root multiplicity at least . Hence , as claimed. ◻
Exercise 7.4.5
True or false? Explain. If false, provide a counterexample.
-
3.1. If a matrix has one eigenvector, then it has infinitely many eigenvectors.
-
3.2. Every matrix over a field has at least one eigenvalue in .
-
3.3. Similar matrices always have the same eigenvectors.
-
3.4. If two matrices have the same eigenvalues, then they are similar.
7.5 Diagonalization
An eigenvector provides one direction on which a map acts by scaling. If enough such vectors form a basis, every input can be assembled from these directions, and the action becomes a separate scalar multiplication on each coordinate. Diagonalization expresses this choice of coordinates.
Definition 7.5.1. A square matrix is diagonalizable over if it is similar to a diagonal matrix. Equivalently, there exist an invertible matrix and a diagonal matrix such that
Theorem 7.5.2 (Diagonalization and eigenbases). A matrix is diagonalizable if and only if has a basis of eigenvectors of .
Proof. Suppose , where has diagonal entries . Let be column of . Since is invertible, its columns form a basis, and
Thus each column is an eigenvector.
Conversely, suppose is a basis of eigenvectors, with . Let have these basis vectors as columns, and let have the corresponding eigenvalues on its diagonal. The column equations say . Since is invertible, . ◻
The identity is visualized in Figure 7.6. If is an eigenbasis coordinate column, reconstructs the vector , while multiplies each coordinate by its eigenvalue.
Definition 7.5.3. An endomorphism is diagonalizable if has a basis of eigenvectors of .
For such a basis,
Equivalently, the matrix representing in any basis is similar to a diagonal matrix.
Failure of diagonalization
Example 7.5.4. Let be a basis of , and define
For , . The eigenvector equation is
If , comparison of coefficients gives and then , so there is no nonzero eigenvector. For , it gives . Thus the only eigenvalue is zero and its eigenspace is . It cannot provide a basis of , so is not diagonalizable.
The nonzero matrix in Example 7.2.4 similarly has only the eigenvalue zero and a one-dimensional eigenspace, so it is not diagonalizable. The rotation matrix in Example 7.3.5 is not diagonalizable over , since it has no real eigenvectors.
Exercise 7.5.5
A linear transformation is called nilpotent if for some positive integer , is the zero matrix. Prove that the only eigenvalue of is .
7.6 Direct sums and diagonalization criteria
Transversal subspaces
To assemble an eigenbasis, we must combine vectors from several eigenspaces without introducing a dependence. Direct sums express the corresponding idea for subspaces, requiring every vector to have a unique decomposition into components from the summands.
Suppose are subspaces of and . If , , and , then , so both vectors are zero.
Exercise 7.6.1
(10 points) Let be subspaces of such that
Prove directly that whenever and are nonzero vectors, the set is linearly independent.
For a family , write
This is the span of the subspaces together.
Definition 7.6.2. A family of subspaces is transversal if
The coordinate axes are transversal. In contrast, three distinct lines through zero in a plane are not transversal, as illustrated in Figure 7.7.
Proposition 7.6.3 (Uniqueness of components). Let be transversal, with . If , then every . Consequently, if also and , then for every .
Proof. Isolate the last component in the zero relation. It satisfies
Hence . Repeating with the remaining components gives .
For two equal sums, subtract them. Each belongs to , and their sum is zero. The first conclusion gives for every . ◻
Definition 7.6.4. If are transversal and , then is their direct sum, written
The spanning condition guarantees that each vector has a decomposition, and transversality guarantees that its components are unique. These are the existence and uniqueness roles played by spanning and independence for basis coordinates in § 1.2.
Combining bases
For two complementary lines in , each vector has one component on each line, as in Figure 7.8.
Proposition 7.6.5 (Bases of a direct sum). If , concatenating a basis of each gives a basis of . In particular,
Proof. Let be a basis of . Suppose a linear combination of all these vectors is zero,
Group the terms into vectors . Transversality gives . Since each group is a linear combination of a basis of , all its coefficients are zero. Thus the concatenated list is independent.
The subspaces together span , and the basis vectors in each group span its subspace. Hence the concatenated list spans . It is therefore a basis, with vectors. ◻
Transversality of distinct eigenspaces
Theorem 7.6.6 (Transversal eigenspaces). Let be distinct eigenvalues of . Their eigenspaces are transversal.
Proof. We show that a relation
forces every . The argument proceeds by induction on the number of eigenspaces. For one eigenspace, the relation already says .
Suppose the result holds for distinct eigenspaces. Apply to the relation and subtract times the original relation. Since , this gives
The -th term has disappeared. Each remaining vector still belongs to . By the induction hypothesis, all these vectors are zero. The scalars are nonzero, so for . The original relation now gives .
A vector in one eigenspace that is a sum of vectors in the others produces such a zero relation by moving all terms to one side. The result just proved forces that vector to be zero. This is transversality. ◻
Criteria for an eigenbasis
Theorem 7.6.7 (Spanning eigenspaces and diagonalization). If are eigenvalues of and
then is diagonalizable.
Proof. Keep one copy of each distinct eigenspace in the sum. By Theorem 7.6.6, these eigenspaces are transversal, so the spanning hypothesis gives a direct-sum decomposition of . Choose a basis in each eigenspace. By Proposition 7.6.5, their concatenation is a basis of . Every vector in this basis is an eigenvector. Thus is diagonalizable. ◻
The converse also holds. An endomorphism is diagonalizable exactly when its eigenspaces span .
Proof of the converse. Suppose is diagonalizable, and choose an eigenbasis of . Each belongs to the eigenspace of its eigenvalue. Every vector in is a linear combination of these basis vectors, so every vector belongs to the sum of those eigenspaces. The eigenspaces therefore span . ◻
Corollary 7.6.8 (Distinct eigenvalues and diagonalization). If and has distinct eigenvalues in , then is diagonalizable over . In particular, a two-by-two matrix with two distinct eigenvalues in is diagonalizable over .
Proof. If , the empty basis is already an eigenbasis. Suppose , and let be the distinct eigenvalues. Choose in each . If
then for every . By Theorem 7.6.6 and Proposition 7.6.3, every . Since , every . Thus is independent.
By Proposition 1.2.6, this list extends to a basis of . A basis of the -dimensional space has vectors, so no additional vectors are needed. The chosen list is an eigenbasis, and is diagonalizable over . Taking gives the two-by-two conclusion. ◻
The criterion does not require computing the dimensions of the individual eigenspaces. When the eigenspaces do not span the whole space, there is no eigenbasis. The nonzero nilpotent matrix in Example 7.2.4 is an example.
Approximation by diagonalizable matrices
Proposition 7.6.9 (Density of diagonalizable complex matrices). The matrices diagonalizable over are dense in .
Here density means that every complex matrix can be approximated arbitrarily closely, entry by entry, by matrices diagonalizable over .
Proof. The case has only the empty matrix, which is already diagonal. Suppose . We first show by induction that every complex -by- matrix is similar to an upper triangular matrix. The claim holds for . For , the characteristic polynomial has a root by Theorem 7.4.2, so has an eigenvalue and a nonzero eigenvector . Extend to a basis by Proposition 1.2.6, and let be its basis matrix. The first column of is , giving
The induction hypothesis gives an invertible such that is upper triangular. Set
Both factors are invertible, and block multiplication gives
This matrix is upper triangular, completing the induction.
Fix in this form, and let be an arbitrary prescribed error in each entry. The number
is finite and nonnegative. Put . Write the diagonal entries of as . Choose real numbers , each with , so that the numbers are all distinct. This can be done successively. At step , equality with one of the previous values forbids at most choices for . The candidates
all lie in , so at least one candidate is permitted.
Define
This is upper triangular with distinct diagonal entries. In the permutation expansion of , a nonzero term requires for every column . This forces , then , and successively for all . Thus only the identity permutation contributes, and the characteristic polynomial is . Thus has distinct eigenvalues. By Corollary 7.6.8, is diagonalizable. Therefore is also diagonalizable. Indeed, if , then .
Finally, . For every pair of indices,
Thus a diagonalizable complex matrix lies within every prescribed entrywise error of . This proves density. ◻