Loading...
Loading...
Discrete Math · Axiom Academy
A powerful technique that encodes infinite sequences as coefficients of power series, transforming difficult recurrence relations into algebraic equations. 1. Encoding Sequences as Functions Each term in the sequence becomes a coefficient of a power of x . The sequence is "encoded" in the function, and the position of each number is marked by the exponent of x . 2. Recurrence Relations Become Equations Here's where generating functions shine: a recurrence relation for the sequence becomes an algebraic equation for the generating function! Start with a recurrence: a_n = a_ n-1 + a_ n-2 (Fibonacci) Multiply both sides by x^n and sum over all n Recognize the sums as G(x) , xG(x) , and x^2G(x) Solve the resulting algebraic equation for G(x) For the Fibonacci sequence with F_0 = 0 , F_1 = 1 , and F_n = F_ n-1 + F_ n-2 , this process yields: 3. Partial Fractions Recover the Sequence Once we have a closed-form generating function, we can extract the original sequence using partial fraction decomposition and known series expansions. Each fraction expands as a geometric series Read off coefficient of x^n : Binet's formula! Generating functions aren't just a clever trick—they're a fundamental bridge between discrete and continuous mathematics. Operations on sequences become simple algebraic operations on functions Convolutions (like sequence multiplication) become product of functions Shifts in sequences become multiplication by powers of x
This is the written version of the interactive lesson above. See the full Discrete Math course.