an=3an−1+n2−3,n≥0,a0=1
The homogeneous part of this recurrence relation is;
an=3an−1The characteristics equation for this is;
r=3
Thus, the solution for the homogeneous part is;
an=α3n
The complementary solution is:
an(c)=α3nThe non homogeneous part of the relation is n2−3
In this case, the particular solution is of the form:
an(p)=p2n2+p1n+p0 Substituting into the original relation, we have that:
p2n2+p1n+p0=3(p2(n−1)2+p1(n−1)+p0)+n2−3p2(−2n2+6n−3)+p1(−2n+3)−2p0=n2−3−2p2n2+(6p2−2p1)n+(−3p2+3p1−2p0)=n2−3 We now have that;
−2p2=1⟹p2=−216p2−2p1=0⟹p1=3p2⟹p1=−23−3p2+3p1−2p0=−3⟹−2p0=0⟹p0=0
Thus the particular solution is
an(p)=−21n2−23n
Hence, the general solution which is an(c)+an(p) is:
an=α3n−21n2−23n Substitute a0=1 to get the value of α . We have that;
a0=α30⟹α=1 Hence the general solution of the recurrence relation is:
an=3n−21n2−23n,n≥0
Comments