Unit - 5-DM
Unit - 5-DM
This is the general solution of the recurrence relation (2) which is equivalent
to the relation (1).
2/22/2021 D Sreenivasarao-DM-UNIT-5-II CSE-A 4
If f(n) = 0, that is, if the recurrence relation is homogeneous.
The solution (3) becomes
an = Cn a0 for n ≥ 1 -------------------→ (4)
The solutions (3) and (4) yield particular solution if a0 is specified.
The specific value of a0 is called the initial solution.
Sol:
Given that the Recurrence relation is an+1 = 4 an for n ≥ 1.
It is homogeneous because f(n) = 0.
It is given that a0 = 3 and C = 4.
The particular solution is
an = Cn a0 for n ≥ 1
Putting this a0 = 3 and C = 4 into particular solution, we get
an = 4n X 3 for n ≥ 1
This is a particular solution of the relation, satisfying the initial condition a0 = 3.
Sol:
Given that the Recurrence relation may be rewritten as an+1 = 7 an for n ≥ 1.
It is homogeneous because f(n) = 0.
It is given that a2 = 98 and C = 7.
The particular solution is
an = Cn a0 for n ≥ 1
To find a0, 98 = a2 = 72 a0 = 49 a0
Therefore, a0 = 98/49 = 2
Putting this a0 = 2 and C = 7 into particular solution, we get
an = 7n X 2 for n ≥ 1
This is a particular solution of the relation, satisfying the initial condition a2 =
98.
2/22/2021 D Sreenivasarao-DM-UNIT-5-II CSE-A 7
Example 3: if an is a solution of the Recurrence relation an+1=Kan for n≥ 0,
given that a3 = 153/49 and a5 = 1377/ 2401, what is K.
Sol:
Given that the Recurrence relation may be rewritten as an+1 = K an for n ≥ 0.
It is homogeneous because f(n) = 0.
It is given that a3 = 153/49, a5 = 1377 / 2401 and C = K.
The particular solution is an = Cn a0 for n ≥ 1
To find a0,
a5 = K5 a0 = 1377/ 2401
a3 = K3 a0 = 153/49
a5 K5 a 0
----- = ---------- = K2 = (1377/2401) X (49/153) = 9/49
a3 K3 a 0
Therefore, K = ± (3/7).
2/22/2021 D Sreenivasarao-DM-UNIT-5-II CSE-A 8
Example 4: Find a12 if an+12 = 5 an2 where an > 0 for n≥ 0, given that a0 = 2.
Sol:
Setting bn = an2 Given Recurrence relation is bn+1 = 5 bn for n ≥ 0.
It is homogeneous because f(n) = 0.
It is given that a0 = 2 and C = 5.
The particular solution is bn = 5n b0 for n ≥ 1
Using b0 = a02 = (2)2 = 4. therefore we get bn = 4 X 5n
Thus we have an2 = 4 X 5n since an > 0 for n ≥ 0
This yields an = 2(√5)n for n ≥ 0
Therefore a12 = 2(√5)12 = 2(5)6 = 31,250
Sol:
By changing n to n+1
an+1 - 3 an = 5 X3n+1 for n≥ 0,
an+1 = 3 an + f(n+1) where f(n) = 5 X3n
the general solution of non homogeneous relation is