A periodic problem for first order differential equations with locally coercive nonlinearities