Periodic boundary value problem for some Duffing equations