Problem C25
Define the 3x3 identity matrix
I3 <- diag(3)
Compute eigenvalues and eigenvectors
eigen_data <- eigen(I3)
Extract eigenvalues and eigenvectors
eigenvalues <- eigen_data\(values
eigenvectors <- eigen_data\)vectors
Print the results
cat(“Eigenvalues:”, eigenvalues, “”) cat(“Eigenvectors:”,
eigenvectors, “”)
Eigenvectors:
0 0 1 0 1 0 1 0 0
Explain the results:
Eigenvalues represent the scaling factor of eigenvectors under the
transformation of the matrix.
For the 3x3 identity matrix, all eigenvalues are 1 because the
matrix doesn’t change the direction or magnitude of any vector.