Recurrence Relations — Homogeneous and Particular Solutions
A linear recurrence relation with constant coefficients is solved by combining the homogeneous solution (general solution of the equation with zero forcing term) and a particular solution (any single solution of the full equation). The general solution is . Applies to sequences defined recursively — algorithm analysis, combinatorics, difference equations, discrete dynamical systems. The method mirrors that for linear ODEs and dates to Euler, de Moivre, and Lagrange (18th century).
The solution operator is linear. If , then is a linear map on sequences. Solving is therefore exactly like solving a linear system : the solution set is a coset of the kernel. The kernel is the homogeneous solution space (), and any single solution of shifts the whole kernel into place. Everything else — characteristic equations, repeated-root corrections, the method of undetermined coefficients — is machinery for computing these two pieces.
Formal Statement
A -th order linear recurrence relation with constant coefficients is
where:
- is the unknown sequence (the solution);
- are real (or complex) constants with (so the order is genuinely );
- is a given forcing function (or nonhomogeneous term);
- initial conditions pin down a unique solution.
If , the recurrence is homogeneous; otherwise it is nonhomogeneous (or inhomogeneous). Derivation hint: This is the most general form invariant under the shift operator with fixed coefficients; the condition guarantees that knowing determines and that the past is recoverable.
Substituting the trial solution into the homogeneous version of [1] and dividing by gives the characteristic equation
Its roots (with multiplicity) generate the homogeneous solution space. Derivation hint: With , each term ; factor out the lowest power from .
Let be any particular solution of the nonhomogeneous recurrence [1], and let denote the general solution of the associated homogeneous recurrence . Then every solution of [1] is
and conversely every sequence of this form solves [1]. The free constants in are fixed uniquely by the initial conditions. Derivation hint: If and both solve , linearity gives , so their difference is homogeneous.
Let be the distinct roots of [2] with multiplicities (). Then the general homogeneous solution is
with arbitrary constants . For a simple root this reduces to . Derivation hint: Distinct-root solutions are linearly independent (Vandermonde). For a root of multiplicity , the functions () all lie in the kernel; verify by substituting for a double root.
Why It Holds / Derivation
We prove [3] in numbered steps. 1. is linear. Define . For scalars and sequences :
Derivation hint: Each term ; sum termwise. 2. Difference of two solutions is homogeneous. Suppose and . By step 1, , so solves the homogeneous equation. 3. Therefore . Every solution differs from a fixed particular solution by a homogeneous solution. 4. Conversely, if is homogeneous and particular, then , so the sum is a solution. 5. Dimension count. The map "solution " is a bijection between the homogeneous solution space and (or ), because initial data determine and are determined freely. Hence the kernel has dimension , matching the constants in [4].
∎Suppose is a double root of [2], so the characteristic polynomial satisfies . Consider the operator-level identity: applying to produces . Differentiating with respect to before applying commutes appropriately, giving
At a double root both and , so the right side vanishes; thus (a constant multiple of ) is also a homogeneous solution. Iterating differentiation gives for . Derivation hint: Treat as a function of the continuous variable ; acts only on the index , so passes through it.
∎De Moivre, a French Huguenot émigré in London, was the first to systematically extract closed forms from recurrences. Studying the Fibonacci-like sequences arising in probability (gambler's ruin, runs in coin tossing), he introduced the generating-function idea and the trick of solving via roots of . The resulting expression — later named Binet's formula after the 19th-century mathematician who popularized it — was effectively known to de Moivre and to Euler. De Moivre's Doctrine of Chances (1718, 1738, 1756) treats "recurring series" as a named topic, establishing the partial-fraction method for their summation.
Building Intuition
Think of a recurrence as a discrete machine that, given enough past states, computes the next. The homogeneous part captures the machine's internal dynamics — how it would evolve if left alone (geometric growth/decay, oscillation), governed entirely by the roots . The roots are the machine's natural modes: means a mode blows up, means it dies, means it persists, and complex roots mean it oscillates. The particular solution is the machine's forced response — the way it tracks the external input . After transients (the decaying homogeneous modes) wash out, the particular solution dominates, just as a driven oscillator eventually moves at the driving frequency. The two pieces are independent because the system is linear: superposition lets you solve "natural behavior" and "forced behavior" separately and simply add them.
Worked Examples
Given: , with , . (Forcing , so it is purely homogeneous.)
Step 1 — Characteristic equation. Rewrite as . Trial :
Derivation hint: divide by .
Step 2 — Roots.
Derivation hint: quadratic formula on [7].
Step 3 — General homogeneous solution. Distinct roots, so .
Step 4 — Apply initial conditions.
Derivation hint: gives the first; the second; subtract using .
Answer:
Check: . ✓
Given: , with .
Step 1 — Homogeneous part. Characteristic equation , a double root . By [4]:
Derivation hint: multiplicity 2 introduces the factor .
Step 2 — Particular solution (undetermined coefficients). Forcing is linear and is not a root, so try . Substitute:
Derivation hint: shift the index in each occurrence and collect. Expanding: . Matching:
So . Derivation hint: coefficient of gives ; constant term gives .
Step 3 — General solution. .
Step 4 — Initial conditions.
Derivation hint: plug into the full general solution and solve the system.
Answer:
Check : ; directly . ✓
Common Misconceptions
Resonance: the forcing matches a homogeneous mode. When the trial particular solution duplicates a term already in , the naive guess fails (it gets annihilated by ). You must multiply by , where is the multiplicity of the offending root. Concretely, for forcing :
Derivation hint: vanishes when is a root; the factor pushes you past the kernel just as in repeated-root homogeneous solutions. Other frequent errors: (1) forgetting the -factors for repeated roots (you'll be one constant short and unable to satisfy all initial conditions); (2) applying initial conditions to before adding — always assemble the full first; (3) using on a recurrence whose coefficients are not constant (e.g. ) — the characteristic method does not apply there.
Solve . The homogeneous root is , so . A student guesses . Substituting:
The guess is annihilated — it lives in the kernel. Because is a root of multiplicity , the correct ansatz is :
Hence . The "obvious" guess gave a contradiction precisely because of resonance.
Connections
Linear recurrences are the discrete shadow of Linear Differential Equations with Constant Coefficients: the shift operator (where ) plays the role of , and the characteristic polynomial is identical in spirit. The homogeneous/particular split is the same affine-coset structure seen in any Linear Systems of Equations (). Generating Functions give an alternative, often more powerful, solution route — encoding a sequence as converts the recurrence into an algebraic equation whose partial-fraction expansion re-derives the root-based closed form. Higher-order recurrences also reduce to first-order vector recurrences , linking the topic to Eigenvalues and Eigenvectors: the characteristic roots are exactly the eigenvalues of the companion matrix , and repeated roots correspond to nontrivial Jordan Normal Form blocks.
Real-World Applications
Historical Development
Subtleties & Limits
The clean closed-form theory is fragile outside the linear-constant-coefficient world.
- Variable coefficients. For with polynomial , no characteristic-polynomial method exists in general. Whether such a recurrence admits a closed-form (hypergeometric or "Liouvillian") solution is decidable by Petkovšek's algorithm (1992) and the Gosper/Zeilberger machinery, but a general elementary solution need not exist.
- Nonlinear recurrences. Even the innocent-looking logistic map has no closed form for general and exhibits chaos; superposition fails entirely.
- Skolem's Problem. For a linear recurrence over the integers, deciding whether some term equals zero (the Skolem–Mahler–Lech zero set is known to be eventually periodic) is not known to be decidable — a long-standing open problem at the boundary of number theory and computability, despite the apparent simplicity of the underlying recurrence.
- Repeated-root forcing combinations. When is itself a sum of resonant and non-resonant terms, the correct particular ansatz requires treating each piece with its own resonance multiplier; bookkeeping errors here are the most common source of incorrect final answers.
See Also
Master Theorem for Recurrences · Companion Matrix · Z-Transform · Difference Equations · Catalan Numbers · Stability Theory