I can't remember how I first found this proof .. I think it might have been a homework assignment. Regardless, it's been one of my favorite proofs ever since, so I figured I should probably include it here. The object is to come up with a closed form solution for the nth term of the Fibonacci sequence f={0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...} (I start with zero for the zeroth fibonacci number, and one for the first, but you'll see that this method allows you to easily compute a Fibonacci-like sequence with any two initial values)
Now lets write an iterative formula for the nth and (n+1)th term, and then we'll solve for a closed form solution.
So you can see, by multiplying this matrix repeatedly, it yields the nth and (n+1)th term
Now to simplify that nasty nth power of A, we'll use a trick known as diagonalization. If we can write A as a product of 3 matrices P, D and P inverse, where D is a diagonal matrix, it gives us an easy way to write the nth power of A
Now, I won't get into proving that this method of diagonalization works. If you want that much detail you can go here. Now, the next step is to find the eigenvectors and eigenvalues of A. So first we'll solve the characteristic equation of A.
So, now we find the eigenvectors for the two eigenvalues. For the eigenvalue
we find
So our first eigenvalue-eigenvector pair is
Now, for the second eigenvalue
we find
So our second eigenvalue-eigenvector pair is
Now we can construct our matrices
And to calculate P inverse, we'll need the determinant of P (the invese of P is the transpose of the cofactor matrix times one over the determinant)
and so
And now we plug it all in to find a formula for the nth power of A
And so we can see (from our second equation) that the formula for the nth number in the Fibonacci sequence is the lower left entry in this matrix
Using this result, you can easily find a formula for the nth term of any Fibonacci-like sequence (same rules for generating the sequence, but with different starting numbers) just by changing the vector that you multiply with the nth power of A.
Awesome proof! This helped me complete a Maths Assignment based around the Fibonacci sequence, thank you so much :D
ReplyDeleteI just learned diagonalization in my first year linear algebra course, and we did this exact proof as an example... I thought it was pretty awesome, since I've known the Fibonacci sequence for as long as I can remember, and I always wondered if it was possible to find an expression for the nth term.
ReplyDeletethis is a splendid work
ReplyDeleteI was looking for closed form expression of nth term of Fibonacci series for solving a puzzle. Find it in your blog. its an elegant solution.
ReplyDeleteThanks for posting this! I'm working through Gilbert Strangs Linear Algebra course on MIT OpenCourseWare, and he touches this proof at the end of lecture 22, but left me scratching my head a little bit. This really cleared it up, thank you!
ReplyDeleteWow this is super interesting. I remember sitting in my calc II class when my professor said there was no way of finding a closed form of the Fibonacci sequence. At that point I really wanted to find one but didn't even realize I had no chance without linear algebra. Then, once I learned linear algebra I was no longer searching for it. Anyway, I guess she was wrong on that one haha. I might have to just go back and show her this.
ReplyDeleteAwesome, Thanks :)
ReplyDeleteThat is absolutely the most amazing thing ever!!!
ReplyDeletehow would you find the nth term of this sequence, 1,1,3,5,11,21,43,85 etc.
ReplyDeleteI know that the after each term you have to do 2n-1 then for the next one 2n+1 and it keeps on alternatng. But I can't find the actual formula.
just want to ask if for example i have fibonacci like sequence 2,4,6,10... how will i find the 20th term using your formula....
ReplyDeleteerrr, well i'm no mathematician (aged twelve) but i found this very useful for my homework. perhaps you could publish a simpler version for people, who like me, are not particularly blessed in the maths department. thank you
ReplyDeleteThank you for this proof - it beats the pants off the one shown in Kolman's Introductory Linear Algebra (which, to be fair, had limited space to print it although, on the other hand, there is also either a typo or simply an incomprehensible line in it "we write un-1 = un-1" with the n-1 being subscripts. Huh?)
ReplyDelete