Approximations to periodic solutions of a Duffing equation