Consider the following ODE $$ \ddot{x}+2\dot x +2x=2l+l\cos t $$ for some constant $l$. This describes the movement of a forced oscillator. In order to find the general solution, I first find a particular solution, and then add it to the solution of the homogeneous equation. A hint, given in the original problem, is to consider solutions of the form $$ x(t)=A+B\cos t+C\sin t, $$ where $A,B$ and $C$ are constants.
What is the motivation behind such hint in this particular case? Why this form? Also, apart from looking at the general solution for any ODE of the form $$ \ddot{x} +p(t)\dot x+q(t) x=f(t), $$ is there an intuitive way of 'guessing' particular solutions, in cases where $f(t)$ is 'relatively' simple?
The highly ambiguous and informal quotation marks are because I feel this particular case is simply somewhat justifiable by the fact that $f(t)$ in the case above is defined on trigonometric functions, and derivatives of trigonometric-based solutions have periodic properties that allow for an easy guess. Any further insights are appreciated.
Yes. There is a systematic way to find particular solutions in case the right hand side (the force) in the equation is a linear combination of products of polynomials, sines/cosines or exponentials.
See https://en.wikipedia.org/wiki/Method_of_undetermined_coefficients
In those cases you look for solutions of a specific form and you are guaranteed to find one and only one by solving a simple linear system.