
We know $\begin{aligned}
\mathrm{W}{\text {ext }} & =\Delta \mathrm{U}+\Delta \mathrm{KE} \quad(\text { P.E. }=-\overrightarrow{\mathrm{M}} \cdot \overrightarrow{\mathrm{B}}) \
& =-\overrightarrow{\mathrm{M}} \cdot \overrightarrow{\mathrm{B}}{\mathrm{f}}+\overrightarrow{\mathrm{M}} \cdot \overrightarrow{\mathrm{B}}_{\mathrm{i}}+0 \
& =-\mathrm{MB} \cos 90+\mathrm{MB} \cos 0 \
& =\mathrm{MB} \
& =\mathrm{NIAB} \
& =200 \times 100 \times 10^{-6} \times \frac{5}{2} \times 10^{-4} \times 1=5 \mu \mathrm{J}
\end{aligned}$