Charged particle in the presence of a variable magnetic field.