The spiral track above was made by an electron moving in a magnetic field. Since motion along a curved path requires a force perpendicular to the direction of motion, the electron is accelerated. Accelerated charges radiate electromagnetic waves, so the electron loses energy and spirals inward. To learn more about this process, see X-rays from free electrons.