Part 6: eigenvalues and eigenvectors
Introduction to eigenvalues and eigenvectors
If you watched the video from 3Blue1Brown, you should know the meaning of eigenvalues and eigenvectors by now.
In equation, it’s written like this:
![](https://cdn-images-1.medium.com/freeze/max/60/1*TdPrjB0rpALnR210BWqcjQ@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*TdPrjB0rpALnR210BWqcjQ@2x.jpeg)
In a matrix form, it looks something like this:
![](https://cdn-images-1.medium.com/freeze/max/60/1*hpU_jUvB9SInaO9H5xj_Eg@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*hpU_jUvB9SInaO9H5xj_Eg@2x.jpeg)
Just as a recap, eigenvectors are the vectors that does not change its orientation, but just scales by a factor of its corresponding eigenvalue.
![](https://cdn-images-1.medium.com/freeze/max/60/1*G0XldeM0jDjziJttS-SFhg@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*G0XldeM0jDjziJttS-SFhg@2x.jpeg)
To solve for eigenvalues and eigenvectors, here are the steps you need to take.
![](https://cdn-images-1.medium.com/freeze/max/60/1*Uc3F6OYQz-3wA0smlyI_tw@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*Uc3F6OYQz-3wA0smlyI_tw@2x.jpeg)
Let’s take a quick example using 2 x 2 matrix.
![](https://cdn-images-1.medium.com/freeze/max/60/1*ToE0nyoHVEwdxiuOwdP1jA@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*ToE0nyoHVEwdxiuOwdP1jA@2x.jpeg)
By solving the determinant = 0, we get the eigenvalues. Now we just need to consider each eigenvalue case separately.
![](https://cdn-images-1.medium.com/freeze/max/60/1*HQzJTGwJK9_O_skayURhoA@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*HQzJTGwJK9_O_skayURhoA@2x.jpeg)
Now you got one of the eigenvectors. Moving on to the next.
![](https://cdn-images-1.medium.com/freeze/max/60/1*sPkz01t9Wm6n4yXFkn_-eA@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*sPkz01t9Wm6n4yXFkn_-eA@2x.jpeg)
Great! Now you solved the eigenvalue and eigenvector problem!
![](https://cdn-images-1.medium.com/freeze/max/60/1*ku7iQYLfC57kwgII2DtKSg@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*ku7iQYLfC57kwgII2DtKSg@2x.jpeg)
Let’ take a look at the results and make sure that what 3Blue1Brown video was saying makes sense.
![](https://cdn-images-1.medium.com/freeze/max/60/1*FUYhgRTROmpyPsYC0zyNdg@2x.jpeg?q=20)
![](https://cdn-images-1.medium.com/max/1600/1*FUYhgRTROmpyPsYC0zyNdg@2x.jpeg)
As you can see above, no matter what kind of transition matrix “A” you have, if you managed to find its eigenvalues and eigenvectors, the transition using the matrix “A