Nonlinear differential equations with forcing terms