Recurrence relations
A recurrence relation defines each term of a sequence from the ones before it. Examples are “add interest, then add a deposit” or “each pair of rabbits produces another pair”. Solving one gives a formula for the nth term, so you can jump straight to the 100th term.
Key facts
- First order uₙ₊₁ = auₙ + b (a ≠ 1): the fixed point is L = b/(1 − a) and the solution is uₙ = a^n(u₀ − L) + L.
- It converges to L exactly when |a| < 1 (unless it starts at L).
- Second order uₙ₊₂ = puₙ₊₁ + quₙ: the auxiliary equation is r^2 = pr + q.
- Distinct roots α and β: uₙ = Aαⁿ + Bβⁿ. A repeated root α: uₙ = (A + Bn)αⁿ. Use the first two terms to find A and B.
- Arithmetic (uₙ₊₁ = uₙ + d) and geometric (uₙ₊₁ = ruₙ) sequences are the simplest recurrences.
- Counting problems give recurrences: climbing stairs 1 or 2 at a time gives the Fibonacci numbers.
Worked examples
Example 1
uₙ₊₁ = 3uₙ − 4 with u₀ = 5. Find u₁, u₂, u₃ and a formula for uₙ.
- Apply the rule three times. u₁ = 11, u₂ = 29, u₃ = 83
- Fixed point: L = 3L − 4, L = 2
- Use the formula with u₀ = 5. uₙ = 3^n(5 − 2) + 2 = 3^(n+1) + 2
- Check n = 3. 3^4 + 2 = 83 ✓
Answer: u₁ = 11, u₂ = 29, u₃ = 83, uₙ = 3ⁿ⁺¹ + 2
Example 2
A savings account starts with £1,000. Each year 5% interest is added and then £100 is withdrawn. Find a formula for the balance and the balance after 10 years.
- The recurrence is Bₙ₊₁ = 1.05Bₙ − 100
- Fixed point: L = 1.05L − 100, L = 2,000
- Use the formula with B₀ = 1,000. Bₙ = 1.05^n(1,000 − 2,000) + 2,000 = 2,000 − 1,000 × 1.05^n
- After 10 years: 2,000 − 1,628.89 = 371.11
Answer: Bₙ = 2,000 − 1,000 × 1.05ⁿ, about £371.11
Example 3
Solve uₙ₊₂ = uₙ₊₁ + 6uₙ with u₀ = 3 and u₁ = 4.
- Solve the auxiliary equation. r^2 = r + 6 ⇒ r = 3, r = −2
- General solution: uₙ = A × 3^n + B(−2)^n
- Use u₀ = 3 and u₁ = 4. A + B = 3, 3A − 2B = 4, A = 2, B = 1
- Check u₂ with the rule, then with the formula. 4 + 18 = 22, 2 × 9 + 4 = 22 ✓
Answer: uₙ = 2 × 3ⁿ + (−2)ⁿ
Example 4
uₙ₊₁ = 2uₙ + 1 with u₀ = 1. Find u₃.
- Apply the rule three times. u₁ = 3, u₂ = 7, u₃ = 15
Answer: 15