Docsity

Eigenvalues and Eigenvectors: Computing and Properties - Prof. Ramani Duraiswami, Study notes of Computer Science

Partial preview of the text

Download Eigenvalues and Eigenvectors: Computing and Properties - Prof. Ramani Duraiswami and more Study notes Computer Science in PDF only on Docsity!

Computational Methods CMSC/AMSC/MAPL 460

Eigenvalues and Eigenvectors

Ramani Duraiswami, Dept. of Computer Science

Eigen Values of a Matrix

•^

Recap:

-^

A
N

§^

N

matrix

A

has an eigenvector

x

(non-zero) with

corresponding eigenvalue

λ

if

Ax

λ

x

•^

This means

Ax

  • λ

x

( A
  • λΙ)

x

•^

If a matrix vector product gives a zero vector, then eitherthe vector is zero, or the matrix has zero determinant (issingular).

-^

Here this means det(A-

λ

I) =

Symmetric Matrices

•^

A matrix is symmetric if its transpose is equal to itself

-^

A

is symmetric if

A

t^ =

A

For a complex matrix

A

H^

A
•^

Eigenvalues and Eigenvectors of a real symmetric(complex hermitian) matrix are real and eigenvectors areorthogonal.

Symmetric Matrices

-^

Eigenvalues and Eigenvectors of a real symmetric matrix are real. Itseigenvectors are orthogonal.

A

·^

X

R^

=^

X

R^

·^ diag(

λ^1

...

λ

N

)

X

L^

·^ A

= diag(

λ^1

...

λ

N

)^

·^ X

L

-^

Multiply first equation on left by

X

, second on the right byL

X

, andR

subtract

( X

L^

·^ X

)R ·^

diag(

λ^1

...

λ

N

) = diag(

λ^1

...

λ

N

)^

·^ (

X

L^

·^ X

)R

-^

matrix of dot products of the left and right eigenvectors commuteswith the diagonal matrix of eigenvalues.

-^

Only matrices that commute with a diagonal matrix

of distinct

elements

are themselves diagonal.

-^

So

X

L^

·^ X

R^

is diagonal

-^

So

X

L^

and

X

R^

are orthogonal to each other

-^

But

X

L^

=

X

t R

Example

⎞ ⎟ ⎟ ⎠

⎛ ⎜⎜ ⎝ =^

2 1

3 4

A

⎞ ⎟⎟ ⎠

⎛ ⎜⎜ ⎝

−

−

=

−

λ

λ

λ^

2

1

3

4

I

A

0 ) 3 )( 1 ( )

2 )(

(^4) (

0 )

det(

= − − − ⇒ = −

λ

λ

λ

I

A

0 ) 1

)( 5 ( 0 5 6 2

= − − ⇒ = + −

λ

λ

λ

λ^ • Hence the two eigenvalues are 1 and 5.

Example (continued)

•^

Once we have the eigenvalues, the eigenvectors canbe obtained by substituting back into (A-

λ

I)

x

^0
•^

This gives eigenvectors (1 -1)

T^

and (1 1/3)

T

•^

Note that we can scale the eigenvectors any way wewant.

-^

Determinant are not used for finding the eigenvaluesof large matrices.

Eigenvalues of Positive Definite Matrices

•^

If A is positive definite and

λ

and

x

are an

eigenvalue/eigenvector pair, then:

A

x

λ

x

x

H

A

x

λ

x

H

x

•^

Since

x

H

A

x

and

x

H

x

are both real and positive it follows

that

λ

is real and positive.

Properties of Positive Definite Matrices

•^

If A is a positive definite matrix then:– A is nonsingular.– The inverse of A is positive definite.– Gaussian elimination can be performed on A without pivoting.– The eigenvalues of A are positive.

The Power Method

•^

Label the eigenvalues in order of decreasing absolutevalue so |

λ

1

λ

2

λ

n

•^

Consider the iteration formula:

y

k+

= A

y

k

where we start with some initial

y

, so that: 0

y

k^

= A

k y

0

•^

Then

y

k^

converges to the eigenvector

x

1

corresponding

the eigenvalue

λ

1

Eigen Decomposition

-^

Recall from previous class the Eigen decomposition

-^

Let

λ

1

,^ λ

2

,…,

λ

n

be the eigenvalues of the n

×

n matrix A and

x^1

, x

,…, 2

x n

the corresponding eigenvectors.

-^

Let

Λ

be the diagonal matrix with

λ

1

,^ λ

2

,…,

λ

n

on the main

diagonal.

-^

Let X be the n

×

n matrix whose jth column is

x

.j

-^

Then AX = X

Λ

, and so we have the

eigen decomposition

of

A:

A = X

t^ Λ

X

  • -^

This requires X to be invertible, thus the eigenvectors of Amust be linearly independent.

Proof

-^

We know that A

k^

= X

Λ

k X

-1^ , so:

y k

= A

k y

= X 0

Λ

k X

-1 y

0

-^

Now we have:

k k n

k k

k

k n

k

k

k

1 1 2 1 2 1

O

O

-^

The terms on the diagonal get smaller in absolute value as kincreases, since

λ

1

is the dominant eigenvalue.

Proof (continued)

-^

So we have

1 1 1

1 2

1

1

x

c

c c c

x

x

y

k

n

n

k

k

M

O

M

M

L

M

M

-^

Since

λ

1

k^ c

x 1

1

is just a constant times

x

1

then we have the

required result.

Rayleigh Quotient

•^

Note that once we have the eigenvector, thecorresponding eigenvalue can be obtained from the Rayleigh quotient

dot(A

x

, x

)/dot(

x

, x

where dot(

a

, b

) is the scalar product of vectors

a

and

b

defined by:

dot(

a

, b

) = a

b 1

+a 1

b 2

+…+a 2

bn

n

•^

So for our example,

λ

1

Scaling

•^

The

λ

1

k^

can cause problems as it may become very large

as the iteration progresses.

-^

To avoid this problem we scale the iteration formula:

y

k+

= A(

y

k^

/r

k+

where r

k+

is the component of A

y

k^

with largest absolute

value.