Undetermined coefficients
The general solution of a forced linear equation is the homogeneous solution plus one particular solution, and for polynomial, exponential, sine and cosine forcing a guess of the same form with unknown coefficients finds it.
From Differential Equations.