Recurrence Relations and Solving Them
A recurrence relation defines each term of a sequence as a function of preceding terms. Solving one means finding a closed-form expression depending only on . The dominant techniques are characteristic equations (linear constant-coefficient), generating functions, iteration/telescoping, and the Master Theorem (divide-and-conquer). Indispensable in combinatorics, algorithm analysis, numerical methods, and discrete dynamical systems. Studied since Fibonacci (1202), formalized by de Moivre, Euler, and Laplace in the 18th century.
A recurrence is a discrete dynamical rule; solving it is finding the rule's "flow." For linear constant-coefficient recurrences the key realization is that geometric sequences are eigenfunctions of the shift operator — substituting turns the recurrence into a polynomial (the characteristic equation), and superposition assembles the general solution from these geometric building blocks. Every other method (generating functions, matrix powers, Z-transforms) is a repackaging of this single idea.
Formal Statement
A recurrence relation of order for a sequence is an equation
Derivation hint: this is a definition — is any given function and "order " means the term reaches back exactly steps, requiring to genuinely appear. together with initial conditions . Here is the integer index, the term, the order, and the recurrence function. The recurrence is:
- linear if is affine in the ;
- homogeneous if the constant (forcing) term is zero;
- constant-coefficient if the coefficients do not depend on .
A linear homogeneous recurrence with constant coefficients of order has the form
Derivation hint: specialize [1] to linear, no -dependence in coefficients, and zero constant term; enforces true order . with constants . Its characteristic equation is the degree- polynomial obtained by substituting the trial solution :
Derivation hint: substitute into [2], giving ; divide by and rearrange.
Let [2] have characteristic equation [3] with distinct roots of multiplicities where . Then every solution of [2] is uniquely
Derivation hint: each root contributes linearly independent solutions for ; the constants are fixed by the initial conditions through a Vandermonde-type system that is invertible because the roots are distinct. where the are constants determined by the initial conditions.
For the inhomogeneous linear recurrence
Derivation hint: this is [2] plus a forcing term . the general solution is
Derivation hint: linearity — if solves [5] and solves the associated homogeneous [2], their sum solves [5]; conversely the difference of any two solutions of [5] satisfies [2]. where is the general homogeneous solution [4] and is any particular solution. When with a polynomial of degree , try
Derivation hint: is a degree- polynomial with undetermined coefficients; is the multiplicity of as a root of [3] (the factor avoids collision/resonance with homogeneous solutions, exactly as in linear ODEs).
Why It Holds / Derivation
proof[Solution Space is k-Dimensional; Geometric Basis] Step 1 — The solution set is a vector space. If and both satisfy the homogeneous [2], so does for scalars , since [2] is linear and homogeneous. Thus solutions form a -vector space .
Step 2 — . A solution is completely determined by the initial vector via forward iteration of [2], and conversely each such vector yields a solution. The map , , is a linear bijection, so .
Step 3 — Geometric sequences are solutions. Substituting into [2] and dividing by yields the characteristic equation [3]. Hence solves [2] iff is a characteristic root.
Step 4 — Distinct roots give a basis. If are distinct, the sequences are linearly independent: their initial-condition vectors form the columns of a Vandermonde matrix with determinant . These independent solutions span the -dimensional .
Step 5 — Repeated roots. If has multiplicity , then is a root of [3] and its first derivatives. One checks that for each satisfy [2] (substitute and use of the characteristic polynomial vanishing at ). These supply independent solutions per repeated root, restoring a total of , hence the form [4].
De Moivre, a French Huguenot émigré to London and friend of Newton, was the first to give a systematic closed-form solution of linear recurrences. In Miscellanea Analytica (1730) he introduced what we now call generating functions to solve "recurrent series," explicitly producing the Fibonacci closed form before Binet's name attached to it. His work on the de Moivre formula is precisely the complex-root machinery needed to express oscillatory solutions of real recurrences in trigonometric form. He famously, and morbidly, predicted his own death by noticing he was sleeping 15 more minutes each night — an arithmetic recurrence terminating when total sleep reached 24 hours.
Building Intuition
Think of a recurrence as a machine with memory slots. At each tick it reads the last values, combines them, and pushes out a new value. The whole future is locked once you load the initial values — exactly degrees of freedom, which is why you need exactly initial conditions and the solution space is -dimensional. Why geometric sequences? The recurrence is invariant under shifting : the rule at step is identical to the rule at step . A sequence that "looks the same after shifting except for scaling" is geometric, . These self-similar sequences are the natural modes, like normal modes of a vibrating system. The characteristic equation just asks "which scaling factors are consistent with the rule?" Repeated roots are the discrete echo of critical damping: when two modes collide they fuse and a factor of appears, exactly as appears for repeated ODE roots.
Worked Examples
Given: , with .
Step 1 — Characteristic equation. Substitute : , i.e. .
Step 2 — Roots.
Step 3 — General solution. (distinct roots).
Step 4 — Apply initial conditions.
- : .
- : .
Solving: .
Step 5 — Closed form (Binet's formula).
Check: ✓ (dimensionless count of pairs/tilings)
Given: the cost recurrence , with . (Forcing .)
Step 1 — Homogeneous part. , so .
Step 2 — Detect resonance. The forcing base equals the homogeneous root, multiplicity . By [7] try (note the factor ).
Step 3 — Solve for . Substitute into the recurrence:
Divide by : So .
Step 4 — General + initial condition. . At : , so .
Step 5 — Closed form.
Check: , and formula gives ✓ Asymptotically operations.
Common Misconceptions
The single most common error in the inhomogeneous case is using a trial solution that collides with a homogeneous solution. If and is a characteristic root of multiplicity , you must multiply the trial form by (equation [7]). Forgetting this gives an inconsistent system with no solution for the undetermined coefficients, because you are trying to match a forcing term using a function the operator annihilates. This is the exact discrete analogue of resonance in driven oscillators.
An order- recurrence needs exactly initial conditions, and they must be "consecutive enough" to determine the solution. Supplying and for a second-order recurrence may fail (or be ill-posed) if the resulting linear system is singular. Too few conditions leaves free parameters; too many overdetermines and may be inconsistent.
Consider with . Characteristic equation gives a double root . If you naively write , you have only one free constant and cannot match both initial conditions: from , but then . The fix is the repeated-root form . Then , and , giving . The "extra" is not optional — it is forced by the dimension count in [4].
Connections
Recurrence relations are the discrete sibling of Linear Differential Equations: the characteristic-equation method, superposition, and resonance all transfer verbatim, with playing the role of . The matrix viewpoint links them to Eigenvalues and Eigenvectors — a linear recurrence is on the state vector , so is read off from , and eigenvalues are exactly the characteristic roots. Generating Functions provide an algebraic alternative that handles inhomogeneous and variable-coefficient cases uniformly by encoding the whole sequence as a power series. The Z-Transform in signal processing is the engineering name for the same generating-function map. Finally, the Master Theorem specializes the theory to divide-and-conquer recurrences central to Analysis of Algorithms.
Real-World Applications
Historical Development
Subtleties & Limits
The clean theory covers linear constant-coefficient recurrences. Beyond this:
- Variable coefficients rarely have elementary closed forms; the Poincaré–Perron theorem gives only asymptotic ratios a root of a limiting characteristic equation, and even deciding whether a closed form exists (the algorithmic theory of holonomic / P-recursive sequences, via Petkovšek's algorithm) is delicate.
- Nonlinear recurrences (e.g. the logistic map ) generically have no closed form and exhibit chaos; their study belongs to dynamical systems, not algebra.
- Existence of "nice" closed forms is itself subtle: Gosper's and Zeilberger's algorithms (creative telescoping) decide hypergeometric summation but leave many sequences provably without elementary closed form.
- Whether certain combinatorially natural sequences are P-recursive remains open in specific cases, an active research frontier in enumerative combinatorics.
See Also
Fibonacci Numbers · Generating Functions · Master Theorem · Linear Differential Equations · Eigenvalues and Eigenvectors · Catalan Numbers · Z-Transform · Discrete Dynamical Systems · Analysis of Algorithms