Imagine an infinitely long wire carrying current i1 in west to east direction. At a small distance 'd' above the wire there is another small current carrying wire of length 'l' carrying current i2 from east to west direction (opposite to the direction of current in the below placed wire). Obviously they are magnetically repelling.And if wire 2(carrying current from east to west) is at rest the magnetic force must be equals to mg. The magnetic force is upward and mg is down.The magnetic force can be written as Uoi1i2/(2pi×d) × l which is equal to mg(wire at rest).Now if magnetic force is greater than mg, the wire moves up. Now magnetic force is up and displacement is up too which means that work done by magnetic force should be positive. HOW IS IT POSSIBLE WHEN WE KNOW THAT WORK DONE BY MAGNETIC FORCE IS ALWAYS ZERO. IS IT THAT AN EMF IS INDUCED WHICH OPPOSES THE CHANGE ? SOMEONE PLEASE HELP ME WITH THIS QUESTION.