Matlab doesn't allow me to find the base for an eigenspace from rref-form although it gives an eigenvector for an eigenvalue

98 views (last 30 days)
I have a following matrix for which I first find its eigenvalues:
A=[4,-1,-2,2;-1,3,6,1;-2,6,1,4;2,3,4,-1]
a=eig(A)
After I get the eigenvalues, I try to find the base for the eigenspace for the first eigenvalue a(1) that Matlab gives me (the value is approximately 9.9230). I do the following:
rref([A-a(1)*eye(4), zeros(4,1)])
Matlab returns me an identity matrix with the last column of zeros, suggesting that there are no eigenvectors for that specific eigenvalue. For the other eigenvalues it works normally and lets me deduce the needed bases for the eigenspaces. However, when I use the following
[U,V] = eig(A)
Matlab will indeed give me an example of an eigenvector for the eigenvalue a(1). Hence, there should exist a base for the eigenspace corresponding to that eigenvalue a(1). Could someone please explain, why the rref-form doesn't allow me to deduce the base for the eigenspace? What should I do?

Accepted Answer

Matt J
Matt J on 24 Nov 2018
Edited: Matt J on 24 Nov 2018
You should really just do,
null(A-a(1)*eye(4))
But here is what rref gives me,
>> rref([A-a(1)*eye(4), zeros(4,1)])
ans =
1.0000 0 0 0.5297 0
0 1.0000 0 -1.7074 0
0 0 1.0000 -1.7151 0
0 0 0 0 0
  1 Comment
roamingsleep
roamingsleep on 24 Nov 2018
Thank you so much, that's exactly what I was trying find. There must be some kind of a bug on my installed software, for I'm still not able to get those values on my Matlab with the same command...

Sign in to comment.

More Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!