As shown in Fig. $31-5$, two long parallel wires are $10 \mathrm{~cm}$ apart in air and carry currents of $6.0 \mathrm{~A}$ and $4.0 \mathrm{~A}$. Find the force on a $1.0$ $\mathrm{m}$ length of wire $D$ if the currents are $(a)$ parallel and $(b)$ antiparallel.
(a) This is the situation shown in $\underline{\text { Fig. }} 31-5 .$ The field at wire $D$ due to wire $C$ is directed into the page and has the value
$$B=\frac{\mu_{0} I}{2 \pi r}=\frac{\left(4 \pi \times 10^{-7} \mathrm{~T} \cdot \mathrm{m} / \mathrm{A}\right)(6.0 \mathrm{~A})}{2 \pi(0.10 \mathrm{~m})}=1.2 \times 10^{-5} \mathrm{~T}$$
The force on $1 \mathrm{~m}$ of wire $D$ due to this field is
$F_{M}=I L B \sin \theta=(4.0 \mathrm{~A})(1.0 \mathrm{~m})\left(1.2 \times 10^{-5} \mathrm{~T}\right)\left(\sin 90^{\circ}\right)=48 \mu \mathrm{N}$
The right-hand rule applied to wire $D$ tells us the force on $D$ is toward the left. The wires attract each other.
(b) If the current in $D$ flows in the reverse direction, the force direction will be reversed. The wires will repel each other. The force per meter of length is still $48 \mu \mathrm{N}$.