Solve the recurrence relation
$$a_n = 4a_{n-1} - 3a_{n-2} + 2^n $$
With initial conditions:
$a_1 = 1$
$a_2 = 11$
I have done similar recurrence relation problems to this, but none that were a non-homogeneous recurrence relation such as this one.
So far I have:
$$r^n = 4^{n-1} - 3^{n-2} $$
Divide both sides by $$\frac{1}{r^{n-2}}$$ Giving me this as my Auxiliary Equation:
$$ r^n - 4r + 3 = 0 $$
I then solved for the $r$ values and got $r = -4$ and $r = 1$ I am stumped from here as to where the non-homogeneous piece comes into play, any help is appreciated.
Hint: $$a_n = 4a_{n-1} - 3a_{n-2} + 2^n \tag{P}$$ $$a_{n+1} = 4a_n - 3a_{n - 1} + 2^{n+1} \tag{Q}$$
Now subtract equations as $Q - 2P$.