Recurrence Relations
Introduction
A recurrence relation defines a sequence by expressing each term as a function of previous terms. Unlike explicit formulas that compute a_n directly, recurrences are iterative: to find a_n, we must first compute earlier terms.
Recurrence relations arise naturally in counting problems, algorithm analysis, dynamical systems, and financial mathematics. The Fibonacci sequence, binomial coefficients, and factorial all satisfy simple recurrences.
Solving a recurrence means finding an explicit (closed-form) formula for the n-th term. This transforms an iterative definition into a direct calculation, often revealing the growth rate and asymptotic behavior.
This page develops methods for solving recurrence relations, focusing on linear recurrences with constant coefficients and introducing generating function techniques.
Basic Definitions
Recurrence Relation
A recurrence relation for a sequence
The order of a recurrence is the difference between the largest and smallest indices appearing. A first-order recurrence involves
Initial Conditions
A recurrence alone does not determine a unique sequence. Initial conditions specify the first few terms, after which the recurrence determines all remaining terms.
A
Linear Recurrences
A linear recurrence has the form:
where the coefficients
First-Order Linear Recurrences
Homogeneous Case
The simplest recurrence is
This is geometric growth if
Nonhomogeneous Case
For
Finding a particular solution depends on the form of
Substituting:
Second-Order Linear Recurrences
The Characteristic Equation
For
Dividing by
The roots of this quadratic determine the form of the general solution.
Distinct Real Roots
If the characteristic equation has distinct roots
The constants
Repeated Root
If the characteristic equation has a repeated root
The factor
Complex Roots
Complex conjugate roots
The solution oscillates with period
The Fibonacci Sequence
The Fibonacci sequence satisfies
The characteristic equation
Applying initial conditions gives Binet's formula:
Since
Higher-Order Recurrences
For a
If all
Repeated roots contribute terms with polynomial coefficients. A root
Nonhomogeneous Recurrences
For
where
For
For
Applications
Algorithm Analysis
The running time
The Master theorem provides solutions for recurrences of the form
Counting Problems
Many counting problems lead to recurrences. The number of ways to tile a
Financial Mathematics
The balance
Dynamical Systems
Discrete dynamical systems evolve according to
Generating Function Method
Generating functions offer an alternative approach to solving recurrences. Multiply the recurrence by
Solving for
Summary
A recurrence relation defines
Linear recurrences with constant coefficients are solved using the characteristic equation. For
Distinct roots
The Fibonacci sequence has the closed form
Nonhomogeneous recurrences add a particular solution to the homogeneous solution. The form of the particular solution depends on the forcing term
Applications include algorithm analysis (running time), counting (combinatorics), finance (amortization), and dynamical systems.
Generating functions provide an alternative method by converting the recurrence into an algebraic equation.
The asymptotic behavior is dominated by the largest characteristic root. Understanding recurrences reveals the growth rates of sequences and algorithms.