Skip to main content

Section6.4Diagonalization

Objectives
  1. Learn two main criteria for a matrix to be diagonalizable.
  2. Develop a library of examples of matrices that are and are not diagonalizable.
  3. Understand what diagonalizability and multiplicity have to say about similarity.
  4. Recipes: diagonalize a matrix, quickly compute powers of a matrix by diagonalization.
  5. Pictures: the geometry of diagonal matrices, why a shear is not diagonalizable.
  6. Theorem: the diagonalization theorem (two variants).
  7. Vocabulary: diagonalizable, algebraic multiplicity, geometric multiplicity.

Diagonal matrices are the easiest kind of matrices to understand: they just scale the coordinate directions by their diagonal entries. In Section 6.3, we saw that similar matrices behave in the same way, with respect to different coordinate systems. Therefore, if a matrix is similar to a diagonal matrix, it is also relatively easy to understand. This section is devoted to the question: “When is a matrix similar to a diagonal matrix?”

Subsection6.4.1Diagonalizability

Before answering the above question, first we give it a name.

Definition

An n×n matrix A is diagonalizable if it is similar to a diagonal matrix: that is, if there exists an invertible n×n matrix C and a diagonal matrix D such that

A=CDC1.
Example

Any diagonal matrix is D is diagonalizable because it is similar to itself. For instance,

C100020003D=I3C100020003DI13.
Example

If a matrix A is diagonalizable, and if B is similar to A, then B is diagonalizable as well by this proposition in Section 6.3.

Powers of diagonalizable matrices

Multiplying diagonal matrices together just multiplies their diagonal entries:

Cx1000x2000x3DCy1000y2000y3D=Cx1y1000x2y2000x3y3D.

Therefore, it is easy to take powers of a diagonal matrix:

Cx000y000zDn=Cxn000yn000znD.

By this fact in Section 6.3, if A=CDC1 then An=CDnC1, so it is also easy to take powers of diagonalizable matrices. This will be very important in applications to discrete dynamical systems in Section 7.3 and Section 7.4.

Recipe: Compute powers of a diagonalizable matrix

If A=CDC1, where D is a diagonal matrix, then An=CDnC1:

A=CCx000y000zDC1=An=CCxn000yn000znDC1.

The always holds for n0 and for all n, including n=1 (giving the inverse of A ), when all the diagonal entries of D are non-zero.

A fundamental question about a square matrix is whether or not it is diagonalizable. The following is the primary criterion for diagonalizability. It shows that diagonalizability is an eigenvalue problem.

Proof

By this fact in Section 6.1, if an n×n matrix A has n distinct eigenvalues λ1,λ2,...,λn, then a choice of corresponding eigenvectors v1,v2,...,vn is automatically linearly independent.

An n×n matrix with n distinct eigenvalues is diagonalizable.

Non-Uniqueness of Diagonalization

We saw in the above example that changing the order of the eigenvalues and eigenvectors produces a different diagonalization of the same matrix. There are generally many different ways to diagonalize a matrix, corresponding to different orderings of the eigenvalues of that matrix. The important thing is that the eigenvalues and eigenvectors have to be listed in the same order.

A=C|||v1v2v3|||DCλ1000λ2000λ3DC|||v1v2v3|||D1=C|||v3v2v1|||DCλ3000λ2000λ1DC|||v3v2v1|||D1.

There are other ways of finding different diagonalizations of the same matrix. For instance, you can scale one of the eigenvectors by a constant c:

A=C|||v1v2v3|||DCλ1000λ2000λ3DC|||v1v2v3|||D1=C|||cv1v2v3|||DCλ1000λ2000λ3DC|||cv1v2v3|||D1,

you can find a different basis entirely for an eigenspace of dimension at least 2, etc.

In the above example, the (non-invertible) matrix A=13A2424B is similar to the diagonal matrix D=A0002B. Since A is not invertible, zero is an eigenvalue by the invertible matrix theorem, so one of the diagonal entries of D is necessarily zero. Also see this example below.

Here is the procedure we used in the above examples.

Recipe: Diagonalization

Let A be an n×n matrix. To diagonalize A:

  1. Find the eigenvalues of A using the characteristic polynomial.
  2. For each eigenvalue λ of A, compute a basis Bλ for the λ -eigenspace.
  3. If there are fewer than n total vectors in all of the eigenspace bases Bλ, then the matrix is not diagonalizable.
  4. Otherwise, the n vectors v1,v2,...,vn in the eigenspace bases are linearly independent, and A=CDC1 for
    C=C|||v1v2···vn|||DandD=EIIGλ10···00λ2···0............00···λnFJJH,
    where λi is the eigenvalue for vi.

We will justify the linear independence assertion in part 4 in the proof of this theorem below.

The following point is often a source of confusion.

Diagonalizability has nothing to do with invertibility

Of the following matrices, the first is diagonalizable and invertible, the second is diagonalizable but not invertible, the third is invertible but not diagonalizable, and the fourth is neither invertible nor diagonalizable, as the reader can verify:

K1001LK1000LK1101LK0100L.

Subsection6.4.2The Geometry of Diagonalizable Matrices

A diagonal matrix is easy to understand geometrically, as it just scales the coordinate axes:

C100020003DC100D=1·C100DC100020003DC010D=2·C010D
C100020003DC001D=3·C001D.

Therefore, we know from Section 6.3 that a diagonalizable matrix simply scales the “axes” with respect to a different coordinate system. Indeed, if v1,v2,...,vn are linearly independent eigenvectors of an n×n matrix A, then A scales the vi -direction by the eigenvalue λi.

In the following examples, we visualize the action of a diagonalizable matrix A in terms of its dynamics. In other words, we start with a collection of vectors (drawn as points), and we see where they move when we multiply them by A repeatedly.

Subsection6.4.3Algebraic and Geometric Multiplicity

In this subsection, we give a variant of the diagonalization theorem that provides another criterion for diagonalizability. It is stated in the language of multiplicities of eigenvalues.

In algebra, we define the multiplicity of a root λ0 of a polynomial f(λ) to be the number of factors of λλ0 that divide f(λ). For instance, in the polynomial

f(λ)=λ3+4λ25λ+2=(λ1)2(λ2),

the root λ0=2 has multiplicity 1, and the root λ0=1 has multiplicity 2.

Definition

Let A be an n×n matrix, and let λ be an eigenvalue of A.

  1. The algebraic multiplicity of λ is its multiplicity as a root of the characteristic polynomial of A.
  2. The geometric multiplicity of λ is the dimension of the λ -eigenspace.

Since the λ -eigenspace of A is Nul(AλIn), its dimension is the number of free variables in the system of equations (AλIn)x=0, i.e., the number of columns without pivots in the matrix AλIn.

We saw in the above examples that the algebraic and geometric multiplicities need not coincide. However, they do satisfy the following fundamental inequality, the proof of which is beyond the scope of this text.

In particular, if the algebraic multiplicity of λ is equal to 1, then so is the geometric multiplicity.

If A has an eigenvalue λ with algebraic multiplicity 1, then the λ -eigenspace is a line.

We can use the theorem to give another criterion for diagonalizability (in addition to the diagonalization theorem).

Proof

The first part of the third statement simply says that the characteristic polynomial of A factors completely into linear polynomials over the real numbers: in other words, there are no complex (non-real) roots. The second part of the third statement says in particular that for any diagonalizable matrix, the algebraic and geometric multiplicities coincide.

Let A be a square matrix and let λ be an eigenvalue of A. If the algebraic multiplicity of λ does not equal the geometric multiplicity, then A is not diagonalizable.

The examples at the beginning of this subsection illustrate the theorem. Here we give some general consequences for diagonalizability of 2×2 and 3×3 matrices.

Diagonalizability of 2×2 Matrices

Let A be a 2×2 matrix. There are four cases:

  1. A has two different eigenvalues. In this case, each eigenvalue has algebraic and geometric multiplicity equal to one. This implies A is diagonalizable. For example:
    A=K1702L.
  2. A has one eigenvalue λ of algebraic and geometric multiplicity 2. To say that the geometric multiplicity is 2 means that Nul(AλI2)=R2, i.e., that every vector in R2 is in the null space of AλI2. This implies that AλI2 is the zero matrix, so that A is the diagonal matrix λI2. In particular, A is diagonalizable. For example:
    A=K1001L.
  3. A has one eigenvalue λ of algebraic multiplicity 2 and geometric multiplicity 1. In this case, A is not diagonalizable, by part 3 of the theorem. For example, a shear:
    A=K1101L.
  4. A has no eigenvalues. This happens when the characteristic polynomial has no real roots. In particular, A is not diagonalizable. For example, a rotation:
    A=K1111L.
Similarity and multiplicity

Recall from this fact in Section 6.3 that similar matrices have the same eigenvalues. It turns out that both notions of multiplicity of an eigenvalue are preserved under similarity.

Proof

For instance, the four matrices in this example are not similar to each other, because the algebraic and/or geometric multiplicities of the eigenvalues do not match up. Or, combined with the above theorem, we see that a diagonalizable matrix cannot be similar to a non-diagonalizable one, because the algebraic and geometric multiplicities of such matrices cannot both coincide.

The converse of the theorem is false: there exist matrices whose eigenvalues have the same algebraic and geometric multiplicities, but which are not similar. See the example below. However, for 2×2 and 3×3 matrices whose characteristic polynomial has no complex (non-real) roots, the converse of the theorem is true. (We will handle the case of complex roots in Section 6.5.)

On the other hand, suppose that A and B are diagonalizable matrices with the same characteristic polynomial. Since the geometric multiplicities of the eigenvalues coincide with the algebraic multiplicities, which are the same for A and B, we conclude that there exist n linearly independent eigenvectors of each matrix, all of which have the same eigenvalues. This shows that A and B are both similar to the same diagonal matrix. Using the transitivity property of similar matrices, this shows:

Diagonalizable matrices are similar if and only if they have the same characteristic polynomial, or equivalently, the same eigenvalues with the same algebraic multiplicities.