Question #289128

an=3an−1+n2−3,n≥,a0=1


1
Expert's answer
2022-01-24T14:34:12-0500
an=3an1+n23,n0,a0=1a_n=3a_{n-1}+n^2-3, n\geq0, a_0=1


The homogeneous part of this recurrence relation is;


an=3an1a_n=3a_{n-1}

The characteristics equation for this is;


r=3r=3


Thus, the solution for the homogeneous part is;


an=α3na_n=\alpha3^n


The complementary solution is:


an(c)=α3na_n^{(c)}= \alpha 3^n

The non homogeneous part of the relation is n23n^2-3

In this case, the particular solution is of the form:


an(p)=p2n2+p1n+p0a_n^{(p)}=p_2n^2+p_1n+p_0

Substituting into the original relation, we have that:


p2n2+p1n+p0=3(p2(n1)2+p1(n1)+p0)+n23p2(2n2+6n3)+p1(2n+3)2p0=n232p2n2+(6p22p1)n+(3p2+3p12p0)=n23p_2n^2+p_1n+p_0=3(p_2(n-1)^2+p_1(n-1)+p_0)+n^2-3\\ p_2(-2n^2+6n-3)+p_1(-2n+3)-2p_0=n^2-3\\ -2p_2n^2+(6p_2-2p_1)n+(-3p_2+3p_1-2p_0)=n^2-3\\

We now have that;

2p2=1    p2=126p22p1=0    p1=3p2    p1=323p2+3p12p0=3    2p0=0    p0=0-2p_2=1 \implies p_2=-\frac{1}{2}\\ 6p_2-2p_1=0 \implies p_1=3p_2 \implies p_1=-\frac{3}{2}\\ -3p_2+3p_1-2p_0=-3 \implies -2p_0=0 \implies p_0=0

Thus the particular solution is


an(p)=12n232na_n^{(p)}=-\frac{1}{2}n^2-\frac{3}{2}n

Hence, the general solution which is an(c)+an(p)a_n^{(c)}+a_n^{(p)} is:


an=α3n12n232na_n=\alpha 3^n-\frac{1}{2}n^2-\frac{3}{2}n

Substitute a0=1a_0=1 to get the value of α\alpha . We have that;


a0=α30    α=1a_0=\alpha 3^0 \implies \alpha=1

Hence the general solution of the recurrence relation is:


an=3n12n232n,n0a_n=3^n-\frac{1}{2}n^2-\frac{3}{2}n, n\geq 0


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS