Loading lessons...
Recurrence Relations: Linear with Constant Coefficients
- What is a Recurrence Relation?
A recurrence relation expresses aₙ in terms of earlier terms. With enough initial conditions it defines the sequence uniquely.
Example: aₙ = aₙ₋₁ − aₙ₋₂, a₀ = 3, a₁ = 5 → a₂ = 2, a₃ = −3, a₄ = −5, …
- Order = highest index − lowest index. ar - ar-1 = 2r has order 1; 5ar + ar-1 - 3ar-2 = r2 + 5 has order 2.
- Degree = highest power of the a-terms (both examples have degree 1).
- Linear: the a-terms appear only to the first power and are not multiplied together. fn = 3fn-12 and fn = 2fn-1fn-2 are non-linear.
- Homogeneous: the right side has no term free of a (f(r) = 0). Hn = 2Hn-1 + 1 is non-homogeneous.
The general linear recurrence with constant coefficients of order k:
Its solution is a = a⁽ʰ⁾ + a⁽ᵖ⁾ (homogeneous solution + particular solution).
Solving a linear recurrence: characteristic roots → homogeneous part, trial form → particular part
2. First-Order Linear Recurrences
aₙ = c·aₙ₋₁ with a₀ given unrolls to aₙ = a₀·cⁿ. For aₙ = c·aₙ₋₁ + d (c ≠ 1):
3. Homogeneous Solution-Characteristic Equation
Try aᵣ = mʳ. For ar + C1 ar-1 + C2 ar-2 = 0 the characteristic (auxiliary) equation is m² + C₁m + C₂ = 0.
| Roots | Homogeneous solution |
|---|---|
| distinct real m₁, m₂ | c1 m1r + c2 m2r |
| repeated m (twice) | (c1 + c2 r) mr |
| repeated m (three times) | (c1 + c2 r + c3 r2) mr |
| complex α ± iβ | Rr(c1 cos rθ + c2 sin rθ), R = √(α² + β²), θ = tan⁻¹(β/α) |
Solved 1 (distinct). ar - 7ar-1 + 10ar-2 = 0, a₀ = 0, a₁ = 3. m² − 7m + 10 = 0 → m = 2, 5. ar = c1 2r + c2 5r. a₀: c₁ + c₂ = 0; a₁: 2c₁ + 5c₂ = 3 → c₂ = 1, c₁ = −1. ar = 5r - 2r.
Solved 2 (triple root). ar - 3ar-1 + 3ar-2 - ar-3 = 0, a₀ = 1, a₁ = −2, a₂ = −1. (m − 1)³ = 0 → ar = c1 + c2 r + c3 r2. c₁ = 1; 1 + c₂ + c₃ = −2; 1 + 2c₂ + 4c₃ = −1 → c₃ = 2, c₂ = −5. ar = 1 - 5r + 2r2 (check a₂ = 1 − 10 + 8 = −1 ✓).
Solved 3 (complex). ar + 2ar-1 + 2ar-2 = 0, a₀ = 0, a₁ = −1. m² + 2m + 2 = 0 → m = −1 ± i, R = √2, θ = 3π/4. ar = (√(2))r(c1 cos(3πr/4) + c2 sin(3πr/4)). a₀ = 0 → c₁ = 0; a₁ = √2·c₂·(√2/2) = c₂ = −1. ar = -(√(2))r sin(3πr/4).
Fibonacci. Fₙ = Fₙ₋₁ + Fₙ₋₂: m² − m − 1 = 0 → φ = (1 + √5)/2, ψ = (1 − √5)/2 → Fₙ = (φⁿ − ψⁿ)/√5 (Binet's formula).
4. Particular Solution-Method of Undetermined Coefficients
Guess the form of a⁽ᵖ⁾ from f(r), substitute, and solve for the constants.
| f(r) | Trial a⁽ᵖ⁾ |
|---|---|
| bʳ, b not a root | A·bʳ |
| bʳ, b a root of multiplicity s | A·rˢ·bʳ |
| polynomial of degree d | A0 + A1 r + … + Ad rd |
| polynomial, 1 a root of multiplicity s | rˢ(A₀ + A₁r + …) |
| bʳ × polynomial | bʳ(A₀ + A₁r + …), times rˢ if b is a root |
| sum of the above | sum of the trial forms |
Solved 4. ar - 5ar-1 + 6ar-2 = 2 + r, a₀ = 1, a₁ = 1. Homogeneous: m = 2, 3. Trial A + Br: (A + Br) − 5(A + B(r − 1)) + 6(A + B(r − 2)) = 2A − 7B + 2Br = 2 + r → B = 1/2, A = 11/4. ar = c1 2r + c2 3r + 11/4 + r/2; initial conditions give c₁ = −3, c₂ = 5/4. ar = -3 · 2r + (5/4) 3r + 11/4 + r/2.
Solved 5 (b is a root). ar - 3ar-1 + 2ar-2 = 2r. Roots 1, 2-2 is a simple root, so try A r 2r. Substituting and dividing by 2r-2: 4Ar − 6A(r − 1) + 2A(r − 2) = 4 → 2A = 4 → A = 2. a(p) = 2r · 2r = r 2r+1; ar = c1 + c2 2r + r 2r+1.
More (answers checked)
- ar - 5ar-1 + 6ar-2 = 5r → particular (25/6) 5r.
- ar - 4ar-1 + 4ar-2 = 2r (double root 2) → particular (1/2) r2 2r.
- ar - 2ar-1 + ar-2 = 7 (1 is a double root) → particular 7r2/2.
Find the homogeneous solution first: whether the trial form needs the extra factor rˢ depends on the characteristic roots. Apply the initial conditions only to the complete solution a⁽ʰ⁾ + a⁽ᵖ⁾.
📝 IPU End-Term Exam Corner (5-10 Marks)
- Q1. Solve ar - 7ar-1 + 10ar-2 = 0, a₀ = 0, a₁ = 3. (5 Marks) → 5r - 2r.
- Q2. Solve ar - 5ar-1 + 6ar-2 = 2 + r with a₀ = a₁ = 1. (10 Marks)
- Q3. Solve ar - 3ar-1 + 3ar-2 - ar-3 = 0, a₀ = 1, a₁ = −2, a₂ = −1. (5 Marks) → 1 - 5r + 2r2.
- Q4. Define order and degree of a recurrence; classify an = 3an-2 + 4an-3 - 7an-5. (2.5 Marks) → linear, homogeneous, constant coefficients, order 5.