Answer
The inhomogenous of the magnetic field means that the atoms experience a sideways force given by
Fz=−dzdU
Where U = −µ · B = −µzB is the potential energy of the silver atom in the magneic field becomes as
Fz=μzdzdU
Now,
maximum displacement occurs between the trace is given by
Z=Fz(MV2(d1(d1/2+d2)))
Diagram can be shown as
