I am asked to identify from a list of vectors if any of them are eigenvectors of a given matrix. I have applied what it is explained in:
It is indicated to inspect visually if the dot product of the matrix times the corresponding vector is equivalent to multiply the vector times an scalar. In the following Python code the matrix is identified as A, and the vectors as a, b, c, and d. The dot products are calculated and printed.
import numpy as np A = np.matrix([[3,0],[4,5]]) a = np.array([3,0]) b = np.array([0,0]) c = np.array([-1,-1/2]) d = np.array([2,1]) print ("Is np.dot(A,a):",np.dot(A,a), "equivalent to multiply a:",a,"by an scalar?")
The final question is repeated for each vector.
I have difficulties to identify the correct answer.
For example, for the first vector (a = [3,0]) I obtain the corresponding transformed vector [ 9, 12], that is, the dot product of the matrix A times the vector a, but I am not able to answer if it is also the result of multiplying the vector by any scalar.
How do I know if a given vector is the scalar multiple of another one?
Any help to answer this question is well received.