(a)
The expression of magnetic field due to dipole is,
…… (1)
Here m is the magnetic dipole.
Consider the diagram that shows the magnetic dipole moment at distance r from the axis.

Consider the dipole moment .
The magnetic field due to dipole at the distance r .
The y component of theis expressed as,
Substitute for B into above equation.
localid="1657693067703"
The dot products of the equation (2) are solved as,
Substitute 0 for into equation (2).
From the figure,
Substitute forandfor into equation (3).
The net force on the circular loop due to another loop,
Substitutefor into above equation.
localid="1657690027964"
The magnetic moment for another dipole,
Substitutefor into equation (4).
Since r is very large as compare to
Hence the force of attraction between the two dipoles and is