Does anyone know how to solve the particular part in a non-homogeneous recurrence relation?
I know how to solve a homogeneous one, I just can't seem to understand how to find the particular one?
Is there some kind of formula for that?
Here's an example of one:$$a_{n+2}-4a_{n+1}+4a_n=2^n \sin(\frac{\pi n}{3})$$
I know that homogeneous part has two zeros, $x_1$ and $x_2$ which are both $2 $ meaning that the homogeneous part would look like: $$ a_n= (An+B)2^n$$
I don't know how to calculate the non-homogeneous part though. Do you just guess it? If so how? or Is there some kind or a formula/recipe?
thank you for your help!