In this section we will learn about the nature of forces acting on a dipole placed in a uniform magnetic field and will compare it with the case when a dipole is kept in an electrostatic field. As we know that if we place iron fillings around a bar magnet on a sheet of paper and tap the sheet, the fillings rearrange themselves to form a specific pattern. The pattern of iron filings here denote the magnetic field lines generated due to the magnet. These magnetic field lines give us an approximate idea of the magnetic field B. But many a times we are required to determine the magnitude of the magnetic field B accurately. We accomplish this by placing a small compass needle of known magnetic moment m and moment of inertia and allow it to oscillate in the magnetic field.

The torque on the needle can be given as,

\(\tau =m\times B\)

The magnitude of this torque is given by mB sinÆŸ. Here Ï„ is the restoring torque, and ÆŸ is the angle between the direction of the magnetic moment (m) and the direction of the magnetic field (B).

At equilibrium, we can say that,

\(I\frac{d^{2}\theta}{dt} \cong -mB\; sin\; \theta\)

The negative sign in the above expression mB sinÎ¸ brings us to the conclusion that the restoring torque acting here acts in the opposite direction to the deflecting torque. Also, as the value of Î¸ is very small in radians, we can approximate sin Î¸ â‰ˆ Î¸. Thus, using this approximation, we can write

\(I\frac{d^{2}\theta}{dt} \cong -mB\; \theta\)

Or,

\(\frac{d^{2}\theta}{dt} \cong \frac{-mB\; \theta }{I}\)

The above equation is a representation of a simple harmonic motion and the angular frequency can be given as,

\(\omega =\frac{mB}{I}\)

and thus, the time period can be stated as,

\(T=2\pi \sqrt{\frac{I}{mB}}\)

Or, we can also write it as,

\(B=\frac{4\pi ^{2}I}{mT^{2}}\)

The expression for magnetic potential energy is derived in the same manner as we derive the electrostatic potential energy as can be seen below. The magnetic potential energy U_{m} can be given by

\(U_{m}=\int \tau (\theta )d\theta \\ \\ \int mB\; sin\; \theta =-mB\; cos\; \theta =-m.B\)

### Electrostatic Analog:

If we compare the equation derived above with the equations of electric dipole in an electric field, we conclude that the magnetic field due to a bar magnet at a large distance is analogous to that of an electric dipole in an electric field. The correspondence relation can be status as given below,

\(E\rightarrow B,p\rightarrow m,\frac{1}{4\pi \epsilon _{0}}\rightarrow \frac{\mu _{0}}{4\pi }\)

If the value of r, that is, the distance of the point from the given magnet is very large as compared to the size of the magnet given by I, or r >> l, then we can write the equatorial field generated by a bar magnet as,

\(B_{E}=-\frac{\mu _{0}m}{4\pi r^{3}}\)

Similarly, the axial field of the bar magnet in the same condition can be given as,

\(B_{A}=-\frac{\mu _{0}2m}{4\pi r^{3}}\)

Stay tuned with Byju’s to learn more about dipole in a uniform magnetic field, the electrostatic analog and other related topics.