How to solve it by the method of undetermined coefficient. $$(D^3-D^2+3D+5)y = e^x \cos x$$
As CF of it is $$c_1e^{-x} + e^x ( c_2 \cos2x + c_3 \sin2x)$$ and $e^x$ is common in both CF and RHS of equation but if we open $\sin$ and $\cos$ function of CF then $e^x \cos x$ is common in both CF and RHS of equation.
How can I solve it???
Try this link: https://en.wikipedia.org/wiki/Method_of_undetermined_coefficients
It provides specific examples at the middle and end.