I solved this problem but am not super confident with my methods, if someone could take a look at it and tell me if it looks okay, that would be great.
Solve the following non-homogeneous recurrence relation
$a_{n}=2a_{n-1}+(-1)^{n}$
$a_{0}=2$
Homogeneous part
$h_{n}=2h_{n-1}$
$x=2$
$h_{n}=α(2)^{n}$
Find the constant
$a_{n}=c(-1)^{n}$
$a_{n-1}=c(-1)^{n-1}$
$c(-1)^{n}=c(-1)^{n-1}+(-1)^{n}$
$c(-1)^{1}=c(-1)^{0}+(-1)^{1}$
$-c=c-1$
$2c=1$
$c=\frac{1}{2}$
Solve for α using initial condition
$a_{n}=α(2)^{n}+\frac{1}{2}(-1)^{n}$
$2=α(2)^{0}+\frac{1}{2}(-1)^{0}$
$2=2α+\frac{1}{2}$
$\frac{3}{2}=2α$
$α=\frac{3}{4}$
$a_{n}=\frac{3}{4}(2)^{n}+\frac{1}{2}(-1)^{n}$
Thanks in advance for any help!