The magnetic moment (\(5\;\text{J/T}\)) of a bar magnet points along a uniform magnetic field \(0.4\;\text{T}\).
(a) Calculate (i) the potential energy of the bar magnet, and (ii) the work done in turning the magnet by \(180^{\circ}\).
(b) In which case is the potential energy of the magnet minimum ?