Dynamics of the Magnetization with an Inversion of the Magnetic Field