A Golden (Formal) Power Series

As you probably know, I wear my heart on my sleeve:
Well, I took the golden opportunity (ha!) to bring the golden ratio $\Phi = \frac{1+\sqrt{5}}{2}$ into Calc 2 this week, using it (and its little pal $\Psi = \frac{1-\sqrt{5}}{2}$) to find a closed formula for the $n$-th term of the Fibonacci sequence.
The ubiquitous Fibonacci sequence! It’s something you may have encountered out in the wild. You know, it goes a little like this:
$$F_0 = 1, F_1 = 1, F_n = F_{n-1} + F_{n-2},$$
so that $$F_2 = 2, F_3 = 3, F_4 = 5, F_5 = 8, F_6 = 13, F_7 = 21, \ldots $$
And let’s say for some reason, you need to cook up $F_{108}$. I hope you have some time on your hands if you’re planning to add all the way up to that. Instead, wouldn’t it be nice if we had a simple formula that we could use — i.e., a formula that was not recursive — to figure out the $n$-th Fibonacci number?
Luckily, such a formula exists, and there are lots of ways to find it. In this post, we’ll find it using power series. Read on, brave blogosphere traveler.
First thing we’re going to do is build a power series:
$$\begin{array}{r c l} F(x) &=& \sum_{n=0}^\infty F_n x^n \\
&=& 1+ x + 2x^2 + 3x^3 + 5x^4 + 8x^5 + 13x^6 + 21x^7 + \cdots.
\end{array}$$
Remember that $F_n = F_{n-1} + F_{n-2}$ as long as $n \geq 2$. This means that we can rewrite our power series:
$$\begin{array}{r c l} F(x) &=& \displaystyle\sum_{n=0}^\infty F_n x^n \\
&=& 1 + x + \displaystyle\sum_{n=2}^\infty(F_{n-1} + F_{n-2})x^n \\
&=& 1 + x + \displaystyle \sum_{n=2}^infty(F_{n-1}x^n + F_{n-2}x^n) \\
&=& 1 + x + \displaystyle \sum_{n=2}^\infty F_{n-1}x^n + \displaystyle \sum_{n=2}^\infty F_{n-1}x^n.
\end{array}$$
So far so good? We’re not done yet, though. We can do a little reindexing. In particular, note that by tweaking the index $n$ a little bit, we have equalities:
$$\begin{array}{r c l}
\displaystyle \sum_{n=2}^\infty F_{n-1}x^n &=& \displaystyle \sum_{n=1}^\infty F_n x^{n+1} \quad =\quad x(F(x) - 1),\\
\displaystyle \sum_{n=2}^\infty F_{n-2}x^n &=& \displaystyle \sum_{n=0}^\infty F_n x^{n+2} \quad = \quad x^2 F(x).
\end{array}
$$
You might want to grab a coffee and some scratch paper to make sure you believe all those equalities up there. No worries; the rest of the post will be here when you’re ready.
Okay — agree with me? Good! Remember what we figured out above, and substitute in to obtain
$$\begin{array}{r c l} F(x) &=& 1 + x + \displaystyle \sum_{n=2}^\infty F_{n-1}x^n + \displaystyle \sum_{n=2}^\infty F_{n-1}x^n \\
&=& 1 + x + x(F(x) - 1) + x^2 F(x) \\
&=& 1 + x F(x) + x^2 F(x).
\end{array}$$
Finally, if we solve all of that for $F(x)$, we get the marvelous rational function $F(x) = \frac{-1}{x^2 + x - 1}$.
All right, kids. Now the question becomes: (a) do you remember Partial Fraction Decomposition from earlier in the semester? and (b) do you remember the quadratic formula? We’re going to need both of those things. Let me google that for you… Partial Fraction Decomposition and Quadratic Formula.
Now that you’ve had a chance to review, you can double check that $x^2 + x - 1 = (x + \Phi)(x + \Psi)$ where $\Phi = \frac{1+\sqrt{5}}{2}$ (the Golden Ratio!) and $\Psi = \frac{1-\sqrt{5}}{2}$ (the, uh, Aluminum Ratio? Or something?). And this means that
$$\frac{-1}{x^2 + x - 1} = \frac{A}{x + \Phi} + \frac{B}{x + \Psi}.$$
I’ll let you check my math here, but I’d wager a cat that $A = \frac{-1}{\sqrt{5}} \Phi$ and $B = \frac{1}{\sqrt{5}}\Psi$.
First, let’s work with $\frac{A}{x+\Phi}$:
$$\begin{array}{r c l}
\frac{A}{x+\Phi} &=& \frac{-1}{\sqrt{5}}\cdot \frac{\Phi}{x+\Phi} \\
&=& \frac{-1}{\sqrt{5}}\cdot \frac{1}{(1 + \frac{x}{\Phi})} \\
&=& \frac{-1}{\sqrt{5}} \displaystyle \sum_{n=0}^\infty \left(\frac{x}{\Phi}\right)^n\\
&=& \frac{-1}{\sqrt{5}} x^n \Phi^{-n} \\
&=& \frac{1}{\sqrt{5}} x^n \Psi^n,\\
\end{array}$$
where that last equality comes from the fact that $\Phi \Psi = -1$, so $-\Phi^{-1} = \Psi^1$ (and vice versa). Similar trickery gives $$\frac{B}{x+\Psi} = \frac{-1}{\sqrt{5}} \displaystyle \sum_{n=0}^\infty x^n \Phi^n.$$
Putting all of this together, we have $$F(x) = \frac{1}{\sqrt{5}} \displaystyle \sum_{n=0}^\infty (\Phi_n - \Psi_n)x^n.$$ Remember that the coefficient of $x^n$ in $F(x)$ is actually $F_n$, and therefore — drumroll, please! —
$$F_n = \frac{1}{\sqrt{5}}(\Phi^n - \Psi^n).$$
And so, to calculate $F_{108}$, just pop $\frac{1}{\sqrt{5}} \left( \left(\frac{1+\sqrt{5}}{2} \right)^{108} - \left(\frac{1-\sqrt{5}}{2}\right)^{108}\right)$ into your into your favorite calculator. For instance, wolfram alpha calculates that this Fibonacci number is merely sixteen sextillion, six hundred forty-one quintillion, twenty-seven quadrillion, seven hundred fifty trillion, six hundred twenty billion, five hundred sixty-three million, six hundred sixty-two thousand, and ninety-six. $\square$

No comments:

Post a Comment

Featured:

Remote Semester Orientation

Advice from Abbi Jutkowitz, Film Editor, who has worked from home on and off for 5+ years, and worked from home exclusively for the past 8 m...