Dynamical properties of a soliton in a potential well