So far the field came from somewhere else. Now we look at the field a current makes. In 1820 Hans Christian Ørsted noticed a compass needle swing when a wire nearby carried current. A long straight wire makes field lines that are circles around it, and the field gets weaker the farther you go. You already know the force on a current; put the two together and two wires push or pull on each other.
Key idea
Here $\mu_0 = 4\pi \times 10^{-7}\ \text{T·m/A}$ (it is now measured, and it agrees with $4\pi \times 10^{-7}$ to better than a part in a billion). A handy form: $$\frac{\mu_0}{2\pi} = 2 \times 10^{-7}\ \text{T·m/A}.$$
Why it works
Common mistake
Worked example: A wire and a compass
- $$\begin{aligned} B &= \frac{\mu_0 I}{2\pi r} = (2 \times 10^{-7})\frac{10}{0.050} \\ &= 4.0 \times 10^{-5}\ \text{T}. \end{aligned}$$
- That is $40\ \mu\text{T}$, close to Earth's own field, which is why a compass near a wire swings so much.
Answer: $4.0 \times 10^{-5}\ \text{T}$
Worked example: Inside a solenoid
- Turns per meter: $n = 500/0.25\ \text{m} = 2000\ \text{m}^{-1}$.
- $$\begin{aligned} B &= \mu_0 nI = (4\pi \times 10^{-7})(2000)(2.0) \\ &= 5.0 \times 10^{-3}\ \text{T}. \end{aligned}$$
- The field depends on turns per meter, not on the solenoid's width.
Answer: $5.0\ \text{mT}$
Worked example: Two wires
- $$\begin{aligned} \frac{F}{L} &= \frac{\mu_0 I_1 I_2}{2\pi d} = (2 \times 10^{-7})\frac{(5.0)(8.0)}{0.010} \\ &= 8.0 \times 10^{-4}\ \text{N/m}. \end{aligned}$$
- Same direction, so they attract. Each wire feels the same size force (Newton's third law), even though the currents differ.
Answer: $8.0 \times 10^{-4}\ \text{N/m}$, attracting