Math: finding the general solution to a first degree nonhomogeneous recurrence relation
The tutor shows how to find the general solution to the recurrence relation from last post.
In my previous post I posed the recurrence relation
2an+1 – an = 3, a0=12
then generated the first few terms:

The general solution is a formula that, when n is inputted, yields an.
Example: Find the general solution to 2an+1 – an = 3, a0=12
Solution:
Grimaldi reveals that for an equation of the form
an+1 + ran = k
the solution will take the form
an = Arn + B
where A, B are constants that need to be solved.
To bring our equation to that form, we divide both sides by two:
an+1 – 0.5an = 1.5
The general solution will have the form
an = A(0.5)n + B
In our case, a0 = 12:
a0 = 12 = A(0.5)0 + B
so that
12 = A + B
Solving for B we get
12 – A = B
Then, for a1 = 7.5, we get
7.5 = A(0.5)1 + B
which means
7.5 = A(0.5) + B
Recalling 12 – A = B, we can rewrite:
7.5 = A(0.5) + 12 – A
which gives
7.5-12 = -0.5A
then
-4.5 = -0.5A
Next, dividing both sides by -0.5, we arrive at
9 = A
Then
12 – A = B
becomes
12 – 9 = B
so that
B = 3
Apparently, the general solution to 2an+1 – an = 3, a0=12, is an = 9(0.5)n + 3
We seek to confirm the solution: From the table, a4 = 3.5625. Plugging 4 in for n in our general solution gives
a4 = 9(0.5)4 + 3 = 0.5625 + 3 = 3.5625
HTH:
Source:
Grimaldi, Ralph P. Discrete and Combinatorial Mathematics. Don Mills: Addison-
Wesley, 1994.
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.