Find a particular solution of

$$\ddot x - 3\dot x - 4x = 2\cos{t}$$

by trying a

(a) cosine and sine ansatz;

(b) an exponential ansatz.