Lecture 11
Lecture 11
Observational fact: current-carrying conducting wires exhibit attraction or repulsion depending on the
directions of the current ow.
dl ⃗
r⃗ −7 2
μ0 = 4π × 10 N/A
B⃗
free-space permeability
⃗ = dq(v⃗ × B )⃗ = λdl(v⃗ × B )⃗ = I ⃗ × B ⃗ dl = I d l ⃗ × B ⃗
∫ ∫ ∫ ∫
F mag
Attraction Repulsion
[since I ⃗ = λv]⃗
fi
fl
Line, surface and volume current densities
⃗
B (⃗ r)⃗ =
μ I × r ̂
4π ∫ r 2
I⃗ 0
dl
Line current
⃗
B (⃗ r)⃗ =
μ K × r ̂
4π ∫ r 2
0
K⃗
ds
Surface current S
⃗
K ⃗=
d I
dl⊥
⃗
B (⃗ r)⃗ =
μ J × r ̂
4π ∫ r 2
0 dI ⃗
dτ J ⃗=
J⃗ da⊥
Volume current dτ′
We’ll use dτ instead of dv to avoid confusion with
velocity v

Divergence of magnetic field
Use ∇ ⃗ ⋅ ( A ⃗ × B )⃗ = B ⃗ ⋅ ( ∇ ⃗ × A )⃗ − A ⃗ ⋅ ( ∇ ⃗ × B )⃗
x
∇⃗ ⋅ B ⃗ = ⃗ × J)⃗ − J ⃗ ⋅ ∇ ⃗ ×
μ r ̂ r ̂
∫ [ ( )]
0
⋅ ( ∇ dτ′
4π r 2
⇓ r 2
⇓
∇⃗ ⋅ B ⃗ = 0
0
⃗ ⃗
∇ ≡ ∇ (x, y, z) ∇ ⃗ r ̂
× 2 =0
r
J ⃗ ≡ J(x′⃗ , y′, z′)













fi
fi
The continuity equation
Consider a closed volume with uniform volume current density J,⃗ and
uniform volume charge density ρ.
J⃗
∮
dτ
Total current coming out of the closed volume: Iout = J ⃗⋅ ds ⃗
Since the total charge is conserved, Iout must be equal to the rate of
decrease of the charge inside the volume
∂Qin
∮
J ⃗⋅ ds ⃗ = −
⇓
ds
∂t
∇⃗ ⋅ J ⃗= −
∂ρ
Continuity equation
∂t
= 0, we have ∇ ⃗ ⋅ J ⃗ = 0
∂ρ
When steady current ows:
∂t
fl
Curl of magnetic field
⃗ ⃗ μ
4π ∫
∇×B = 0
J(⃗ r′⃗ ) 4πδ 3( r)⃗ dτ′ = μ0 J(⃗ r)⃗

























Ampere’s law
( ∇ ⃗ × B )⃗ ⋅ d s ⃗ = μ0
∫S ∫S
J(⃗ r)⃗ ⋅ d s ⃗ = μ0 Ienc
B ⃗ ⋅ d l ⃗ = μ0 Ienc
∮L
Integral form of Ampere’s law
I⃗ B ⃗ ⋅ d l ⃗ = B d l ⃗ = B ⋅ 2πr
∮L ∮
LHS :
dl ⃗
RHS : μ0I
B⃗=
r⃗ μ I
0
ϕ̂
B⃗ 2πr
fi
Homework:
1. Calculate the magnetic force between two current-carrying loops and show that Newton’s third
law is satis ed by the magnetic forces.
2. Use Ampere’s law to calculate the magnetic eld due to a solenoid with n turns per unit length.
3. Use Ampere’s law to calculate the magnetic eld due to a toroid of total N turns.
fi
fi
fi