The diagram above shows a magnet X with its south pole moved along a soft…