Trajectory of a body in a resistant medium: an elementary derivation