Get startedGet started for free

Finding Eigenvalues in R

In the next video we will explicitly see how to find the eigenpairs for a matrix \(A\), but right now we can at least show that a pair is an eigenpair for a matrix \(A\). We can do this by showing that the difference between \(A\vec{v}\) and \(\lambda\vec{v}\) results in a vector of zeros.

The matrix A with R output:

     [,1] [,2] [,3]
[1,]   -1    2    4
[2,]    0    7   12
[3,]    0    0   -4

is loaded for you.

This exercise is part of the course

Linear Algebra for Data Science in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Show that 7 is an eigenvalue for A
___%*%c(0.2425356, 0.9701425, 0) - 7*c(0.2425356, 0.9701425, 0)
Edit and Run Code