  In this paper we give a general solution to the problem of the damped
harmonic oscillator under the influence of an arbitrary time-dependent external
force. We employ simple methods accessible for beginners and useful for
undergraduate students and professors in an introductory course of mechanics.
