Trajectories for relativistic particles in an electromagnetic field