- For same direction of current:
When two parallel conductors carry current in the same direction, they experience an attractive force due to the magnetic fields around them. According to Ampere's law, the force per unit length between the two conductors is:
\[
F = \frac{\mu_0 I_1 I_2}{2\pi r},
\]
where \( I_1 \) and \( I_2 \) are the currents, \( r \) is the distance between the conductors, and \( \mu_0 \) is the permeability of free space.
- For opposite direction of current:
When the currents are in opposite directions, the force between the conductors is repulsive, and the formula remains the same but with a change in direction, which indicates a repulsive interaction.