Docsity

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

Partial preview of the text

Download Eigenvalues and Eigenvectors: Computing and Interpreting - 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

•^

Definition:

-^

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.

Characteristic Equation

•^
A

x

λ

x

can be written as

(A-

λ

I)

x

^0

which holds for x

0, so (A-

λ

I) is singular and

det(A-

λ

I) = 0
•^

This is called the characteristic polynomial. If A is n

×

n

the polynomial is of degree n and so A has n eigenvalues,counting multiplicities.

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.

Positive Definite Matrices

•^

A complex matrix A is

positive definite

if for every

nonzero complex vector

x

the quadratic form

x

H

A

x

is real

and:

x

H

A

x

where

x

H^

denotes the conjugate transpose of

x

(i.e.,

change the sign of the imaginary part of each componentof

x

and then transpose).

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.

Hermitian Matrices

-^

A square matrix for which A = A

H^

is said to be an

Hermitian

matrix.

-^

If A is real and Hermitian it is said to be

symmetric

, and A = A

T.

-^

Every Hermitian matrix is positive definite.

-^

Every eigenvalue of an Hermitian matrix is real.

-^

Different eigenvectors of an Hermitian matrix are orthogonal toeach other, i.e., their scalar product is zero.

Powers of Matrices

-^

If A = X

t^ Λ

X

-^

then:

A

2 = (X

t^ Λ

X

-1^ )(X

t^ Λ

X

-1^ ) = X

t^ Λ

(X

-1^ X)

Λ

X

-^

= X

t^ Λ

2 X

Hence we have:

A

p^ = X

t^ Λ

p^ X

  • -^

Thus, A

p^

has the same eigenvectors as A, and its eigenvalues are

λ^

p 1 ,^ λ

2

p^ ,…,

λ

n

p^.

-^

We can use these results as the basis of an iterative algorithm forfinding the eigenvalues of a matrix.

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

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.

Example

-^

Let A = [2 -12; 1 -5] and

y

=[1 1]’ 0

-^

y^1

= -4[2.50 1.00]’

-^

y^2

= 10[2.80 1.00]’

-^

y^3

= -22[2.91 1.00]’

-^

y^4

= 46[2.96 1.00]’

-^

y^5

= -94[2.98 1.00]’

-^

y^6

= -190[2.99 1.00]’

-^

The iteration is converging on a scalar multiple of [3 1]’, which isthe correct dominant eigenvector.

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.

Example with Scaling

-^

Let A = [2 -12; 1 -5] and

y

=[1 1]’ 0

-^

A

y^0

= [-10 -4]’ so r

=-10 and 1

y

=[1.00 0.40]’. 1

-^

A

y^1

= [-2.8 -1.0]’ so r

=-2.8 and 2

y

=[1.0 0.3571]’. 2

-^

A

y^2

= [-2.2857 -0.7857]’ so r

=-2.2857 and^3

y

=[1.0 0.3437]’. 3

-^

A

y^3

= [-2.1250 -0.7187]’ so r

=-2.1250 and^4

y

=[1.0 0.3382]’. 4

-^

A

y^4

= [-2.0588 -0.6912]’ so r

=-2.0588 and^5

y

=[1.0 0.3357]’. 5

-^

A

y^5

= [-2.0286 -0.6786]’ so r

=-2.0286 and^6

y

=[1.0 0.3345]’. 6

-^

r is converging to the correct eigenvector -2.