I have been working through some matrix problems relating to eigenvalues and eigenvectors using R. For example: Where A is a diagonalizable 3x3 matrix solve A^740.
I find eigen() in R incredibly useful to quickly solve the eigenvalues
A = matrix(c(1,-2,4,0,-1,0,0,0,-1), byrow=T, nrow=3, ncol=3)
eigen(A)$values
[1] 1 -1 -1
However as the eigenvectors get normalized by vector length in eigen() I find myself manually solving them by hand for (A-λI) = 0 These form an adequate solution using:
P = (v1, v2, v3) #eigenvectors
PI = solve(P) #inverse
D=diag(3)*c(1,-1,-1)
A740 = P %*% D**740 %*% PI
I was wondering if there was a way to use eigen() and return non-normalized eigenvectors for simple applications such as this.