Lecture 26 - Pitch on Why Diagonalization is Cool

We can use diagonalization to solve the Fibonacci Sequence:

A Tale of Fibonacci

Consider $f_n = {0,1,1,2,3,5,8,13,...}. Namely:

f0=0,f1=1,fn=fn1+fn2

Is it possible to get an iterative formula for fn? Notice that: we get make a forumla:

F1=[01],F2=[11],F3=[12],...

Namely, we take the first two numbers and put them in F1, and the 2nd and 3rd are in F2 and so on. But consider the transformation T from F1F2,F2F3,.... This is defined as:

T([xy])=[yx+y]

implies that:

Fn=Tn1(F1)

but we can turn T into M(T), so what if I have a diagonal matrix. Consider such a matrix:

[λ1000000λn]k

if we want M(T)k then it's just:

[λ1000000λn]k=[λ1k000000λnk]

Notice that we've turned something that was O(k) and turned it into O(1) (assuming exponentiation is easy to do). Thus, the idea is to find a basis v1,v2 such that M(T) is diagonal. Because if we can then:

M(Fn)=M(T)n1M(F1)

where we know the left matrix will be easy to compute if it's diagonalizable. Hence, we need to make the basis vectors as eigenvectors. Hence, ask:

T([xy])=[yx+y]=λ[xy]=[λxλy]

Thus since y=λx then x+λx=λ(λx) so then since x0 as we want nonzero eigenvectors:

(1+λ)x=λ2xλ2xλx1x=0λ2λ1=0x is non-zero, so divide it out

Thus solve the quadratic:

λ=1±52

this is the golden ratio. Now we need the eigenvectors for these eigenvalues. We ideally want simple eigenvectors where we have our first x is simple, so use x=1, then y=λ=1+52 hence:

v1=[11+52]

and similarly for the other eigenvalue:

v2=[1152]

So my basis β={v1,v2}. These are eigenvectors so we'll have a diagonal matrix representation, where:

M(T)=[1+5200152]

so:

M(Fn)=[1+5200152]n1M(F1)

But what is M(F1)? We'll talk about this next time.