PX153 - E2 - method of undetermined coefficients

f(x) trial solution
polynomial of degree n, eg: x3+2x+1 polynomial of degree n, eg: yp=αx3+βx2+γx+δ
cos⁡qxorsin⁡qx yp=αcos⁡qx+βsin⁡qx
peqx yp(x)=αeqx