Solution

ID: past-exam-of-the-physics-b-course-of-the-university-of-cambridge/2021/paper-2/section-a/a4/solution

For a fixed magnetic dipole moment in an externally imposed uniform magnetic field, the torque is . Its component in the direction of increasing is . Since , integration gives
where the arbitrary additive constant has been chosen so that at .
The aligned orientation has the minimum and is stable against small rotations; the anti-aligned orientation has the maximum and is unstable. The graph repeats every . Rotating quasistatically from alignment to anti-alignment requires external work .

New to topics? Read the docs here!