Given:
The potential energy \( U \) of a magnetic dipole in a uniform magnetic field is given by the formula:
\[ U = -MB \cos \theta \]
Since the magnetic moment is initially aligned with the magnetic field, \( \theta = 0^\circ \), and thus:
\[ U = -MB \cos(0^\circ) = -MB \]
Substitute the values:
\[ U = -5 \times 0.4 = -2 \, \text{J} \]
Thus, the potential energy of the bar magnet is -2 J.
When the magnet is turned by 180°, the angle between the magnetic moment and the magnetic field becomes \( \theta = 180^\circ \). The new potential energy is:
\[ U' = -MB \cos(180^\circ) = +MB \]
Substitute the values:
\[ U' = +5 \times 0.4 = +2 \, \text{J} \]
The work done in turning the magnet is the change in potential energy:
\[ W = U' - U = 2 - (-2) = 4 \, \text{J} \]
Thus, the work done in turning the magnet by 180° is 4 J.
A current-carrying coil is placed in an external uniform magnetic field. The coil is free to turn in the magnetic field. What is the net force acting on the coil? Obtain the orientation of the coil in stable equilibrium. Show that in this orientation the flux of the total field (field produced by the loop + external field) through the coil is maximum.

A ladder of fixed length \( h \) is to be placed along the wall such that it is free to move along the height of the wall.
Based upon the above information, answer the following questions:
(iii) (b) If the foot of the ladder, whose length is 5 m, is being pulled towards the wall such that the rate of decrease of distance \( y \) is \( 2 \, \text{m/s} \), then at what rate is the height on the wall \( x \) increasing when the foot of the ladder is 3 m away from the wall?