Deriving the Formula for the nth Term of the Fibonacci Sequence Using Matrices

  • Context: Graduate 
  • Thread starter Thread starter jd12345
  • Start date Start date
  • Tags Tags
    Formula Term
Click For Summary

Discussion Overview

The discussion centers on deriving the formula for the nth term of the Fibonacci sequence using various mathematical approaches, including matrix methods, generating functions, and linear algebra. Participants explore the complexities and assumptions involved in these derivations without reaching a consensus on a single method.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants express a desire for alternative derivations of the Fibonacci formula, noting that one method assumes a polynomial expression exists, while another involves matrices that require understanding of eigenvalues.
  • One participant suggests generating functions as another method to derive the Fibonacci formula.
  • Another participant discusses the relationship between linear difference equations and power series, suggesting that understanding linear algebra is essential for grasping the matrix proof.
  • Concerns are raised about the correctness of a specific column in the matrix proof, with differing opinions on whether it is accurate.
  • A participant proposes a linear algebra approach, explaining that the Fibonacci sequence can be expressed as a linear combination of two sequences that satisfy the recurrence relation.
  • Participants engage in clarifying the assumptions made in the derivations, particularly regarding the temporary nature of assuming a geometric sequence.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single method for deriving the Fibonacci formula. Multiple competing views and methods are presented, with some participants agreeing on certain aspects while others challenge or refine those points.

Contextual Notes

Some discussions highlight the need for a solid understanding of linear algebra and eigenvalues to fully grasp the matrix proof, as well as the complexities involved in the assumptions made during derivations.

jd12345
Messages
251
Reaction score
2
I want to find a derivation for formula of nth term of fibonacci formula. Searching the net - I found two methods : (i) First one assumes that the nth terms will be some number raised to power of n...I don't like this one as it assumes the formula initially
(ii) the second one involves matrices but i don't understand a large portion of the derivation

Is there any other way? If not could you tell me what all i have to learn about matrices before i can understand the derivation( it involves eigenvalues and all other stuff that i don't understand).
The matrix proof is here : http://mathproofs.blogspot.in/2005/04/nth-term-of-fibonacci-sequence.html
 
Physics news on Phys.org
1. It does not assume the formula initially. It assumes that a polynomial expression exists that satisfies the relation.
2. The matrix proof is a bit complicated. Eigenvalues and eigenvectors are simple concepts; you can look them up on Wikipedia or anywhere else. The proof is complicated in means that it is unnecessary for it to be that complex.
 
Another way to derive the formula is via generating functions. Here is a link to one such derivation:

http://courses.csail.mit.edu/6.042/fall05/ln11.pdf
 
If you learn enough linear algebra to understand the matrix proof, it will then be easy to see why the solution involves power series.

I can't think of a "simple" way to motivate the assumption about power series, except an analogy with a geometric series. If you take a simpler difference equation like ##a_{n+1} = c a_n##, the solution is ##a_0, a_0c, a_0c^2, \dots a_0c^n \dots## So you might expect the solution to a more complicated difference equation to involve power series as well.

There is also an analogy between linear difference equations with constant coefficients, where the solutions as power series, and linear differential equations with constant coefficients, where the solutions are exponential functions. But you need linear algebra to explain why the differential equations have that form of solution, so that doesn't really help you...
 
The supposition that the answer is in the form of a geometric sequence is only temporary. Having found the ratio, the correctness can then be established by induction. So the proof is quite sound.
Or is your objection that the solver had to make the right guess to get started? You can put that down to experience of handling recurrence relations generally.
 
jd12345 said:
Just out of interest, I read this proof, and I understood it till the bit where he says:
And now we plug it all into find a formula for the nth power of A

Does the second column of that 2x2 matrix on the third line look wrong to anyone else?

I know it doesn't actually matter to the proof of his theorem (or whatever it is you call it) as it all depends on the first column, but anyway? Have I lost a brain cell or two?
 
No, it looks right to me. E.g. (√5-1)n+1(√5+1) = (√5-1)n(√5-1) (√5+1) = (√5-1)n(5-1) = (√5-1)n4
 
Another way to prove it using basic linear algebra would be as follows.

First of all, the set [itex]E[/itex] of sequences [itex](u_n)[/itex] such as [itex]u_{n+2} = u_{n+1} + u_n[/itex] for all [itex]n \in \mathbf N[/itex] is a vector space over [itex]\mathbf R[/itex] (this is very easy to show).

Also, [itex]E[/itex] is of dimension 2 (intuitively, any sequence of [itex]E[/itex] is entirely defined by its two first terms, i.e. [itex]E[/itex] is isomorphic to [itex]\mathbf R^2[/itex]).

Next, by calling [itex](F_n)[/itex] our Fibonacci sequence, [itex](F_n) \in E[/itex], so [itex](F_n)[/itex] can be expressed as a linear combination of two basis vectors (here, sequences) of [itex]E[/itex].
This is the tricky part. You have to find two sequences, not proportional to each other, verifying the recurrence relation [itex]u_{n+2} = u_{n+1} + u_n[/itex], that you can clearly explicit. You can easily show that [itex](\varphi^n)[/itex] and [itex](\bar{\varphi}^n)[/itex] verify that relation, where [itex]\varphi[/itex] and [itex]\bar{\varphi}[/itex] are the solutions to the equation [itex]x^2=x+1[/itex], namely [itex]\dfrac{1+\sqrt 5}{2}[/itex] and [itex]\dfrac{1-\sqrt 5}{2}[/itex] .
Indeed, [itex]\varphi^2 = \varphi + 1[/itex] by definition, and multiplying by [itex]\varphi^n[/itex] gives [itex]\varphi^{n+2} = \varphi^{n+1} + \varphi^n[/itex] (same goes for [itex]\bar{\varphi}[/itex]).

So the sequences [itex](\varphi^n)[/itex] and [itex](\bar{\varphi}^n)[/itex] verify the recurrence relation, i.e. are vectors of [itex]E[/itex]. They aren't proportional (you can see that by checking the two first terms of each sequence), so they form a basis of [itex]E[/itex]. Thus, you can express [itex](F_n)[/itex] as a linear combination of [itex](\varphi^n)[/itex] and [itex](\bar{\varphi}^n)[/itex], in other words, there exists [itex]\lambda, \mu[/itex] reals such that for all [itex]n[/itex], [itex]F_n = \lambda \varphi^n + \mu\bar{\varphi}^n[/itex].

Evaluating at [itex]n = 0[/itex] and [itex]n = 1[/itex] gives [itex]\lambda + \mu = 0[/itex] and [itex]\lambda\varphi + \mu\bar{\varphi} = 1[/itex], which solves into [itex]\lambda = -\mu = \dfrac{1}{\varphi-\bar{\varphi}}[/itex].

Finally, [itex]F_n = \dfrac{\varphi^n - \bar{\varphi}^n}{\varphi-\bar{\varphi}}[/itex].
 
Last edited:
haruspex said:
No, it looks right to me. E.g. (√5-1)n+1(√5+1) = (√5-1)n(√5-1) (√5+1) = (√5-1)n(5-1) = (√5-1)n4
Thanks. It's obvious now. That'll teach me to be considering maths at 6 in the morning after watching England losing again! :blushing:
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 11 ·
Replies
11
Views
30K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
18K
  • · Replies 41 ·
2
Replies
41
Views
10K