The question is: $$x^{\prime\prime}+x=\sin t+e^{2t} $$ I have tried to solve it like this: $$r^2+1=0 \implies r=\pm i $$ The answer to the homogeneous equation is: $$x_h(t)=C_1\cos t + C_2\sin t $$ but I don't know how should I find the particular solution I have tried with $$ x_p=A\cos t + B\sin t + Ce^{2t} $$ but I didn't get the right answer, any suggestion would be great.
Thanks.
$$x^{\prime\prime}+x=\sin t+e^{2t}$$ For the particular solution, you should simply try: $$x_p=At\cos t+Be^{2t}$$