A rectangular loop carrying a current i is situated near a long straight wire such that the wire is parallel to one of the sides of the loop and is in the plane of the loop. If a steady current I is established in the wire as shown in the figure the loop will
move towards the wire
Force between two parallel current carrying conductors is attractive ,if they carry current in same direction
and repulsive, if they carry current in opposite direction.
So,the branch AD is attracted to the long wire, while the branch BC is repelled by it.
Since the force is inversely proportional to the distance between the two wires, the force of attraction is more than the force of repulsion.
Hence there is a net force attracting the loop towards the wire and the loop will move towards the wire.