First order difference equation. Solve $u_{n+1}=3u_n+2$ with $u_0=0$
My notes are very sparse on this topic, so I need some help solving what should be an easy question. I would really appreciate some going through this basic question thoroughly so that I can study it and answer the other question with less help.
In particular, how do you solve for the homogeneous equation. One example that I am given is that for the general form of this question, i.e. $u_{n+1}=au_n+b$, the homogeneous equation is $w_{n+1}=aw_n$. The solution is found by "putting it into itself", and we get
$w_n=aw_{n-1}=...=a^nw_0=Aa^n$
for some constant $A$.
Could someone help me out here, because none of this makes much sense to me
Note that $$u_{n+1}=3u_n+2$$ implies $$u_n=3u_{n-1}+2$$
Subtract the second from the first to obtain $$u_{n+1}-u_n=3u_n-3u_{n-1}=3(u_n-u_{n-1})$$
This tells us that $v_n:= u_{n+1}-u_{n}=3^nv_0$ (using what you have already been given with $v_n$ and with $v_0$ being a constant depending on the initial value) we obtain $$u_{n+1}=u_n+3^nv_0$$
Now subtract this equation from the first one to obtain $$2u_n=3^nv_0-2$$
Now $u_0=0$ tells us that $v_0=2$ and $u_n=3^n-1$
This is not necessarily the recommended general method, but it shows why some of the more general methods work, and it uses the hint you have been given and not much else.
Note that $v_1=3v_0$; $v_2=3v_1=9v_0$; $v_3=3v_2=27v_0$ if you need to get a handle on what is happening with $w_n$ in your question.