Two parallel current-carrying wires will exert forces on one another.
Let's say wire 1 carries a current I1 out of the page. Wire 2, a distance d to the right of wire 1, carries a current I2 out of the page. Assume that both wires are long.
Let's assume that I1 is a lot larger than I2. Which wire exerts more force on the other?
Newton's third law still works here, so the forces have the same magnitude.
If the two wires carry currents in the same direction, what is the direction of the force that wire 1 exerts on wire 2?
Using the infinite wire equation, wire 1 sets up a magnetic field that wire 2 experiences. The magnitude of this field, at wire 2's location, is:
To find the force on wire 2, use:
F = I2L × B1
We don't have a length to use for wire 2, but at least we can get the force per unit length:
By the right-hand rule, a current out of the page in a field up gives a force to the left. Two parallel wires carrying currents in the same direction attract one another; wires with currents going in opposite directions repel.