The dynamics of coupled oscillators