A square loop ABCD carrying a current i,is placed near and coplanar with a long straight conductor XY carrying a current I, the net force on the loop will be
acting towards X Y in the plane of loop. Force on arm CD due to current in conductor X Y is
acting away from X Y in the plane of loop.
therefore Net force on the loop