I'm having problems solving the following reccurence relation $$a x(n+1)-(a+b) x(n)+b x(n-1)=-1$$
I have found the homogeneous solution it being, $$x(n)^{(h)}=C_1 \left( \frac{b}{a} \right)^n + C_2$$
but am struggeling with finding the particular solution. What guess should I make to find it?
Appreciate any help
The non-homogeneous part is a constant, so you would normally look for a constant particular solution. However, constants are already solutions to the homogeneous part, so you have to modify that approach by multiplying the constant by a power of $n$. The root $1$ of the auxiliary equation that produces the constant solutions is a single root, so you can use $n^1=n$ as the multiplier: try for a particular solution of the form $x(n)=Cn$. You’ll find that you can solve for $C$ in terms of $a$ and $b$.