The Cauchy problem for a forced harmonic oscillator