1 mac 2103 module 12 eigenvalues and eigenvectors

46
1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

Upload: dominic-francis

Post on 26-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

1

MAC 2103

Module 12

Eigenvalues and Eigenvectors

Page 2: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

2Rev.F09

Learning Objectives

Upon completing this module, you should be able to:

1. Solve the eigenvalue problem by finding the eigenvalues and the corresponding eigenvectors of an n x n matrix. Find the algebraic multiplicity and the geometric multiplicity of an eigenvalue.

2. Find a basis for each eigenspace of an eigenvalue.3. Determine whether a matrix A is diagonalizable.4. Find a matrix P, P-1, and D that diagonalize A if A is

diagonalizable.5. Find an orthogonal matrix P with P-1 = PT and D that diagonalize

A if A is symmetric and diagonalizable.6. Determine the power and the eigenvalues of a matrix, Ak.

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Page 3: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

3Rev.09

Eigenvalues and Eigenvectors

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Eigenvalues, Eigenvectors, Eigenspace,Eigenvalues, Eigenvectors, Eigenspace,

DiagonalizationDiagonalization and and Orthogonal DiagonalizationOrthogonal Diagonalization

The major topics in this module:

Page 4: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

4Rev.F09

What are Eigenvalues and Eigenvectors?

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

If A is an n x n matrix and λ is a scalar for which Ax = λx has a nontrivial solution x ∈ ⁿ, then ℜ λ is an eigenvalue of A and x is a corresponding eigenvector of A. Ax = λx is called the eigenvalue problem for A.

Note that we can rewrite the equation Ax = λx = λIn x as follows:

λIn x - Ax = 0 or (λIn - A)x = 0. x = 0 is the trivial solution. But our solutions must be nonzero vectors called eigenvectors that correspond to each of the distinct eigenvalues.

Page 5: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

5Rev.F09

What are Eigenvalues and Eigenvectors?

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Since we seek a nontrivial solution to (λIn - A)x = (λI - A)x = 0, λI - A must be singular to have solutions x ≠ 0. This means that the det(λI - A) = 0.

The det(λI - A) = p(λ) = 0 is the characteristic equation, where det(λI - A) = p(λ) is the characteristic polynomial. The deg(p(λ)) = n and the n roots of p(λ), λ1, λ2, …,λn, are the eigenvalues of A. The polynomial p(λ) always has n roots, so the zeros always exist; but some may be complex and some may be repeated. In our examples, all of the roots will be real.

For each λi we solve for xi = pi the corresponding eigenvector, and Api = λi pi for each distinct eigenvalue.

Page 6: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

6Rev.F09

How to Solve the Eigenvalue Problem, Ax = λx?

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Example 1: Find the eigenvalues and the corresponding eigenvectors of A.

Step 1: Find the characteristic equation of A and solve for its eigenvalues.

Each eigenvalue has algebraic multiplicity 1.

A = −3 −2−5 0

⎣⎢

⎦⎥

p(λ) = λI −A = λ + 3 −2−5 λ

=0

=(λ + 3)λ −(−2)(−5) =λ2 + 3λ −10 =(λ + 5)1(λ −2)1 =0

Thus, theeigenvalues areλ1 =−5, λ2 =2.

Let D =λ1 0

0 λ2

⎣⎢⎢

⎦⎥⎥= −5 0

0 2⎡

⎣⎢

⎦⎥ which is a diagonal matrix.

Page 7: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

7Rev.F09

How to Solve the Eigenvalue Problem, Ax = λx?(Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Step 2: Use Gaussian elimination with back-substitution to solve the (λI - A) x = 0 for λ1 and λ2.

The augmented matrix for the system with λ1 = -5:

The second column is not a leading column, so x2 = t is a free variable, and x1 = x2 = t. Thus, the solution corresponding to λ1 = -5 is

−5I − A |r0⎡⎣ ⎤⎦=

−2 25 −5

00

⎣⎢

⎦⎥

~− 12 r1→ r1

r2

1 −15 −5

00

⎣⎢

⎦⎥ : r1

−5r1+ r2→ r21 −10 0

00

⎣⎢

⎦⎥.

rx =

x1

x2

⎢⎢

⎥⎥= t

t⎡

⎣⎢

⎦⎥=t 1

1⎡

⎣⎢

⎦⎥,t ≠0.

Page 8: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

8Rev.F09

How to Solve the Eigenvalue Problem, Ax = λx? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Since t is a free variable, there are infinitely many eigenvectors. For convenience, we choose t = 1, and

as the eigenvector for λ1 = -5. If we want p1 to be a unit vector, we will choose t so that

However, t =1 is fine in this

problem.

The augmented matrix for the system with λ2 = 2:

rx =

rp1 = 1

1⎡

⎣⎢

⎦⎥

2I −A |r0⎡⎣ ⎤⎦= 5 2

5 200

⎣⎢

⎦⎥

:15 r1→ r1

r2

1 25

5 200

⎣⎢⎢

⎦⎥⎥

: r1−5r1+ r2 → r2

1 25

0 000

⎣⎢⎢

⎦⎥⎥.

rp1 =

1 / 2

1 / 2

⎣⎢⎢

⎦⎥⎥.

Page 9: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

9Rev.F09

How to Solve the Eigenvalue Problem, Ax = λx? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Again, the second column is not a leading column, so x2 = t is a free variable, and x1 = - 2x2 / 5 = - 2t / 5. Thus, the solution corresponding to λ1 = 2 is

For convenience, we choose t = 5 and

as the eigenvector for λ1 = 2. Alright, we have finished solving the eigenvalue problem for

rx =

x1

x2

⎢⎢

⎥⎥=

−25 t

t

⎣⎢⎢

⎦⎥⎥=t

−25

1

⎣⎢⎢

⎦⎥⎥,t ≠0.

rx =

rp2 = −2

5⎡

⎣⎢

⎦⎥

A = −3 −2−5 0

⎣⎢

⎦⎥.

Page 10: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

10

Rev.F09

Eigenspaces

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

For each eigenvalue λ, there is an eigenspace Eλ with a basis formed from the linearly independent eigenvectors for λ. The dim(Eλ) is the geometric multiplicity of λ, which is the number of linearly independent eigenvectors associated with λ. We will see that the geometric multiplicity equals the algebraic multiplicity for each eigenvalue.

B1 ={rp1} is a basis for Eλ1

, theeigenspaceof λ1,

and B2 ={rp2} is a basis for Eλ2

, theeigenspaceof λ2 .

So, Eλ1=span(B1) =span({

rp1}) =span 1 1⎡⎣ ⎤⎦

T⎛⎝

⎞⎠,

Eλ2=span(B2 ) =span({

rp2}) =span −2 5⎡⎣ ⎤⎦

T

( )

and dim(Eλ1) =dim(Eλ2

) =1.

Page 11: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

11

Rev.F09

How to Determine if a Matrix A is Diagonalizable?

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

If P = [ p1 p2 ], then AP = PD even if A is not diagonalizable.

Since AP = 1 −21 5

⎣⎢

⎦⎥

−3 −2−5 0

⎣⎢

⎦⎥=A

rp1

rp2

⎡⎣

⎤⎦= A

rp1 A

rp2

⎡⎣

⎤⎦

= −5 −4−5 10

⎣⎢

⎦⎥=

−5(1) 2(−2)−5(1) 2(5)

⎣⎢⎢

⎦⎥⎥= −5 1

1⎡

⎣⎢

⎦⎥ 2 −2

5⎡

⎣⎢

⎦⎥

⎢⎢

⎥⎥

= λ1rp1 λ2

rp2

⎡⎣

⎤⎦=

rp1

rp2

⎡⎣

⎤⎦

λ1 0

0 λ2

⎣⎢⎢

⎦⎥⎥

= 11

⎣⎢

⎦⎥

−25

⎣⎢

⎦⎥

⎢⎢

⎥⎥

−5 00 2

⎣⎢

⎦⎥= 1 −2

1 5⎡

⎣⎢

⎦⎥

−5 00 2

⎣⎢

⎦⎥=PD.

Page 12: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

12

Rev.F09

How to Determine if a Matrix A is Diagonalizable?

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

So, our two distinct eigenvalues both have algebraic multiplicity 1 and geometric multiplicity 1. This ensures that p1 and p2 are not scalar multiples of each other; thus, p1 and p2 are linearly independent eigenvectors of A.

Since A is 2 x 2 and there are two linearly independent eigenvectors from the solution of the eigenvalue problem, A is diagonalizable and P-1AP = D.

We can now construct P, P-1 and D. Let

Then, P−1 = 5 / 7 2 / 7−1 / 7 1 / 7

⎣⎢

⎦⎥ and D =

λ1 0

0 λ2

⎣⎢⎢

⎦⎥⎥= −5 0

0 2⎡

⎣⎢

⎦⎥.

P =rp1

rp2

⎡⎣

⎤⎦= 1

1⎡

⎣⎢

⎦⎥

−25

⎣⎢

⎦⎥

⎢⎢

⎥⎥= 1 −2

1 5⎡

⎣⎢

⎦⎥.

Page 13: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

13

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Note that, if we multiply both sides on the left by P−1, then

AP =Arp1

rp2

⎡⎣

⎤⎦== A

rp1 A

rp2

⎡⎣

⎤⎦= −5 −4

−5 10⎡

⎣⎢

⎦⎥=

−5(1) 2(−2)−5(1) 2(5)

⎣⎢⎢

⎦⎥⎥

= −5 11

⎣⎢

⎦⎥ 2 −2

5⎡

⎣⎢

⎦⎥

⎢⎢

⎥⎥= λ1

rp1 λ2

rp2

⎡⎣

⎤⎦=

rp1

rp2

⎡⎣

⎤⎦

λ1 0

0 λ2

⎣⎢⎢

⎦⎥⎥

= 11

⎣⎢

⎦⎥

−25

⎣⎢

⎦⎥

⎢⎢

⎥⎥

−5 00 2

⎣⎢

⎦⎥= 1 −2

1 5⎡

⎣⎢

⎦⎥

−5 00 2

⎣⎢

⎦⎥=PD becomes

P−1AP = 5 / 7 2 / 7−1 / 7 1 / 7

⎣⎢

⎦⎥

1 −21 5

⎣⎢

⎦⎥

−3 −2−5 0

⎣⎢

⎦⎥

= 5 / 7 2 / 7−1 / 7 1 / 7

⎣⎢

⎦⎥

−5 −4−5 10

⎣⎢

⎦⎥= −35 / 7 0 / 7

0 / 7 14 / 7⎡

⎣⎢

⎦⎥= −5 0

0 2⎡

⎣⎢

⎦⎥=D.

Page 14: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

14

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Example 2: Find the eigenvalues and eigenvectors for A.

Step 1: Find the eigenvalues for A.

Recall: The determinant of a triangular matrix is the product of the elements at the diagonal. Thus, the characteristic equation of A is

λ1 = 1 has algebraic multiplicity 1 and λ2 = 3 has algebraic multiplicity 2.

.

A =3 −4 00 3 00 0 1

⎢⎢⎢

⎥⎥⎥

p(λ) =det(λI −A) = λI −A =0

=λ −3 4 0

0 λ −3 00 0 λ −1

=(λ −3)2 (λ −1)1 =0.

Page 15: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

15

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Step 2: Use Gaussian elimination with back-substitution to solve (λI - A) x = 0. For λ1 = 1, the augmented matrix for the system is

Column 3 is not a leading column and x3 = t is a free variable. The geometric multiplicity of λ1 = 1 is one, since there is only one free variable. x2 = 0 and x1 = 2x2 = 0.

I −A |r0⎡⎣ ⎤⎦=

−2 4 00 −2 00 0 0

000

⎢⎢⎢

⎥⎥⎥

:−1

2 r1→ r1

r2r3

1 −2 00 −2 00 0 0

000

⎢⎢⎢

⎥⎥⎥

:r1

−12 r2 → r2

r3

1 −2 00 1 00 0 0

000

⎢⎢⎢

⎥⎥⎥

.

Page 16: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

16

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

The eigenvector corresponding to λ1 = 1 is

The dimension of the eigenspace is 1 because the eigenvalue has only one linearly independent eigenvector. Thus, the geometric multiplicity is 1 and the algebraic multiplicity is 1 for λ1 = 1 .

rx =

x1

x2

x3

⎢⎢⎢⎢

⎥⎥⎥⎥

=00t

⎢⎢⎢

⎥⎥⎥

=t001

⎢⎢⎢

⎥⎥⎥

. If wechooset =1, thenrp1 =

001

⎢⎢⎢

⎥⎥⎥

is

our choice for theeigenvector.

B1 ={rp1} is a basis for theeigenspace, E

λ1, with dim(E

λ1) =1.

Page 17: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

17

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

The augmented matrix for the system with λ2 = 3 is

Column 1 is not a leading column and x1 = t is a free variable. Since there is only one free variable, the geometric multiplicity of λ2 is one.

3I −A |r0⎡⎣ ⎤⎦=

0 4 00 0 00 0 2

000

⎢⎢⎢

⎥⎥⎥

:

14 r1→ r1

r2r3

0 1 00 0 00 0 2

000

⎢⎢⎢

⎥⎥⎥

:r1

r3→ r2r2 → r3

0 1 00 0 20 0 0

000

⎢⎢⎢

⎥⎥⎥

:r1

12 r2 → r2

r3

0 1 00 0 10 0 0

000

⎢⎢⎢

⎥⎥⎥

.

Page 18: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

18

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

x2 = x3 = 0 and the eigenvector corresponding to λ2 = 3 is

The dimension of the eigenspace is 1 because the eigenvalue has only one linearly independent eigenvector. Thus, the geometric multiplicity is 1 while the algebraic multiplicity is 2 for λ2 = 3 . This means there will not be enough linearly independent eigenvectors for A to be diagonalizable. Thus, A is not diagonalizable whenever the geometric multiplicity is less than the algebraic multiplicity for any eigenvalue.

rx =

x1

x2

x3

⎢⎢⎢⎢

⎥⎥⎥⎥

=t00

⎢⎢⎢

⎥⎥⎥

=t100

⎢⎢⎢

⎥⎥⎥

,wechooset =1, andrp2 =

100

⎢⎢⎢

⎥⎥⎥

is

our choice for theeigenvector.

B2 ={rp2} is a basis for theeigenspace, E

λ2, with dim(E

λ2) =1.

Page 19: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

19

Rev.F09

How to Determine if a Matrix A is Diagonalizable? (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

This time, AP =Arp1

rp2

rp2

⎡⎣

⎤⎦= A

rp1 A

rp2 A

rp2

⎡⎣

⎤⎦

λ1rp1 λ2

rp2 λ2

rp2

⎡⎣

⎤⎦=

rp1

rp2

rp2

⎡⎣

⎤⎦

λ1 0 0

0 λ2 0

0 0 λ2

⎢⎢⎢

⎥⎥⎥=PD.

P−1 does not exist sincethecolumns of P arenot linearly independent.

It is not possibleto solve for D =P−1AP, so A is not diagonalizable.

Page 20: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

20

Rev.F09

A is Diagonalizable iff A is Similar to a Diagonal Matrix

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

AP =Arp1

rp2 ...

rpn

⎡⎣

⎤⎦= A

rp1 A

rp2 ... A

rpn

⎡⎣

⎤⎦

= λ1rp1 λ2

rp2 ... λn

rpn

⎡⎣

⎤⎦

=PD =rp1

rp2 ...

rpn

⎡⎣

⎤⎦

λ1 0O

0 λn

⎢⎢⎢⎢

⎥⎥⎥⎥

For A, an n x n matrix, with characteristic polynomial roots

for eigenvalues λi of A with corresponding eigenvectors pi.

P is invertible iff the eigenvectors that form its columns are linearly independent iff

λ1,λ 2 ,...,λ n , then

dim(Eλi) =geometric multiplicity=

Page 21: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

21

Rev.F09

A is Diagonalizable iff A is Similar to a Diagonal Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

P−1AP =P−1PD =D =λ1 0

O

0 λn

⎢⎢⎢⎢

⎥⎥⎥⎥

.

This gives us n linearly independent eigenvectors for P, so

P-1 exists. Therefore, A is diagonalizable since

The square matrices S and T are similar iff there exists a nonsingular P such that S = P-1TP or PSP-1 = T.

Since A is similar to a diagonal matrix, A is diagonalizable.

Page 22: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

22

Rev.F09

Another Example

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Example 4: Solve the eigenvalue problem Ax = λx and find the eigenspace, algebraic multiplicity, and geometric multiplicity for each eigenvalue.

Step 1: Write down the characteristic equation of A and solve for its eigenvalues.

A =−4 −3 60 −1 0−3 −3 5

⎢⎢⎢

⎥⎥⎥

p(λ) = λI −A =λ + 4 3 −6

0 λ +1 03 3 λ −5

=(−1)(λ +1) λ + 4 −63 λ −5

Page 23: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

23

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Since the factor (λ - 2) is first power, λ1 = 2 is not a repeated root. λ1 = 2 has an algebraic multiplicity of 1. On the other hand, the factor (λ +1) is squared, λ2 = -1 is a repeated root, and it has an algebraic multiplicity of 2.

p(λ)=(λ +1)(λ + 4)(λ −5) +18(λ +1) =0

=(λ2 + 5λ + 4)(λ −5) +18(λ +1) =0

=(λ 3 + 5λ2 + 4λ −5λ2 −25λ −20) +18λ +18 =0

=λ 3 −3λ −2 =(λ +1)(λ2 −λ −2) =(λ +1)(λ −2)(λ +1) =0

=(λ −2)(λ +1)2 =0.

So theeigenvalues areλ1 =2,λ2 =−1.

Page 24: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

24

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Step 2: Use Gaussian elimination with back-substitution to solve (λI - A) x = 0 for λ1 and λ2.

For λ1 = 2 , the augmented matrix for the system is

2I −A |r0⎡⎣ ⎤⎦=

603

333

−60−3

000

⎢⎢⎢

⎥⎥⎥

~

16 r1→ r113 r2 → r2

r3

103

1 / 213

−10−3

000

⎢⎢⎢

⎥⎥⎥

~r1r2

−3r1+ r3→ r3

100

1 / 21

3 / 2

−100

000

⎢⎢⎢

⎥⎥⎥

:r1r2

−32 r2 + r3→ r3

100

1 / 210

−100

000

⎢⎢⎢

⎥⎥⎥

.

In this case,

x3 = r, x2 = 0, and

x1 = -1/2(0) + r

= 0 + r = r.

Page 25: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

25

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Thus, the eigenvector corresponding to λ1 = 2 is

rx =

x1

x2

x3

⎢⎢⎢

⎥⎥⎥=

r0r

⎢⎢⎢

⎥⎥⎥

=r101

⎢⎢⎢

⎥⎥⎥

,r ≠0. If wechooserp1 =

101

⎢⎢⎢

⎥⎥⎥

,

then B1 =101

⎢⎢⎢

⎥⎥⎥

⎨⎪

⎩⎪

⎬⎪

⎭⎪is a basis for theeigenspaceof λ1 =2.

Eλ1=span({

rp1}) anddim(Eλ1

) =1, so thegeometric multiplicity is 1.

Arx=2

rx or (2I −A)

rx=

r0.

−4 −3 60 −1 0−3 −3 5

⎢⎢⎢

⎥⎥⎥

101

⎢⎢⎢

⎥⎥⎥

=−4 + 6

0−3+ 5

⎢⎢⎢

⎥⎥⎥

=202

⎢⎢⎢

⎥⎥⎥

=2101

⎢⎢⎢

⎥⎥⎥

.

Page 26: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

26

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

For λ2 = -1, the augmented matrix for the system is

(−1)I −A |r0⎡⎣ ⎤⎦=

303

303

−60−6

000

⎢⎢⎢

⎥⎥⎥

~

13 r1→ r1

r2r3

103

103

−20−6

000

⎢⎢⎢

⎥⎥⎥

~r1r2

−3r1+ r3→ r3

100

100

−200

000

⎢⎢⎢

⎥⎥⎥

x3 = t, x2 = s, and x1 = -s + 2t. Thus, the solution has two linearly independent eigenvectors for λ2 = -1 with

rx =

x1

x2

x3

⎢⎢⎢

⎥⎥⎥=

−s+ 2tst

⎢⎢⎢

⎥⎥⎥

=s−110

⎢⎢⎢

⎥⎥⎥

+ t201

⎢⎢⎢

⎥⎥⎥

,s≠0,t ≠0.

Page 27: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

27

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

If we chooserp2 =

−110

⎢⎢⎢

⎥⎥⎥

, andrp3 =

201

⎢⎢⎢

⎥⎥⎥

, then B2 =−110

⎢⎢⎢

⎥⎥⎥

,201

⎢⎢⎢

⎥⎥⎥

⎨⎪

⎩⎪

⎬⎪

⎭⎪

is abasis for Eλ2=span({

rp2 ,

rp3}) and dim(Eλ2

) =2,

so thegeometric multiplicity is 2.

Page 28: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

28

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Thus, we have AP =PD as follows :

−4 −3 60 −1 0−3 −3 5

⎢⎢⎢

⎥⎥⎥

1 −1 20 1 01 0 1

⎢⎢⎢

⎥⎥⎥

=1 −1 20 1 01 0 1

⎢⎢⎢

⎥⎥⎥

2 0 00 −1 00 0 −1

⎢⎢⎢

⎥⎥⎥

2 1 −20 −1 02 0 −1

⎢⎢⎢

⎥⎥⎥

=2 1 −20 −1 02 0 −1

⎢⎢⎢

⎥⎥⎥

.

Since the geometric multiplicity is equal to the algebraic multiplicity for each distinct eigenvalue, we found three linearly independent eigenvectors. The matrix A is diagonalizable since P = [p1 p2 p3] is nonsingular.

Page 29: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

29

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

P | I[ ] =1 −1 20 1 01 0 1

1 0 00 1 00 0 1

⎢⎢⎢

⎥⎥⎥

:1 −1 20 1 00 1 −1

1 0 00 1 0−1 0 1

⎢⎢⎢

⎥⎥⎥:

1 0 20 1 00 0 1

1 1 00 1 01 1 −1

⎢⎢⎢

⎥⎥⎥

:1 0 00 1 00 0 1

−1 −1 20 1 01 1 −1

⎢⎢⎢

⎥⎥⎥. So, P−1 =

−1 −1 20 1 01 1 −1

⎢⎢⎢

⎥⎥⎥

.

We can find P-1 as follows:

Page 30: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

30

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

AP =PD gives us A=APP−1 =PDP−1.

Thus, PDP−1 =1 −1 20 1 01 0 1

⎢⎢⎢

⎥⎥⎥

2 0 00 −1 00 0 −1

⎢⎢⎢

⎥⎥⎥

−1 −1 20 1 01 1 −1

⎢⎢⎢

⎥⎥⎥

=2 1 −20 −1 02 0 −1

⎢⎢⎢

⎥⎥⎥

−1 −1 20 1 01 1 −1

⎢⎢⎢

⎥⎥⎥

=−4 −3 60 −1 0−3 −3 5

⎢⎢⎢

⎥⎥⎥

=A

Note that A and D are similar matrices.

Page 31: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

31

Rev.F09

Another Example (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

D =−1 −1 20 1 01 1 −1

⎢⎢⎢

⎥⎥⎥

−4 −3 60 −1 0−3 −3 5

⎢⎢⎢

⎥⎥⎥

1 −1 20 1 01 0 1

⎢⎢⎢

⎥⎥⎥

=−2 −2 40 −1 0−1 −1 1

⎢⎢⎢

⎥⎥⎥

1 −1 20 1 01 0 1

⎢⎢⎢

⎥⎥⎥

=2 0 00 −1 00 0 −1

⎢⎢⎢

⎥⎥⎥

.

Also, D = P-1 AP =

So, A and D are similar with D = P-1 AP and A = PD P-1 .

Page 32: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

32

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

If P is an orthogonal matrix, its inverse is its transpose, P-1 =

PT . Since

PTP =

rp1

T

rp2

T

rpT

3

⎢⎢⎢⎢

⎥⎥⎥⎥

rp1

rp2

rp3

⎡⎣

⎤⎦==

rp1

T rp1

rp1

T rp2

rp1

T rp3

rpT

2rp1

rp2

T rp2

rp2

T rp3

rp3

T rp1

rp3

T rp2

rpT

3rp3

⎢⎢⎢⎢

⎥⎥⎥⎥

=

rp1 ⋅

rp1

rp1 ⋅

rp2

rp1 ⋅

rp3

rp2 ⋅

rp1

rp2 ⋅

rp2

rp2 ⋅

rp3

rp3 ⋅

rp1

rp3 ⋅

rp2

rp3 ⋅

rp3

⎢⎢⎢

⎥⎥⎥=

rpi ⋅

rpj⎡⎣ ⎤⎦=I because

rpi ⋅

rpj =0

for i ≠ j andrpi ⋅

rpj =1 for i = j =1,2,3. So, P−1 =PT .

Page 33: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

33

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

A is a symmetric matrix if A = AT. Let A be diagonalizable so that A = PDP-1. But A = AT and

AT =(PDP−1)T =(PDPT )T =(PT )T DTPT =PDPT =A.

This shows that for a symmetric matrix A to be diagonalizable, P must be orthogonal.

If P-1 ≠ PT, then A ≠AT. The eigenvectors of A are mutually orthogonal but not orthonormal. This means that the eigenvectors must be scaled to unit vectors so that P is orthogonal and composed of orthonormal columns.

Page 34: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

34

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Example 5: Determine if the symmetric matrix A is diagonalizable; if it is, then find the orthogonal matrix P that orthogonally diagonalizes the symmetric matrix A.

Let A =5 −1 0−1 5 00 0 −2

⎢⎢⎢

⎥⎥⎥

, then det(λI −A) =λ −5 1 0

1 λ −5 00 0 λ + 2

=(−1)3+1(λ + 2) λ −5 11 λ −5

=(λ + 2)(λ −5)2 −(λ + 2)

=λ 3 −8λ2 + 4λ + 48 =(λ −4)(λ2 −4λ −12) =(λ −4)(λ + 2)(λ −6) =0

Thus, λ1 =4, λ2 =−2, λ3 =6.

Since we have three distinct eigenvalues, we will see that we are guaranteed to have three linearly independent eigenvectors.

Page 35: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

35

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Since λ1 = 4, λ2 = -2, and λ3 = 6, are distinct eigenvalues, each of the eigenvalues has algebraic multiplicity 1.

An eigenvalue must have geometric multiplicity of at least one. Otherwise, we will have the trivial solution. Thus, we have three linearly independent eigenvectors.

We will use Gaussian elimination with back-substitution as follows:

Page 36: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

36

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

For λ1 =4 ,

λ1I −Ar0⎡⎣ ⎤⎦=

−1 1 01 −1 00 0 6

000

⎢⎢⎢

⎥⎥⎥

:1 −1 00 0 00 0 1

000

⎢⎢⎢

⎥⎥⎥:

1 −1 00 0 10 0 0

000

⎢⎢⎢

⎥⎥⎥

x2 =s, x3 =0, x1 =s .

rx=

x1

x2

x3

⎢⎢⎢

⎥⎥⎥=s

110

⎢⎢⎢

⎥⎥⎥

orrp1 =

1 / 2

1 / 20

⎢⎢⎢

⎥⎥⎥

.

Page 37: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

37

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

For λ2 =−2 ,

λ2 I −Ar0⎡⎣ ⎤⎦=

−7 1 01 −7 00 0 0

000

⎢⎢⎢

⎥⎥⎥

:1 −7 00 1 00 0 0

000

⎢⎢⎢

⎥⎥⎥

x3 =s, x2 =0, x1 =0 .

rx=

x1

x2

x3

⎢⎢⎢

⎥⎥⎥=s

001

⎢⎢⎢

⎥⎥⎥

orrp2 =

001

⎢⎢⎢

⎥⎥⎥

.

Page 38: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

38

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

For λ3 =6,

λ3I −Ar0⎡⎣ ⎤⎦=

1 1 01 1 00 0 8

000

⎢⎢⎢

⎥⎥⎥:

1 1 00 0 10 0 0

000

⎢⎢⎢

⎥⎥⎥

x2 =s, x3 =0, x1 =−s.

rx=

x1

x2

x3

⎢⎢⎢

⎥⎥⎥=s

−110

⎢⎢⎢

⎥⎥⎥

orrp3 =

−1 / 2

1 / 20

⎢⎢⎢

⎥⎥⎥.

Page 39: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

39

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

As we can see the eigenvectors of A are distinct, so {p1, p2, p3} is linearly independent, P-1 exists for P =[p1 p2 p3] and

Thus A is diagonalizable.

Since A = AT (A is a symmetric matrix) and P is orthogonal with approximate scaling of p1, p2, p3, P-1 = PT.

AP =PD ⇔ PDP−1.

PP−1 =PPT =1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥

=1 0 00 1 00 0 1

⎢⎢⎢

⎥⎥⎥

=I .

Page 40: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

40

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

As we can see the eigenvectors of A are distinct, so {p1, p2, p3} is linearly independent, P-1 exists for P =[p1 p2 p3] and

Thus A is diagonalizable.

Since A = AT (A is a symmetric matrix) and P is orthogonal with approximate scaling of p1, p2, p3, P-1 = PT.

AP =PD ⇔ PDP−1.

PP−1 =PPT =1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥

=1 0 00 1 00 0 1

⎢⎢⎢

⎥⎥⎥

=I .

Page 41: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

41

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

PDPT =1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

4 0 00 −2 00 0 6

⎢⎢⎢

⎥⎥⎥

1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥

=4 / 2 0 −6 / 2

4 / 2 0 6 / 20 −2 0

⎢⎢⎢

⎥⎥⎥

1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥=

5 −1 0−1 5 00 0 −2

⎢⎢⎢

⎥⎥⎥

=A.

Note that A and D are similar matrices. PD P-1 =

Page 42: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

42

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

=1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥

5 −1 0−1 5 00 0 −2

⎢⎢⎢

⎥⎥⎥

1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

=4 / 2 4 / 2 00 0 −2

−6 / 2 6 / 2 0

⎢⎢⎢

⎥⎥⎥

1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥=

4 0 00 −2 00 0 6

⎢⎢⎢

⎥⎥⎥

.

Also, D = P-1 AP = PTAP

So, A and D are similar with D = PTAP and A = PDPT .

Page 43: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

43

Rev.F09

The Orthogonal Diagonalization of a Symmetric Matrix (Cont.)

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

=1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

4 0 00 −2 00 0 6

⎢⎢⎢

⎥⎥⎥

T1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

T

=1 / 2 0 −1 / 2

1 / 2 0 1 / 20 1 0

⎢⎢⎢

⎥⎥⎥

4 0 00 −2 00 0 6

⎢⎢⎢

⎥⎥⎥

1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥

=4 / 2 0 −6 / 2

4 / 2 0 6 / 20 −2 0

⎢⎢⎢

⎥⎥⎥

1 / 2 1 / 2 00 0 1

−1 / 2 1 / 2 0

⎢⎢⎢

⎥⎥⎥=

5 −1 0−1 5 00 0 −2

⎢⎢⎢

⎥⎥⎥

AT = (PD P-1)T = (PD PT )T = (PT)T DT PT = P DT PT

= A. This shows that if A is a symmetric matrix, P must be orthogonal with P-1 = PT.

Page 44: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

44

Rev.F09

How to Determine the Power and the Eigenvalues of a Matrix, Ak?

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

From Example 1, the diagonal matrix for matrix A is :

D =λ1 0

0 λ2

⎣⎢⎢

⎦⎥⎥= −5 0

0 2⎡

⎣⎢

⎦⎥=P−1AP =D ⇒ A=PDP−1,

and A3 =PDP−1PDP−1PDP−1 =PD3P−1

= 1 −21 5

⎣⎢

⎦⎥

(−5)3 0

0 (2)3⎡

⎢⎢

⎥⎥

5 / 7 2 / 7−1 / 7 1 / 7

⎣⎢

⎦⎥= 125 −16

125 40⎡

⎣⎢

⎦⎥

5 / 7 2 / 7−1 / 7 1 / 7

⎣⎢

⎦⎥

= 641 / 7 234 / 7585 / 7 290 / 7

⎣⎢

⎦⎥. For A3,theeigenvalues, areλ1

3 =−125 aand λ23 =8.

In general, the power of a matrix, Ak =PDkP−1. and theeigenvalues areλik,

whereλi is on themain diagonal of D.

Page 45: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

45

Rev.F09

What have we learned?We have learned to:

1. Solve the eigenvalue problem by finding the eigenvalues and the corresponding eigenvectors of an n x n matrix. Find the algebraic multiplicity and the geometric multiplicity of an eigenvalue.

2. Find a basis for each eigenspace of an eigenvalue.

3. Determine whether a matrix A is diagonalizable.

4. Find a matrix P, P-1, and D that diagonalize A if A is diagonalizable.

5. Find an orthogonal matrix P with P-1 = PT and D that diagonalize A if A is symmetric and diagonalizable.

6. Determine the power and the eigenvalues of a matrix, Ak.

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.

Page 46: 1 MAC 2103 Module 12 Eigenvalues and Eigenvectors

46

Rev.F09

Credit

Some of these slides have been adapted/modified in part/whole from the following textbook:

• Anton, Howard: Elementary Linear Algebra with Applications, 9th Edition

http://faculty.valenciacc.edu/ashaw/ Click link to download other modules.