1 Diagonalization of a matrix with distinct eigenvalues

Diagonalization means transforming a non-diagonal matrix into an equivalent matrix which is diagonal and hence is simpler to deal with.

A matrix A with distinct eigenvalues has, as we mentioned in Property 3 in HELM booklet  22.1, eigenvectors which are linearly independent. If we form a matrix P whose columns are these eigenvectors, it can be shown that

det ( P ) 0

so that P 1 exists.

The product P 1 A P is then a diagonal matrix D whose diagonal elements are the eigenvalues of A . Thus if λ 1 , λ 2 , λ n are the distinct eigenvalues of A with associated eigenvectors X ( 1 ) , X ( 2 ) , , X ( n ) respectively, then

P = X ( 1 ) ⋮ X ( 2 ) ⋮ ⋯ ⋮ X ( n )

will produce a product

P 1 A P = D = λ 1 0 0 0 λ 2 0 ⋮ 0 λ n

We see that the order of the eigenvalues in D matches the order in which P is formed from the eigenvectors.

N.B.

  1. The matrix P is called the modal matrix of A
  2. Since D is a diagonal matrix with eigenvalues λ 1 , λ 2 , , λ n which are the same as those of A , then the matrices D and A are said to be similar .
  3. The transformation of A into D using

    P 1 A P = D

    is said to be a similarity transformation.

Example 8

Let A = 2 3 3 2 . Obtain the modal matrix P and calculate the product P 1 A P . (The eigenvalues and eigenvectors of this particular matrix A were obtained earlier in this Workbook at page 7.)

Solution

The matrix A has two distinct eigenvalues λ 1 = 1 , λ 2 = 5 with corresponding eigenvectors X 1 = x x and X 2 = x x . We can therefore form the modal matrix from the simplest eigenvectors of these forms:

P = 1 1 1 1

(Other eigenvectors would be acceptable e.g. we could use P = 2 3 2 3 but there is no reason to over complicate the calculation.)

It is easy to obtain the inverse of this 2 × 2 matrix P and the reader should confirm that:

P 1 = 1 det ( P ) adj ( P ) = 1 2 1 1 1 1 T = 1 2 1 1 1 1

We can now construct the product P 1 A P :

P 1 A P = 1 2 1 1 1 1 2 3 3 2 1 1 1 1 = 1 2 1 1 1 1 1 5 1 5 = 1 2 2 0 0 10 = 1 0 0 5

which is a diagonal matrix with entries the eigenvalues, as expected. Show (by repeating the method outlined above) that had we defined P = 1 1 1 1 (i.e. interchanged the order in which the eigenvectors were taken) we would find P 1 A P = 5 0 0 1 (i.e. the resulting diagonal elements would also be interchanged.)

Task!

The matrix A = 1 4 0 3 has eigenvalues 1 and 3 with respective

eigenvectors   1 0 and 1 1 .

If P 1 = 1 1 0 1 , P 2 = 2 2 0 2 , P 3 = 1 1 1 0 write down the

products P 1 1 A P 1 , P 2 1 A P 2 , P 3 1 A P 3

(You may not need to do detailed calculations.)

P 1 1 A P 1 = 1 0 0 3 = D 1 P 2 1 A P 2 = 1 0 0 3 = D 2 P 3 1 A P 3 = 3 0 0 1 = D 3

Note that D 1 = D 2 , demonstrating that any eigenvectors of A can be used to form P . Note also that since the columns of P 1 have been interchanged in forming P 3 then so have the eigenvalues in D 3 as compared with D 1 .

1.1 Matrix powers

If P 1 A P = D then we can obtain A (i.e. make A the subject of this matrix equation) as follows:

Multiplying on the left by P and on the right by P 1 we obtain

P P 1 A P P 1 = P D P 1

Now using the fact that   P P 1 = P 1 P = I we obtain

I A I = P D P 1 and so

A = P D P 1

We can use this result to obtain the powers of a square matrix, a process which is sometimes useful in control theory. Note that

A 2 = A . A A 3 = A . A . A .  etc.

Clearly, obtaining high powers of A directly would in general involve many multiplications. The process is quite straightforward, however, for a diagonal matrix D , as this next Task shows.

Task!

Obtain D 2 and D 3 if D = 3 0 0 2 . Write down D 10 .

D 2 = 3 0 0 2 3 0 0 2 = 3 2 0 0 ( 2 ) 2 = 9 0 0 4 D 3 = 3 2 0 0 ( 2 ) 2 3 0 0 ( 2 ) = 3 3 0 0 ( 2 ) 3 = 27 0 0 8

Continuing in this way: D 10 = 3 10 0 0 ( 2 ) 10 = 58049 0 0 1024

We now use the relation A = P D P 1   to obtain a formula for powers of A in terms of the easily calculated powers of the diagonal matrix D :

A 2 = A . A = ( P D P 1 ) ( P D P 1 ) = P D ( P 1 P ) D P 1 = P D I D P 1 = P D 2 P 1

Similarly: A 3 = A 2 . A = ( P D 2 P 1 ) ( P D P 1 ) = P D 2 ( P 1 P ) D P 1 = P D 3 P 1

The general result is given in the following Key Point:

Key Point 2

For a matrix A with distinct eigenvalues λ 1 , λ 2 , , λ n and associated eigenvectors X ( 1 ) , X ( 2 ) , , X ( n ) then if

P = [ X ( 1 ) : X ( 2 ) : : X ( n ) ]

D = P 1 A P is a diagonal matrix such that

D = λ 1 λ 2 ⋱ λ n  and A k = P D k P 1

Example 9

If A = 2 3 3 2 find A 23 . (Use the results of Example 8.)

Solution

We know from Example 8 that if P = 1 1 1 1 then P 1 A P = 1 0 0 5 = D

where P 1 = 1 2 1 1 1 1

A = P D P 1  and A 23 = P D 23 P 1  using the general result in Key Point 2

 i.e. A = 1 1 1 1 1 0 0 5 23 1 1 1 1

which is easily evaluated.

Exercise

Find a diagonalizing matrix P if

  1. A = 4 2 1 1
  2. A = 1 0 0 1 2 0 2 2 3

Verify, in each case, that P 1 A P is diagonal, with the eigenvalues of A as its diagonal elements.

  1. P = 1 2 1 1 , P A P 1 = 1 0 0 3
  2. P = 1 0 0 1 1 0 2 2 1 ,    P A P 1 = 1 0 0 0 2 0 0 0 3