Search code examples
matrixvectorlinear-algebraequationeigenvector

Is there a build in function that calculates eigenvectors in Julia


I would like to find the eigenvector q of following equation:
Q * q = 0
where Q is a square matrix with known values.

Like shown in the image below I used an example where I already calculated q.

enter image description here

I thought that the function eigvecs() would calculate the vector q and not a new sqaure matrix.

enter image description here

Is there another function or perhaps a different way to calculate q?


Solution

  • Eigenvectors are not uniquely defined.

    If u is an eigenvector of Q corresponding to eigenvalue a (0 in your case) then for any non-zero scalar x x*u is also an eigenvector of Q corresponding to the same eigenvalue.

    If you look at the third column of eigvecs(Q) above, you will see that it is (1/2 1/3 1/6) scaled by ~ 1.603568