Dynamics of an ion chain in a harmonic potential