01 / 21

Magnetic Fields of
Current-Carrying Wires

Discover how electric currents generate magnetic fields and learn to calculate them using the Biot-Savart Law.

AP Physics C: E&M

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).

Symbol
\(\vec{B}\) : magnetic field vector, units of T (tesla)
Source
Moving charges and electric currents create \(\vec{B}\) fields

Field Around a Long Straight Wire

\(I\) \(\vec{B}\) \(r\) Key Features: Field lines form concentric circles Direction: use the right-hand rule Strength decreases
as \(1/r\)

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.

Motors
Current-carrying coils in magnetic fields produce torque and rotation
Electromagnets
Solenoids create strong, controllable fields from current
Induction
Changing \(\vec{B}\) fields induce EMFs: the basis of generators

The Biot-Savart Law

$$d\vec{B} = \frac{\mu_0}{4\pi} \frac{I\,d\vec{l} \times \hat{r}}{r^2}$$

\(\mu_0\)
Permeability of free space: \(4\pi \times 10^{-7}\) T·m/A
\(d\vec{l}\)
Infinitesimal length element along the current direction
\(\hat{r}\)
Unit vector from \(d\vec{l}\) to the field point; \(r\) is the distance

Visualizing the Biot-Savart Law

\(I\) \(d\vec{l}\) P \(\vec{r}\) \(\theta\) \(d\vec{B}\) (out)

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}$$

Direction
Tangent to circles centered on the wire: use the right-hand rule
Magnitude
Decreases as \(1/r\): double the distance, half the field

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

1
Choose coordinates. Set up a coordinate system aligned with the wire. Identify \(d\vec{l}\) along the current.
2
Find \(\vec{r}\). Write the vector from each source element \(d\vec{l}\) to the field point \(P\). Compute \(r\) and \(\hat{r}\).
3
Evaluate the cross product. Compute \(d\vec{l} \times \hat{r}\). Determine the direction of \(d\vec{B}\).
4
Integrate. Sum (integrate) \(d\vec{B}\) over the entire current distribution. Use symmetry to simplify.
5
Check units and direction. Verify \(\vec{B}\) has units of tesla and the direction agrees with the right-hand rule.

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

\(I\) \(\vec{B}\) \(R\) At the center: Every \(d\vec{l} \times \hat{r}\) points along the axis All contributions add constructively

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

\(I_1\) (out) \(I_2\) (in) P \(d_1\) \(d_2\) \(\vec{B}_1\) \(\vec{B}_2\) Total: \(\vec{B} = \vec{B}_1 + \vec{B}_2\) (vector sum)

Force Between Parallel Wires

\(I_1\) \(I_2\) \(d\) \(\vec{F}\) \(\vec{F}\) Same direction: Attract Opposite direction: Repel

$$\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi d}$$

Common Mistakes to Avoid

✕ Wrong Hand
Using the left hand instead of the right hand for the right-hand rule gives the opposite direction.
✕ Forgetting the Cross Product
Writing \(d\vec{l} \cdot \hat{r}\) (dot product) instead of \(d\vec{l} \times \hat{r}\) (cross product). The field depends on \(\sin\theta\), not \(\cos\theta\).
✕ Scalar vs Vector Addition
Adding magnitudes of \(\vec{B}\) from multiple sources without considering direction. Always do vector addition.

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: