Consider the following experimental set up:

We want to know where would the silver atoms land on the glass plate. First we analyze through classical electromagnetics:
Since the energy is lowered if the dipole aligns with the magnetic field. As a result, the force experienced by the the dipole is simply:
In particular, we get that the component of the force is :
In our case,