2 answer

A small magnet of magnetic moment M, is placed j at a distance r from the origin O with its axis | parallel to y-axis as shown. A small coil, of one turn is placed on the x- axis of the same distance from the origin, with the axis of the coil coinciding with x-axis. For what value of current in the coil does a small magnetic needle, kept at origin, remains undeflected ? What is the direction of current in the coil ?
9769a10b041959bbef10f046b4f1b45ab4781279.png

This happens when the magnetic field of a bar magnet is equal and opposite to the magnetic field of coil.
9f7406e24fccbdd3c4005d42f34b5a8f45c56730.png
Current is in anticlockwise direction, as seen from the Origin.