Loading lessons...
Non-Homogeneous Recurrences: Particular Solutions
Non-Homogeneous Recurrences: Particular Solutions
A recurrence such as aᵣ − 5aᵣ₋₁ + 6aᵣ₋₂ = 2 + r has a "driving" term f(r) on the right. Its complete solution is
- a⁽ʰ⁾ is the general solution of the homogeneous part (f(r) replaced by 0, Lesson 20);
- a⁽ᵖ⁾ is any one solution of the full recurrence, found by guessing its form - the method of undetermined coefficients.
Why the sum? If p and q both satisfy the full recurrence, their difference satisfies the homogeneous one. So every solution is "one particular solution + some homogeneous solution".
1. Choosing the Trial Form
Guess the form of a⁽ᵖ⁾ from f(r), substitute, and solve for the constants.
| f(r) | Trial a⁽ᵖ⁾ |
|---|---|
| constant d, 1 not a root | 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 |
Why the extra rˢ? If b is already a characteristic root, A·bʳ satisfies the homogeneous equation, so substituting it gives 0 - it can never produce f(r). Multiplying by r (or r² for a double root) gives a new function that works.
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⁽ᵖ⁾, never to a⁽ʰ⁾ alone.
2. Solved Examples
Solved 1 (constant, first order). Hₙ = 2Hₙ₋₁ + 1, H₁ = 1 (Tower of Hanoi).
- Homogeneous: m = 2 → c·2ⁿ.
- Trial: A (1 is not a root): A = 2A + 1 → A = −1.
- Hₙ = c·2ⁿ − 1; H₁ = 2c − 1 = 1 → c = 1. Hₙ = 2ⁿ − 1 (same as by iteration).
Solved 2 (polynomial, first order). aₙ = 2aₙ₋₁ + n, a₀ = 1.
- Homogeneous: c·2ⁿ.
- Trial: A + Bn: A + Bn − 2(A + B(n − 1)) = n → −A + 2B − Bn = n → B = −1, A = −2.
- aₙ = c·2ⁿ − n − 2; a₀ = c − 2 = 1 → c = 3. aₙ = 3·2ⁿ − n − 2.
- Check: a₁ = 2 + 1 = 3 = 6 − 1 − 2 ✓; a₂ = 6 + 2 = 8 = 12 − 2 − 2 ✓
Solved 3 (PYQ - polynomial, second order). ar - 5ar-1 + 6ar-2 = 2 + r, a₀ = 1, a₁ = 1.
- Homogeneous: m² − 5m + 6 = 0 → m = 2, 3; a⁽ʰ⁾ = c₁2ʳ + c₂3ʳ.
- Trial: A + Br (1 is not a root): (A + Br) − 5(A + B(r − 1)) + 6(A + B(r − 2)) = 2A − 7B + 2Br = 2 + r.
- Compare coefficients: 2B = 1 → B = 1/2; 2A − 7/2 = 2 → A = 11/4.
- ar = c1 2r + c2 3r + 11/4 + r/2.
- a₀: c₁ + c₂ + 11/4 = 1; a₁: 2c₁ + 3c₂ + 11/4 + 1/2 = 1 → c₁ = −3, c₂ = 5/4.
- ar = -3 · 2r + (5/4) 3r + 11/4 + r/2. Check a₂ = 5 − 6 + 4 = 3, formula: −12 + 45/4 + 11/4 + 1 = 3 ✓
Solved 4 (exponential, b not a root). ar - 5ar-1 + 6ar-2 = 5r. Trial A·5ʳ: A·5ʳ − 5A·5ʳ⁻¹ + 6A·5ʳ⁻² = 5ʳ. Divide by 5ʳ⁻²: 25A − 25A + 6A = 25 → A = 25/6. ar = c1 2r + c2 3r + (25/6) 5r.
Solved 5 (b is a simple 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.
Solved 6 (b is a double root). ar - 4ar-1 + 4ar-2 = 2r. Root 2 twice, so try A r2 2r. Dividing by 2ʳ: A[r² − 2(r − 1)² + (r − 2)²] = 1 → 2A = 1 → A = 1/2. ar = (c1 + c2 r) 2r + (1/2) r2 2r.
Solved 7 (1 is a root, polynomial). aₙ − aₙ₋₁ = n, a₀ = 0 (sum 1 + 2 + … + n). 1 is a root, so try n(A + Bn): A + B(2n − 1) = n → B = 1/2, A = 1/2. a⁽ᵖ⁾ = n(n + 1)/2; with a₀ = 0 the constant is 0, so aₙ = n(n + 1)/2 ✓
Solved 8 (1 is a double root). ar - 2ar-1 + ar-2 = 7. Try A·r²: A[r² − 2(r − 1)² + (r − 2)²] = 2A = 7 → A = 7/2. ar = c1 + c2 r + 7r2/2.
Solved 9 (sum of terms). aₙ − 3aₙ₋₁ = 2 + 3ⁿ. Root 3. Trial A + B·n·3ⁿ (constant part: 1 not a root; exponential part: 3 is a root).
- Constant part: A − 3A = 2 → A = −1.
- Exponential part: Bn3ⁿ − 3B(n − 1)3ⁿ⁻¹ = 3ⁿ → B·3ⁿ = 3ⁿ → B = 1.
aₙ = c·3ⁿ − 1 + n·3ⁿ.
3. Checklist for a 10-Mark Answer
- Write the characteristic equation and its roots.
- Write a⁽ʰ⁾.
- Choose the trial a⁽ᵖ⁾, with the rˢ factor where needed, and say why.
- Substitute and compare coefficients.
- Write a = a⁽ʰ⁾ + a⁽ᵖ⁾.
- Apply the initial conditions and solve for the constants.
- Verify one computed term.
> Key points to remember - Complete solution = homogeneous + particular. - Trial form follows f(r): constant → A, polynomial → polynomial of the same degree, bʳ → A·bʳ. - Multiply the trial by rˢ when its base (b, or 1 for polynomials) is a root of multiplicity s. - Fit the initial conditions to the complete solution.
📝 IPU End-Term Exam Corner (5-10 Marks)
- Q1. Solve ar - 5ar-1 + 6ar-2 = 2 + r with a₀ = a₁ = 1. (10 Marks)
- Q2. Find the particular solution of ar - 3ar-1 + 2ar-2 = 2r. (5 Marks) → r 2r+1.
- Q3. Solve aₙ = 2aₙ₋₁ + n, a₀ = 1. (5 Marks) → 3·2ⁿ − n − 2.
- Q4. Find the particular solution of ar - 4ar-1 + 4ar-2 = 2r. (5 Marks) → (1/2) r2 2r.
- Q5. Explain when the trial particular solution must be multiplied by r. (2.5 Marks)