The dynamics of formation flight about a stable trajectory