The work done by an external agent turning the magnet slowly equals the rise in its potential energy U=−mBcosθ:
W=U(θ2)−U(θ1)=mB(cosθ1−cosθ2),mB=1.5×0.22=0.33 J
(a)(i) 0∘→90∘: W=0.33(1−0)=0.33 J.
(a)(ii) 0∘→180∘: W=0.33(1−(−1))=0.66 J.

(b) τ=mBsinθ:
- (i) at 90∘: τ=0.33 N m (the largest possible torque);
- (ii) at 180∘: τ=0. The magnet is in unstable equilibrium.