Magnetic Fields of
Current-Carrying Wires
Discover how electric currents generate magnetic fields and learn to calculate them using the Biot-Savart Law.
What Is a Magnetic Field?
A magnetic field \(\vec{B}\) is a vector field that describes the magnetic influence on moving charges, currents, and magnetic materials. It is measured in teslas (T).
Field Around a Long Straight Wire
Why Magnetic Fields Matter
Understanding how currents produce magnetic fields is fundamental to electromagnetism: from electric motors and generators to MRI machines and particle accelerators.
The Biot-Savart Law
$$d\vec{B} = \frac{\mu_0}{4\pi} \frac{I\,d\vec{l} \times \hat{r}}{r^2}$$
Visualizing the Biot-Savart Law
Infinite Straight Wire: Key Result
Integrating the Biot-Savart Law over an infinitely long, straight wire carrying current \(I\):
$$B = \frac{\mu_0 I}{2\pi r}$$
Biot-Savart vs Ampere's Law
| Biot-Savart Law | Ampere's Law | |
|---|---|---|
| Form | \(\displaystyle d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2}\) | \(\displaystyle \oint \vec{B}\cdot d\vec{l} = \mu_0 I_{\text{enc}}\) |
| Approach | Sum contributions from each \(d\vec{l}\) | Exploit symmetry with a closed loop |
| Best For | Any geometry (arcs, finite wires) | High-symmetry cases (infinite wire, solenoid, toroid) |
| Difficulty | Requires integration | Simpler when symmetry exists |
How to Apply the Biot-Savart Law
Example 1: Infinite Straight Wire
A long straight wire carries a current of \(I = 5\) A. Find the magnetic field at a distance \(r = 0.10\) m from the wire.
Example 2: Circular Current Loop
Example 3: On-Axis Field of a Loop
Find \(\vec{B}\) at a point on the axis of a circular loop of radius \(R\), at a distance \(x\) from the center.
$$B_x = \frac{\mu_0 I R^2}{2(R^2 + x^2)^{3/2}}$$
Superposition of Magnetic Fields
Force Between Parallel Wires
$$\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi d}$$
Common Mistakes to Avoid
Key Formulas Summary
| Configuration | Formula for \(B\) | Notes |
|---|---|---|
| Biot-Savart (general) | \(\displaystyle \frac{\mu_0}{4\pi}\frac{I\,dl\,\sin\theta}{r^2}\) | Integrate over source |
| Infinite straight wire | \(\displaystyle \frac{\mu_0 I}{2\pi r}\) | At distance \(r\) |
| Center of circular loop | \(\displaystyle \frac{\mu_0 I}{2R}\) | Radius \(R\) |
| On axis of loop | \(\displaystyle \frac{\mu_0 I R^2}{2(R^2+x^2)^{3/2}}\) | Distance \(x\) from center |
| Force/length (parallel wires) | \(\displaystyle \frac{\mu_0 I_1 I_2}{2\pi d}\) | Separation \(d\) |
Question 1 of 5
The magnetic field at a distance \(r\) from an infinitely long straight wire carrying current \(I\) is given by which expression?
Question 2 of 5
In the Biot-Savart Law, \(\displaystyle d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2}\), the factor \(d\vec{l}\times\hat{r}\) means that \(dB = 0\) when:
Question 3 of 5
Two long parallel wires carry currents in opposite directions. The force between them is:
Question 4 of 5
A circular loop of radius \(R = 0.05\) m carries a current of \(I = 3\) A. What is the magnetic field at the center of the loop? (Use \(\mu_0 = 4\pi\times10^{-7}\) T·m/A)
Question 5 of 5
A wire carries current \(I\) to the right. Using the right-hand rule, the magnetic field directly above the wire points: