Step 1: Understanding the Concept:
Potential energy of a magnetic dipole in a field depends on its orientation. Work must be done to rotate it against the magnetic torque.
Key Formula or Approach:
\( U = -MB \cos \theta \).
\( \Delta U = U_{final} - U_{initial} \).
Step 2: Detailed Explanation:
Initial angle \( \theta_1 = 0^\circ \).
\( U_1 = -MB \cos 0^\circ = -MB = -(0.5)(0.4) = -0.2 \, \text{J} \).
Final angle \( \theta_2 = 180^\circ \).
\( U_2 = -MB \cos 180^\circ = -MB(-1) = +MB = +(0.5)(0.4) = +0.2 \, \text{J} \).
Change \( \Delta U = U_2 - U_1 = 0.2 - (-0.2) = 0.4 \, \text{J} \).
Step 3: Final Answer:
The change in potential energy is \( 0.4 \, \text{J} \).