

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


MATLAB Lab for Math 526 Lab J
Kamala Diefenthaler ([email protected])
Department of Mathematics
Use the MATLAB tools for finding eigenvalues and eigenvectors.
For a square matrix A,
d=eig(A)
returns a vector that contains the eigenvalues of A.
[S, Lambda]=eig(A)
returns the diagonal matrix Lambda with the eigenvalues of A. The columns of the
matrix S represent the corresponding eigenvectors, but they have been normalized so
that each column represents a unit vector.
Test this by finding the eigenvalues and their corresponding eigenvectors of^ A^ =
, and then check them by computing Ax and λx for each of the four
sets of eigenvalues and eigenvectors. In this, you will also see how Matlab handles
complex numbers.
If A =
1 4
, limk→∞ A
k
limk→∞ A
k
, and limk→∞ A
k
does not exist. (In the last one, four
of the entries go to plus or minus infinity, but two approach finite values.) It can be
difficult to estimate these limits by telling Matlab to compute A
k b for large values of k
because of the accumulated round-off error in applying A several times. Indeed, for the
second limit, when k is greater than about 25, applying A again makes the vector move
April 2, 2009
MATLAB Lab for Math 526 Lab J
away from zero, not towards it. Using the diagonalized form SΛ
k S
− 1 b accumulates less
round-off error and is more accurate for larger k, but it still has the same problems
eventually.
To understand the behavior of A
k b for large values of k, it is very helpful to examine
the eigenvalues and corresponding eigenvectors of A.
(a) What are the eigenvalues of A? Do they tell you why limk−→∞ A
k b could be the
zero vector, a nonzero finite vector, or not exist? Not all matrices have this property.
Repeated applications of some matrices will grow unbounded for all b, but for other
matrices, it will go to 0 for all b.
(b) Use the eigenvalues and eigenvectors of A to aid you in evaluating limk→∞ A
k
(HINT: There are integer eigenvectors. Remember that the six eigenvectors you will
find form a basis for R
6 .)
(c) Give conditions on b that will ensure that limk→∞ A
k b exists.
(d) Give conditions on b that will ensure that limk→∞ A
k b = 0.
April 2, 2009