Tut 7 NEW Solution
Tut 7 NEW Solution
(g) 𝑎𝑛 = 𝑎𝑛−1 + 1
Solution: is not homogeneous because 𝑓(𝑛) ≠ 0
Theorem: Let x1 and x2 be the roots of the polynomial x2 – rx – s. Then the solution of the recurrence
relation an = ran-1 + san-2 , n ≥ 2 is
1) 𝑎𝑛 = 𝑐1 𝑥1𝑛 + 𝑐2 𝑥2𝑛 𝑖𝑓 𝑥1 ≠ 𝑥2
2) 𝑎𝑛 = 𝑐1 𝑥 𝑛 + 𝑐2 𝒏𝑥 𝑛 𝑖𝑓 𝑥1 = 𝑥2 = 𝑥.
In each case, c1 and c2 are constants determined by initial condition
Write corresponding characteristic equations, and the roots and their multiplicities, write the form of
general solutions and determine the coefficients.
0 = 𝑎𝑛 − 5 ∙ 𝑎𝑛−1 + 4 ∙ 𝑎𝑛−2
The characteristic polynomial: x2 – 5x + 4 = 0 //
The characteristic roots: x1 = 1 and x2 = 4 // (x – 1)·(x – 4)
0 = 𝑎𝑛 − 8 ∙ 𝑎𝑛−1 + 16 ∙ 𝑎𝑛−2
The characteristic polynomial: x2 – 8x + 16 = 0
The characteristic roots: x1 = 4 and x2 = 4 // (x – 4)·(x – 4)
Since x1 = x2 (x1 = x2= x) then the solution will be in this form 𝑎𝑛 = 𝑐1 (𝑥)𝑛 + 𝑐2 (𝑛)(𝑥)𝑛
1) ∶ 𝑎0 = 𝑐1 (4)0 + 𝑐2 (0)(4)0 = −3 𝒄𝟏 + 𝟎 = −𝟑
2) ∶ 𝑎1 = 𝑐1 (4)1 + 𝑐2 (1)(4)1 = 2 𝟒𝒄𝟏 + 𝟒𝒄𝟐 = 𝟐
1) : 𝑐1 = −3 Coefficients:
14 7
2) : 4 (−3) + 4𝑐2 = 2 4𝑐2 = 14 𝑐1 = −3 𝑎𝑛𝑑 𝑐2 = =
4 2
7
The solution is: 𝑎𝑛 = (−3) ∙ (4)𝑛 + ∙ 𝑛 ∙ (4)𝑛
2