Understanding eigenvectors with Fibonacci
Here’s the punchline: the ratio between successive terms of the Fibonacci sequence converges to the golden ratio (, 1.618…).
Why give away the punchline so early? Because my goal with this article is to give you an intuitive understanding of eigenvectors (and their corresponding eigenvalues) through explaining this phenomenon, and not the other way around. It’s a tall order, and this is a long post, so let’s get started.
Before delving into the why and how, let’s just demonstrate that it’s true.
n  0  1  2  3  4  5  6  7  8 
nth term of Fib  0  1  1  2  3  5  8  13  21 
nth term / {n1}th term  1  2  1.5  1.66  1.6  1.625  1.615 
A graph might be better at illustrating just how quickly the ratio approaches .
The fib function
Let’s imagine a function which takes two (consecutive) elements of the Fibonacci sequence, and returns the next two (with one overlapping). It’s a simple function  here it is:
For example:
You get the idea.
Eigenvectors
Ok, so how does this all relate to eigenvectors? Well, what even is an eigenvector? Google says it’s
a vector which when operated on by a given operator gives a scalar multiple of itself.
That’s a bit abstract (as math often is), so let’s put it in the context of our fib function.
an input vector which, when given to the fib function, produces an output vector which is a scaled version of itself.
Better, but let’s round it out with an example.
Is an eigenvector of the fib function? . Is just a scaled version of . Nope! So, is not an eigenvector of the fib function.
Finding an eigenvector of the fib function with guess and check could take a while, so let’s try to solve for one. Remember, we want to find an input vector such that is a scaled version of , i.e. . We also know that . So, we need to solve .
This gives us two values of , let’s call:
We wanted to find an eigenvector . This is easy now that we know . Let’s arbitrarily choose and . From , we know that , so .
Let’s check our work. We’re claiming that is an eigenvector. . Is a scaled version of ?
The ratio of first elements is easy to compute:
The ratio of second elements will take a bit of algebra:
So, to summarize, yes! The output vector is a scaled version of the input vector, and it’s scaled by . In other words:
What is the ratio by which the vector is scaled () in this context? That’s the eigenvalue. Each eigenvector has a corresponding eigenvalue.
Ok… but why?
Right. Why is this helpful?
Well, for one, it’s really easy to understand what will happen when you call your function on an eigenvector. It will just be multiplied by the eigenvalue.
What happens when you call your function twice on an eigenvector? Still easy, it will be multiplied by the eigenvalue squared.
How about if you call your function 100 times? multiplied by the eigenvalue ^ 100. QED.
It’s worth stressing that this is a huge shortcut! Not only in computation cost, but in intuitive understanding. If I asked you, what’s the 100th term of the fibonacci series, if the fibonacci series started with and , you’d probably have no idea off the top of you head. But if you know that is an eigenvector of the fibonacci function with an eigenvalue of , then you can calculate this very quickly: . The 100th term is the first term of the output. That’s .
But what about noneigenvectors?
Yes  the elephant in the room. You’re almost surely not lucky enough to be handed an eigenvector. Here’s where the linear in linear algebra comes in.
What does it mean for a function to be linear? It means the following two properties hold:
If those properties hold, then we can do something quite magical. We can decompose any input vector into a linear combination of eigenvectors, and then deal with them separately. This may be a bit abstract, but bear with me for a second.
Assume and are two eigenvectors of the linear function with eigenvalues and respectively. We are trying to understand what happens when is applied to an input vector . Let’s say we can find two constants and , such that . Then, due to the two properties of linear functions above, we can say the following:
Wow! So we just turned our function application into something much easier to understand (and compute)  namely scalar multiplication and vector addition. Note that in order to do this, we had to know and up front, which is not completely trivial.
Let’s push this a bit further. Let’s represent the vector as a linear combination of and using the following notation: . Note that this is just shorthand for .
Using that notation, we can say , right? And . And using my madeup notation for repeated function application: .
There’s a name for what we’ve just done. It’s called a change of basis. We took our vector , where and were coordinates in the standard basis, i.e. , and turned it into where and are coordinates in a new basis  the eigenbasis  i.e. . And why did we do it? Because applying the function (any number of times) is really easy in the eigenbasis.
Back to fib
For the love of god, give me an example! You got it. Let’s go back to our fib function. Exercise for the reader, show that the fib function is linear.
We solved for the two eigenvalues of the fib function above: and . Now that we know that they are eigenvalues, I’m going to rename them to be and to conform to our notation in the last section:
We also solved for an eigenvector that corresponded to the first eigenvalue, which we will now call .
We need an eigenvector that corresponds to our second eigenvalue as well. Here is one: . I’ll leave it as an exercise to the reader to check that this is correct.
Now, let’s try to represent our (noneigenvector) starting input for the real fibonacci series, namely , in the eigenbasis. That equates for finding an and , such that . And, tada, here they are: and .
I’m not going to explain how to compute and because, well, this is going to be long enough already. But if you want to understand how to compute the coordinates of a vector in a new basis, here’s a link.
To make it more clear why these values of and do the trick, let’s write it out in full:
And even better? A picture:
And now, we will repeatedly apply the function. Remember that on each application of , the coordinate gets multiplied by and gets multiplied by .
n  0  1  2  3  4  5  6  7  8  9 
0.447  0.724  1.171  1.894  3.065  4.96  8.025  12.985  21.01  33.994  
0.447  0.276  0.171  0.106  0.065  0.04  0.025  0.015  0.01  0.006  
ratio  1.0  2.0  1.5  1.667  1.6  1.625  1.615  1.619  1.618 
Notice that increases exponentially, with a base of , and decreases exponentially, with a base of . As approaches zero, all you’re left with is some constant () times the eigenvector . Since the ratio of the second to the first element in the eigenvector is , and the output of this sequence approaches a constant () times as , it makes sense that the ratio of the output vectors (and therefore consecutive elements of the fibonacci sequence) also converges to .
Don’t eigenvectors have something to do with matrices, though?
Yep! Matrices are the language of linear algebra because linear functions (often called linear maps) can be represented by a matrix. Why is that true? And is it always true? To be honest, I’m not the best person to explain that. Here’s a wiki article on representing linear maps with matrices, although fair warning, wiki articles on math have a tendency to be overly precise and technical at the cost of understandability.
Although I won’t prove the general case, I can show you how this particular linear map () can be represented as a matrix.
Consider the matrix :
Now, let’s see the effect of multiplying a vector, I dunno… say , by :
And if we multiply again?
How about 9 times?
Multiplication by is the function! What are the eigenvectors and eigenvalues of the matrix? You guessed it. The same as the function.
Questions to test your understanding:
From above:

Show that the function is linear.

Show that is an eigenvector of the function.
In addition:

Let’s say I have a linear function which stretches vectors in the xdirection. More specifically, it doubles the x values. What are the eigenvectors and values of that function?

Let’s say I have a linear function which rotates vectors by 90°. What are the eigenvectors and eigenvalues of that function?

What is a fast way to compute for large values of ? How expensive is it if you just repeatedly multiplied by ? How expensive is the fast version?

Are there any two starting values for the fibonacci sequence that would not eventually converge to some scaled version of ? What would it converge to?

How many eigenvectors does the M matrix have? How many eigenvalues?