I have a symmetric 3*3 matrix, A:
A = np.mat("1, 2, 1; 2, 5, 0; 1, 0, 5")
I have calculated the eigenvalues of A, which is 0, 6 and 5. I have now been told that A has the following three eigenvectors, and I am asked to find the corresponding three eigenvalues. How do I do this in Python?
v1=np.array([[-5],[2], [1]])
v2=np.array([[0],[-1], [2]])
v3=np.array([[1],[2], [1]])
Afterwards I have to show that the three eigenvectors are linearly independent, which I also don't know how to show in Python?