discrete dynamical systems
Difference Equations
You should know: recurrence relations
Overview
A difference equation (also called a discrete-time dynamical system) is the discrete analogue of a differential equation: instead of relating a function to its derivatives, it relates a sequence aₙ to its own earlier terms aₙ₋₁, aₙ₋₂, etc. A linear difference equation with constant coefficients, aₙ = c₁aₙ₋₁ + c₂aₙ₋₂ + ⋯ + cₖaₙ₋ₖ + g(n), is solved with machinery that closely mirrors constant-coefficient linear ODEs: a 'characteristic equation' whose roots determine the homogeneous solution, plus a particular solution for any forcing term g(n) found by an undetermined-coefficients-style guess. Difference equations arise naturally whenever a process is sampled or updated at discrete time steps — compound interest, population census data, and any recursively-defined sequence.
Intuition
Where a differential equation's trial solution eʳˣ survives differentiation by picking up a factor of r each time, a difference equation's trial solution rⁿ survives the shift n → n+1 by picking up the same factor of r each time: r^{n+1} = r · rⁿ. That single parallel — 'multiplying by r' replaces 'differentiating' — is why every technique for constant-coefficient ODEs (characteristic equations, superposition of exponential solutions, undetermined coefficients for particular solutions) has a direct discrete counterpart for difference equations, with rⁿ playing the role that eʳˣ plays continuously.
Formal Definition
For a constant-coefficient linear difference equation, substituting the trial solution aₙ = rⁿ into the homogeneous equation produces a characteristic (auxiliary) polynomial equation in r, exactly as eʳˣ does for ODEs:
Derivation
Solve the second-order linear homogeneous difference equation aₙ = 3aₙ₋₁ - 2aₙ₋₂ with a₀=1, a₁=2, by finding its characteristic roots:
Substitute the trial solution and divide out the lowest power of r
Factor the characteristic equation
General solution, a linear combination of the two characteristic-root sequences
Solve for A, B using the two given initial terms
Applications
Worked Examples
Characteristic equation r²-3r+2=0 factors as (r-1)(r-2)=0.
Apply initial conditions a₀=1, a₁=2 to solve for A and B.
Answer: aₙ = 2ⁿ (verified by direct computation: a₀=1,a₁=2,a₂=4,a₃=8,… matches 3aₙ₋₁-2aₙ₋₂ term by term, e.g. a₂=3(2)-2(1)=4 ✓).
Practice Problems
Using aₙ = 4·2ⁿ - 3, compute a₅ two ways: from the closed form, and by iterating aₙ=2aₙ₋₁+3 from a₄.
Find the general solution of aₙ = 5aₙ₋₁ - 6aₙ₋₂ (find the characteristic roots and write the general form; do not apply initial conditions).
A loan balance follows balance_n = 1.05·balance_{n-1} - 100 (5% monthly interest, $100 payment), with balance₀ = 1000. Find the closed form for balance_n.
Common Mistakes
Treating a difference equation's characteristic equation as if the trial solution were e^{rn} rather than r^n.
The natural trial solution for a difference equation is aₙ=rⁿ (a geometric sequence), not an exponential of n in the continuous sense — dividing by the lowest power of r after substitution gives the polynomial characteristic equation directly in r.
Applying the initial conditions before finding the general (homogeneous + particular) solution form.
As with ODEs, first find the complete general solution (all arbitrary constants included) and only then use the given initial terms to pin down the constants — applying conditions too early loses degrees of freedom needed for a k-term recurrence.
Quiz
Summary
- A linear difference equation with constant coefficients relates aₙ to previous terms aₙ₋₁,…,aₙ₋ₖ, and is the discrete analogue of a constant-coefficient linear ODE.
- Trying aₙ=rⁿ converts the homogeneous equation into a polynomial characteristic equation in r, exactly paralleling y=e^{rx} for ODEs.
- Distinct characteristic roots r₁,…,rₖ give a general solution aₙ = A₁r₁ⁿ + ⋯ + Aₖrₖⁿ, with constants fixed by the initial terms.
- Nonhomogeneous difference equations are solved by adding a particular solution found via an undetermined-coefficients-style guess matching the forcing term's form.
References
- BookElaydi, S. An Introduction to Difference Equations, 3rd ed., Ch. 2.
Mathematics