Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am using a two different computational libraries to calculate the eigenvectors and eigenvalues of a symmetric matrix. The results show that the eigenvalues calculated with both libraries are exactly the same, however, the eigenvectors differ. Nevertheless, both seem to be correct since their eigenvectors are orthogonal and the factorization is also correct. How can that be possible? I asked the developers and although they seemed confused, they said that "probably" has to do with the directions of the vectors.

If it is possible, is there a kind of margin error between those two different range of eigenvectors so I could compare them and make sure they are in range (they are right)?

share|improve this question
6  
The eigenvalues must be the same, not the eigenvectors. For instance, $I_2$ has $(1,0)$ and $(0,1)$ as natural basis of eigenvectors. But $(1,1)$ and $(1,-1)$ is also a basis of eigenvectors for $I_2$. –  1015 May 16 '13 at 13:40
3  
Have you ruled out that the dimension of the eigenspace is more than 1? –  nayrb May 16 '13 at 13:40
1  
@vadim123 A dimension one space too has many possible bases. –  1015 May 16 '13 at 13:42
1  
If the developers themselves don't know, it is unlikely that anybody else will know how they designed their algorithm. –  1015 May 16 '13 at 13:47
2  
@Manolete Probably because they're using slightly different algorithms to compute them... Without looking at the algorithms closely, it's impossible to say where exactly the difference lies, though. It's also rather irrelevant, the important thing to take away from this is that the eigenvectors are not uniquely determined by the matrix. –  fgp May 16 '13 at 13:56

1 Answer 1

There is no promise of uniqueness for eigenvectors, (at least, not without a lot of constraints decided upon ahead of time.)

If $v$ is an eigenvector for $\lambda$, then so is $\alpha v$ for every $\alpha$ in your field $F$. It is not alarming to have different eigenvectors for a single eigenvalue.

It is also not alarming to have linearly independent eigenvectors with the same eigenvalue. In fact, since your matrix is symmetric, it is diagonalizable, and so an eigenvalue of multiplicity $n$ must have $n$ linearly independent eigenvectors for that eigenvalue.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.