Docsity

Diagonalization of Matrices: Finding Diagonal Matrices Similar to Given Matrices, Study notes of Linear Algebra

Toggle sidebar
bg1
Lecture 12: Diagonalization
A square matrix Dis called diagonal if all but diagonal entries are zero:
D=2
6
6
4
a
1
0ยขยขยข 0
0a
2
ยขยขยข 0
ยขยขยข ยขยขยข ยขยขยข ยขยขยข
0 0 ยขยขยข a
n
3
7
7
5
nยฃn
:(1)
Diagonal matrices are the simplest matrices that are basically equivalent to vectors in R
n
:
Obviously, Dhas eigenvalues a
1
; a
2
; :::; a
n
;and for each i= 1;2; :::; n;
D~e
i
=2
6
6
6
6
6
4
a
1
ยข ยข ยข 0ยข ยข ยข 0
.
.
.....
.
..
.
..
.
.
0ยข ยข ยข a
i
ยข ยข ยข 0
.
.
..
.
..
.
.....
.
.
0ยข ยข ยข 0ยข ยข ยข a
n
3
7
7
7
7
7
5
2
6
6
6
6
6
4
0
.
.
.
1
.
.
.
0
3
7
7
7
7
7
5
=2
6
6
6
6
6
4
0
.
.
.
a
i
.
.
.
0
3
7
7
7
7
7
5
=a
i
~e
i
:
We thus conclude that for any diagonal matrix, eigenvalues are all diagonal entries, and ~e
i
is an eigenvector associated with a
i
;the ith diagonal entry, i.e.,
~e
i
is an eigenvector associated with eigenvalue a
i
;for i= 1;2; :::; n:
Due to the simplicity of diagonal matrices, one likes to know whether any matrix can be
similar to a diagonal matrix. Diagonalization is a process of โ€ฆnding a diagonal matrix that
is similar to a given non-diagonal matrix.
Deโ€ฆnition 12.1. An nยฃnmatrix Ais called diagonalizable if Ais similar to a diagonal
matrix D:
Example 12.1. Consider
A=ยท7 2
ยก4 1ยธ; D =ยท5 0
0 3ยธ; P =ยท1 1
ยก1ยก2ยธ:
(a) Verify A=P DP
ยก1
(b) Find D
k
and A
k
(c) Find eigenvalues and eigenvectors for A:
Solution: (a) It suยขces to show that AP =PD and that Pis invertible. Direct
calculations lead to
det P=ยก16= 0 =)Pis invertible
Again, direct computation leads to
AP =ยท5 3
ยก5ยก6ยธ; P D =ยท5 3
ยก5ยก6ยธ:
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Diagonalization of Matrices: Finding Diagonal Matrices Similar to Given Matrices and more Study notes Linear Algebra in PDF only on Docsity!

Lecture 12: Diagonalization

A square matrix D is called diagonal if all but diagonal entries are zero:

D =

a 1 0 ยข ยข ยข 0

0 a 2 ยข ยข ยข 0

0 0 ยข ยข ยข a (^) n

nยฃn

Diagonal matrices are the simplest matrices that are basically equivalent to vectors in R

n :

Obviously, D has eigenvalues a 1 ; a 2 ; :::; an ; and for each i = 1; 2 ; :::; n;

D~ei =

a 1 ยข ยข ยข 0 ยข ยข ยข 0

. . .

0 ยข ยข ยข a (^) i ยข ยข ยข 0

. . .

0 ยข ยข ยข 0 ยข ยข ยข a (^) n

ai

. . .

= a (^) i ~ei :

We thus conclude that for any diagonal matrix, eigenvalues are all diagonal entries, and ~e (^) i

is an eigenvector associated with a (^) i ; the ith diagonal entry, i.e.,

~e (^) i is an eigenvector associated with eigenvalue ai ; for i = 1; 2 ; :::; n:

Due to the simplicity of diagonal matrices, one likes to know whether any matrix can be

similar to a diagonal matrix. Diagonalization is a process of โ€ฆnding a diagonal matrix that

is similar to a given non-diagonal matrix.

Deโ€ฆnition 12.1. An n ยฃ n matrix A is called diagonalizable if A is similar to a diagonal

matrix D:

Example 12.1. Consider

A =

; D =

; P =

(a) Verify A = P DP

ยก 1

(b) Find D

k and A

k

(c) Find eigenvalues and eigenvectors for A:

Solution: (a) It suยขces to show that AP = P D and that P is invertible. Direct

calculations lead to

det P = ยก 1 6 = 0 =) P is invertible

Again, direct computation leads to

AP =

; P D =

Therefore AP = P D:

(b)

D

2

2 0

2

; D

k

k 0

k

A

2 = P DP

ยก 1

P DP

ยก 1

= P DP

ยก 1 P DP

ยก 1 = P D

2 P

ยก 1

A

k = P D

k P

ยก 1

(c) Eigenvalues of A = Eigenvalues of D; which are โˆ 1 = 5; โˆ 2 = 3: For D; we know that

~e 1 =

is an eigenvectors for โˆ 1 = 5 : D~e 1 = 5~e 1 (2)

~e 2 =

is an eigenvectors for โˆ 2 = 3 : D~e 2 = 3~e 2 : (3)

Since AP = P D; from (2) and (3), respectively, we see

AP~e 1 = P D~e 1 = P (5~e 1 ) = 5P~e 1 ;

AP~e 2 = P D~e 2 = P (3~e 2 ) = 3P~e 2 :

Therefore,

P~e 1 =

is an eigenvector associated with eigenvalue โˆ = 5 for matrix A; and

P ~e 2 =

is an eigenvector of A associated with eigenvalue โˆ= 3:

From this example, we observation that if A is diagonalizable and A is similar to a

diagonal matrix D (as in (1)) through an invertible matrix P;

AP = P D:

Then

P~ei is an eigenvector associated with a (^) i ; for i = 1; 2 ; :::; n:

This generalization can be easily veriโ€ฆed in the manner analogous to Example 12.1. More-

over, these n eigenvectors P~e 1 ; P ~e 2 ; :::; P~e (^) n are linear independent. To see independence, we

consider the linear system n X

i=

โˆi P~e (^) i = ~ 0 :

This shows AP = P D.

Example 12.2. Diagonalize

A =

Solution: Diagonalization means โ€ฆnding a diagonal matrix D and an invertible matrix

P such that AP = P D: We shall follow Theorem 12.1 step by step.

Step 1. Find all eigenvalues. From computations

det (A ยก โˆI) = det

3 ยก 3 โˆ

2

  • 4

3

2 ยก 4 โˆ

2

3

  • โˆ

2

2

  • 4

2 (โˆยก 1) ยก 4

2 ยก 1

2

  • 4 (โˆ+ 1)

2 :

we see that A has eigenvalues โˆ 1 = 1; โˆ 2 = ยก 2 (this is a double root).

Step 2. Find all eigenvalues โ€“ โ€ฆnd a basis for each eigenspace Null (A ยก โˆI (^) i ).

For โˆ 1 = 1;

A ยก โˆ 1 I =

R 1 !R (^2) !

R 2 +R 1 !R 2 !

Therefore, linear system

(A ยก I) ~x = 0

reduces to

x 1 ยก x 3 = 0

x 2 + x 3 = 0;

where x 3 is the free variable. Choose x 3 = 1; we obtain an eigenvector

~x =

For โˆ 2 = ยก 2 ;

A ยก โˆ 2 I =

The corresponding linear system is

x 1 + x 2 + x 3 = 0

It follows that x 2 and x 3 are free variables. As we did before, we need to select (x 2 ; x 3 )

to be (1; 0) and (0; 1) : Choose x 2 = 1; x 3 = 0 =) x 1 = ยกx 2 ยก x 3 = ยก1; choose x 2 = 0;

x 3 = 1 =) x 1 = ยกx 2 ยก x 3 = ยก 1 : We thus got two independent eigenvectors for โˆ 2 = ยก2 :

~v 2 =

x (^1)

x (^2)

x (^3)

(^5) ; ~v 3 =

x (^1)

x (^2)

x (^3)

Step 3. Assemble orderly D and P as follows: there are several choices to pair D and P:

Choice#1 : D =

(^5) ; P = [~v 1 ; ~v^2 ; ~v 3 ] =

Choice#2 : D =

(^5) ; P = [~v 1 ; ~v^3 ; ~v 2 ] =

Choice#3 : D =

(^5) ; P = [~v 2 ; ~v^3 ; ~v 1 ] =

Remark. Not every matrix is diagonalizable. For instance,

A =

; det (A ยก โˆI) = (โˆยก 1)

2 :

The only eigenvalue is โˆ = 1; it has the multiplicity m = 2: From

A ยก I =

  1. In particular, if A has n distinct real eigenvalues, then A is diagonalizable.
  2. Any symmetric matrix is diagonalizable.

Note that, as we saw before, there are multiple choices for assembling P: For instance, if

A is 5 ยฃ 5 ; and A has two eigenvalues โˆ 1 = 2; โˆ 2 = 3 with a basis f~a 1 ; ~a 2 g for Null (A ยก 2 I)

and a basis

n ~b 1 ;

~b 2 ;

~b 3

o

for Null (A ยก 3 I) ; respectively, then, we have several choices to select

pairs of (P; D) :

choice#1 : P =

h

~a 1 ; ~a 2 ;~b 1 ;~b 2 ;~b 3

i

; D =

2 I 2 0

0 3 I 3

choice#2 : P =

h

~a 1 ;~b 1 ;~b 3 ;~a 2 ;~b 2

i

; D =

Example 12.3. Diagonalize A

A =

Solution: We need to โ€ฆnd all eigenvalues and eigenvectors. Since A is an upper triangle

matrix, we see that eigenvalues are โˆ 1 = 5; m 1 = 2 , โˆ 2 = ยก 3 ; m 2 = 2:

For โˆ 1 = 5;

A ยก 5 I =

R 4 +R 3 !R (^4) !

Therefore, x 3 and x 4 are free variable, and

x 1 = ยก 8 x 3 ยก 16 x (^4)

x 2 = 4x 3 + 4x 4 :

Choose (x 3 ; x 4 ) = (1; 0) =) x 1 = ยก 8 ; x 2 = 4; Choose (x 3 ; x 4 ) = (0; 1) =) x 1 = ยก 16 ; x 2 = 4:

We obtain two independent eigenvectors

2

(for โˆ 1 = 5):

For โˆ 2 = ยก 3 ;

A ยก (ยก3) I =

R 4 +R 3 !R 4 !

R 3 ยก 2 R 4! R 3

R 2 ยก 4 R 4! R 2

R 1 ยก 8 R 3 !R 1 !

Hence

x 1 = 0; x 2 = 0:

Choose (x 3 ; x 4 ) = (1; 0) and (x 3 ; x 4 ) = (0; 1) ; respectively, we have eigenvectors

2

and

(for โˆ 2 = ยก 3 ).

Assemble pairs (P; D) : There are several choice. For instance,

P =

; D =

or

P =

; D =