Forced linear ODE
General method for any linear forced ODEs:
-
Find (guess) a particular integral $y_p(x)$ i.e. a single solution of the forced equation;
-
Write the general solution of the ODE as $$ y(x) = y_p(x) + y_c(x). $$ Then $y_c(x)$, the complementary function, satisfies the homogenous equation.
-
Combine $y_p$ and $y_c$ to get the general solution.