Given: Magnetic moment M=5.0A m2 and magnetic field B=0.4T.
Find: The work required to rotate the bar magnet from parallel to antiparallel position.
The potential energy of a magnetic dipole in a magnetic field is
u=−MBcosθ
The work done in rotating the dipole is the change in potential energy:
W=ΔuInitially, the magnet is parallel to the field, so
θ=0∘
Finally, it is antiparallel to the field, so
θ=180∘Therefore,
W=−MBcos180∘−(−MBcos0∘)
W=−MB(−1)−(−MB)(1)
W=MB+MB=2MBSubstituting the values,
W=2×5×0.4
W=4J
Therefore, the correct option is A.