Step 1:
The work done in rotating a magnet in a magnetic field is given by the formula:
\[W = m \cdot B \cdot (1 - \cos \theta_2 - \cos \theta_1)\]
where \(m\) is the magnetic moment of the magnet, \(B\) is the magnetic field, \(\theta_1\) is the initial angle and
Show more…