Generating functions
The Fibonacci numbers and power series
Define the function in terms of the infinite power series What does the recursive relation satisfied by say about ? Does this give an alternative derivation of the closed formula for ?
The solution of this problem is a little longer, so it is important to start with a plan and understand that well. The premise behind generating functions, of which is an example, is that a recursive relation can be translated to an equation satisfied by . We can find an expression for , and in turn that will give a closed formula for the original sequence.
Since the Fibonacci relation reads , and the coefficient of in is , we need to find a way to place and as coefficients in front of . Starting from , this can be easily achieved if we multiply it by and : The sum of these two series resembles closely: If we subtract the second and third line from the first, the coefficients of for are zero: This completes the first part of out task, that is, finding a formula for the function :
We are now left to translate our knowledge about to a formula for the Fibonacci sequence . We see that is a rational function (a ratio of two polynomials), but the denominator has degree 2. Such quotients are much harder to understand than ones involving a linear denominator, so out first goal is present in a more suitable form. The issue we described is a very common problem when we integrate rational functions, and it is typically resolved using the partial fraction decomposition.
First, we find that the roots of the denominator are and , where We can then write A partial fraction decomposition for is an expression for some constants and . Bringing this expression to a common denominator and equating the numerator to , we find that In conclusion, we found that
To find a formula for , we recall the geometric series formula where . Using and above, we compute In conclusion, we showed that
REMARK: The power series we presented for does not converge for all values of . Fortunately, it is valid in the intersection of and which is nonempty. Alternatively, we can explain this phenomenon by saying that all computations were performed using formal power series, and there is no need to worry about convergence at all.
Using generating functions
Use generating functions to find a closed formula for each of the following sequences:
- ,
- .
In both cases, and particularly for , it is possible to guess a formula for the sequence and prove that it holds by induction. We would like to present an alternative derivation of these formulas which generalizes to many other cases where guesswork doesn't work as well.
Start by setting . It is possible to find an expression for using the method presented above, but we will use a slightly different technique here. First, we will plug the recursive formula for in the power series, and then we will manipulate it to extract a copy of the original function from it. Rearranging, we get This expression has a partial fraction decomposition Expanding using the geometric series formula, we get so
Before working on the second sequence , it is helpful to expand our toolkit of basic power series. So far, we have only worked with the geometric series formula What happens if we differentiate both sides? The left sides is while the right hand side reads Equating and rearranging, we obtain This formula is important for two reasons. First, if we encounter the series , we can now replace it with . Secondly, we also found a power series expansion for , which allows us to handle rational functions with a repeated root of the denominator. Both of these are necessary for the analysis of .
If we set , we have Rearranging, we obtain The general form of a rational function with this denominator is and our this case we have In conclusion, we found that