fix equation used to find eigenvector and eigenvalue