Solution:
Key idea: A long straight wire carrying current I′ produces a field B=2πrμ0I′ at distance r, with direction given by the right-hand grip rule. A wire of length l carrying current I at right angles to a field B feels a force F=BIl.
Step 1 — Find the direction of B at P (part i).
The current I′ flows upwards (towards Y) and P is to the right of the wire. Gripping the wire with the right thumb pointing up, the fingers on the right of the wire point into the page. So B at P is perpendicular to the plane of the paper, into it.
Step 2 — Find the magnitude of B at P (part ii).
P is at perpendicular distance r from the long wire, so
B=2πrμ0I′
Step 3 — Find the force on MN (part iii).
The wire MN lies in the plane of the paper, parallel to YY', so its current I is at right angles to this field. The force on its length l is
F=BIl
F=2πrμ0II′l
The force is attractive (towards YY') if I flows in the same direction as I′, and repulsive if the currents are opposite.
Therefore, (i) B at P is perpendicular to the paper, into it, (ii) B=2πrμ0I′, and (iii) the force on MN is F=2πrμ0II′l (attractive for currents in the same direction).