Given: The magnetic moment of the bar magnet is
The potential energy of the bar magnet is given as,
Where,
a)
A bar magnet is most stable when the uniform magnetic field is parallel to the magnetic moment of the bar magnet.
So, the angle between magnetic field and magnetic moment in this case will be
By substituting the given values in the expression (1), we get
Thus, the potential energy of bar magnet in stable orientation is
b)
A bar magnet is in unstable equilibrium when the uniform magnetic field of the bar magnet is antiparallel to the magnetic moment of the bar magnet.
So, the angle between magnetic field and magnetic moment in this case will be
By substituting the given values in the expression (1), we get
Thus, the potential energy of bar magnet in unstable orientation is