Q.
The midpoint of two small magnetic dipoles d in end-on positions, are separated by a distance x,(x>>d). The force between them is proportional to x−n where n is:
Magnetic field due to a magnetic dipole at the end-on position is B=4πμ0r32M .
Potential energy, U=−μ→⋅B→ .
i.e., U∝r31
Force between the dipoles, F=−drdU .
Therefore, on differentiating the expression of potential energy, the force between them, F∝r41 or F∝r−4 .