Sources of Magnetic Fields

Biot-Savart law and Ampere's law for calculating magnetic fields

๐ŸŽฏโญ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson โ†’

Sources of Magnetic Fields

Biot-Savart Law

Magnetic field from current element:

dBโƒ—=ฮผ04ฯ€Iโ€‰dlโƒ—ร—r^r2d\vec{B} = \frac{\mu_0}{4\pi}\frac{I \, d\vec{l} \times \hat{r}}{r^2}

where ฮผ0=4ฯ€ร—10โˆ’7\mu_0 = 4\pi \times 10^{-7} Tยทm/A is permeability of free space.

Total field: Bโƒ—=ฮผ0I4ฯ€โˆซdlโƒ—ร—r^r2\vec{B} = \frac{\mu_0 I}{4\pi}\int \frac{d\vec{l} \times \hat{r}}{r^2}

Infinite Straight Wire

Current II in straight wire:

B=ฮผ0I2ฯ€rB = \frac{\mu_0 I}{2\pi r}

Field circles wire by right-hand rule.

Circular Loop

On axis at distance xx from center, loop radius RR:

Bx=ฮผ0IR22(x2+R2)3/2B_x = \frac{\mu_0 IR^2}{2(x^2 + R^2)^{3/2}}

At center (x=0x = 0): B=ฮผ0I2RB = \frac{\mu_0 I}{2R}

Far from loop (xโ‰ซRx \gg R): Bโ‰ˆฮผ0Iฯ€R22ฯ€x3=ฮผ0ฮผ2ฯ€x3B \approx \frac{\mu_0 I\pi R^2}{2\pi x^3} = \frac{\mu_0 \mu}{2\pi x^3}

where ฮผ=Iฯ€R2\mu = I\pi R^2 is magnetic dipole moment.

Ampere's Law

โˆฎBโƒ—โ‹…dlโƒ—=ฮผ0Ienc\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enc}

Line integral around closed path equals ฮผ0\mu_0 times enclosed current.

Works best for:

  • Infinite straight wire
  • Solenoid
  • Toroid
  • Cylindrical symmetry

Long Solenoid

nn turns per unit length, current II:

Inside: B=ฮผ0nIB = \mu_0 nI (uniform, parallel to axis)

Outside: Bโ‰ˆ0B \approx 0

Toroid

NN total turns, inner radius aa, outer radius bb:

Inside toroid: B=ฮผ0NI2ฯ€rB = \frac{\mu_0 NI}{2\pi r}

(varies with rr)

Outside: B=0B = 0

Magnetic Field of Moving Charge

Point charge qq moving with velocity vโƒ—\vec{v}:

Bโƒ—=ฮผ04ฯ€qvโƒ—ร—r^r2\vec{B} = \frac{\mu_0}{4\pi}\frac{q\vec{v} \times \hat{r}}{r^2}

Two Parallel Wires

Wires separated by distance dd, currents I1I_1 and I2I_2:

Force per unit length: FL=ฮผ0I1I22ฯ€d\frac{F}{L} = \frac{\mu_0 I_1I_2}{2\pi d}

  • Same direction: attractive
  • Opposite direction: repulsive

This defines the ampere!

Magnetic Field Inside Conductor

For long straight conductor of radius RR:

Outside (r>Rr > R): B=ฮผ0I/(2ฯ€r)B = \mu_0 I/(2\pi r)

Inside (r<Rr < R), uniform current density: B=ฮผ0Ir2ฯ€R2B = \frac{\mu_0 Ir}{2\pi R^2}

(Linear in rr, like electric field in charged sphere)

Maxwell's Modification

With changing electric field:

โˆฎBโƒ—โ‹…dlโƒ—=ฮผ0Ienc+ฮผ0ฯต0dฮฆEdt\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enc} + \mu_0\epsilon_0\frac{d\Phi_E}{dt}

The ฮผ0ฯต0dฮฆE/dt\mu_0\epsilon_0 d\Phi_E/dt term is displacement current.

This completes Maxwell's equations!

๐Ÿ“š Practice Problems

No example problems available yet.