A bar magnet having a magnetic moment of is free to rotate in a horizontal plane. A horizontal magnetic field exits in the space. The work done in taking the magnet slowly from a direction parallel to the field to a direction from the field is
Work done in turning the magnet of moment in a field through an angle is
.