Integration of a set of trajectories