Hi,
Please have a look on the attachment. The displacement of swing from the equilibrium position, x=0, is considered to be maximum, +x, when the swing reaches the person who is pushing it. The pushing force is of short duration and could be approximated by a pulse. I hope I have it correct...