Discrete Mathematics
WEN-CHING LIEN Department of Mathematics National Cheng Kung University
2008
10.3: The nonhomogeneous recurrence relation
Consider the recurrence relation:
an+C1an−1=f(n), n≥1, (1) where C1is a constant and C16=0.
Example
Solve the recurrence relation an−an−1=3n2and a0=7.
10.3: The nonhomogeneous recurrence relation
Consider the recurrence relation:
an+C1an−1=f(n), n≥1, (1) where C1is a constant and C16=0.
Example
Solve the recurrence relation an−an−1=3n2and a0=7.
By straightforward calculations,
an=a0+ Xn
i=1
f(i).
→an=7+1
2(n)(n+1)(2n+1).
By straightforward calculations,
an=a0+ Xn
i=1
f(i).
→an=7+1
2(n)(n+1)(2n+1).
Method of undetermined coefficients:
Example
Solve the recurrence relation an−3an−1=5(7n)and a0=2.
Method of undetermined coefficients:
Example
Solve the recurrence relation an−3an−1=5(7n)and a0=2.
Step1: Seek a particular solution - apn=A(7n).
Step 2:Apply the relation to find
A= 35 4
Step 3: By the initial condition, find the general solution an=c(3n) +A(7n).
Step1: Seek a particular solution - apn=A(7n).
Step 2:Apply the relation to find
A= 35 4
Step 3: By the initial condition, find the general solution an=c(3n) +A(7n).
Step1: Seek a particular solution - apn=A(7n).
Step 2:Apply the relation to find
A= 35 4
Step 3: By the initial condition, find the general solution an=c(3n) +A(7n).
Consider the nonhomogeneous relation of order 2:
an+C1an−1+C2an−2=f(n), n≥2. (2)
In general, the solution is
an=apn+ahn.
Here, apnis a particular solution of equation (2) and ahnis the solution of the associated homogeneous equation.
Consider the nonhomogeneous relation of order 2:
an+C1an−1+C2an−2=f(n), n≥2. (2)
In general, the solution is
an=apn+ahn.
Here, apnis a particular solution of equation (2) and ahnis the solution of the associated homogeneous equation.
Theorem
(I) Consider the nonhomogeneous 1st-order relation:
an+C1an−1=krn,
where k is a constant, n≥1. If rn is not a solution of the associated homogeneous relation
an+C1an−1=0,
then apn=Arn,where A is a constant. When rnis a solution of the associated homogeneous relation, then apn=Bnrn,for B a constant.
Theorem
(II) Consider the nonhomogeneous 2nd-order relation:
an+C1an−1+C2an−2=krn, where k is a constant. Here we find that
1 apn =Arn, when rnis not a solution of the associated homogeneous relation.
2 apn =Bnrn, when ahn=c1rn+c2r1n, r 6=r1.
3 apn =Cn2rn, when ahn= (c1+c2n)rn.
Example
The Koch snowflake curve:
For n≥0, let andenote the area of the Polygon Pnobtained from the original equilateral triangle after we apply n
transformations of removing the middle one-third of each side and attaching a new equilateral triangle.
Please find an.