Home page for accesible maths 4 Linear transformations

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.H Diagonalizable matrices

A diagonal matrix is the simplest kind of matrix. Here are some facts that justify such a strong statement: For diagonal matrices, (1) the eigenvalues are the entries along the diagonal, (2) the standard basis vectors are eigenvectors, (3) the determinant is the product of diagonal entries, (4) the rank is the number of non-zero entries on the diagonal, and (5) all diagonal matrices commute with each other (that is, AB=BA, if A and B are diagonal). In some statistical applications, diagonal matrices correspond to uncorrelated variables, which is the easiest situation to study. A diagonal adjacency matrix in graph theory corresponds to a completely disconnected graph.

If T:VV is a linear transformation, it is desirable to choose a basis of V for which the matrix [T] is diagonal. This is not always possible (hence the reason for most of Chapter 6), but when is it possible, we will call T diagonalizable.

Theorem 4.52 shows how the matrix of a linear transformation changes when we change the basis. We would like to think of the resulting matrices as being closely related to each other in some way; that is the purpose of the following terminology.

Definition 4.53:

Let A,BMn(F). We say that A is similar to B if there exists an invertible matrix PMn(F) such that A=P-1BP.

A matrix B is called diagonalizable if there exists a P such that P-1BP is a diagonal matrix.

[Aside: In fact, any invertible matrix can be thought of as a change of basis matrix for an appropriate choice of bases; so if two matrices are similar to each other, then they can always be visualized as representing the same linear transformation, but with a different choice of basis.]

An important special case of Theorem 4.52 is when one of the bases consists of eigenvectors, as has been the case in several of the examples we have already seen. We summarize this case as follows, and omit the proof (compare with Theorem 4.11):

Theorem 4.54.

Let AMn(F) be a square matrix. Let C=(e1,,en) be the standard basis of Fn.

  1. i.

    If is a basis of eigenvectors of A, and P:=[Id]𝒞, then P-1AP is diagonal.

  2. ii.

    If P-1AP is diagonal, then Pe1,,Pen is a basis of eigenvectors of A.

Note that Pei are the column vectors of the matrix P. The matrix P-1AP in part (i) is called a diagonalization of A.

Example 4.55.

Let A=[23-341-142-2]M3(R). Find a basis B of eigenvectors of A. Verify Theorem 4.54(i) in this case.

Solution: Firstly, one can check that the eigenvalues of A are λ=0,-1, and 2, and the eigenspaces are as follows:

  1. V0=span{[011]}

  2. V-1=span{[1-3-2]}

  3. V2=span{[122]}

Therefore, we can define a basis consisting of eigenvectors:

:=((0,1,1),(1,-3,-2),(1,2,2)).

To verify Theorem 4.54(i), first

P=[Id]𝒞=[0111-321-22],

, then compute

P-1=[-2-450-1111-1].

Then verify the matrix product is a diagonal matrix:

P-1AP=[0000-10002].
Example 4.56.
  1. i.

    Let A=[0-110]M2(), and prove that =((i,1),(-i,1)) is a basis of eigenvectors, and hence find a diagonalization of A .

    Solution: One checks that these basis vectors are eigenvectors as follows:

    1. [0-110][i1]=i[i1]

    2. [0-110][-i1]=-i[-i1]

    So let 𝒞 be the standard basis, and then we have

    1. P:=[Id]𝒞=[i-i11]

    2. P-1=12i[1i-1i]

    By Theorem 4.54, a diagonalization is

    P-1AP=12i[1i-1i][0-110][i-i11]=12i[-2002]=[i00-i].
  2. ii.

    Let A=[0-110]M2(). Prove A is not diagonalizable (F=).

    Solution: The matrix A has no real eigenvalues, and therefore it has no eigenvectors in 2. So by Theorem 4.54(ii), P-1AP can never be diagonal, and therefore A is not diagonalizable (when F=).

Exercise 4.57:

Using the basis =((3,-1),(-2,1)), and P from Exercise 4.51,

  1. i.

    Verify that consists of eigenvectors of A:=[-5-18310].

  2. ii.

    Verify, by matrix multiplication, that D:=P-1AP is a diagonal matrix.

  3. iii.

    Verify, by matrix multiplication, that A=PDP-1.

[End of Exercise]

Exercise 4.58:

Prove that similar matrices always have the same eigenvalues.

[End of Exercise]