Response of a nonlinear vibrator under the influence of a time-dependent external force