Electromagnetism · Chapter 17

Magnetic Fields

A moving charge creates a magnetic field, and a magnetic field exerts a force on moving charges. These two facts, combined with Faraday's law, unify electricity and magnetism into a single theory.

PrerequisitesElectric fields (Ch.15)⋅DCCh. 15) \cdot DC circuits (Ch. 16) · Vectors and cross products (Ch. 24)
Learning Goals
  • Use the Lorentz force law to predict the magnitude and direction of magnetic forces.
  • Explain why magnetic forces change particle direction but do no work.
  • Derive cyclotron radius and period for motion perpendicular to a uniform magnetic field.
  • Compute magnetic fields from common current geometries.
  • Apply Ampère's law when symmetry makes the line integral simple.

17.1 The Magnetic Force

A charged particle moving with velocity v\mathbf{v} in a magnetic field B\mathbf{B} experiences the Lorentz force:

F=qv×B\mathbf{F} = q\mathbf{v}\times\mathbf{B}(17.1)

The cross product means the force is perpendicular to both the velocity and the field. This has three immediate consequences: (1) a stationary charge feels no magnetic force; (2) a charge moving parallel to B\mathbf{B} feels no force; (3) the force does no work — it can change direction but not speed.

The magnitude is F=∣q∣vBsin⁡θF = |q|vB\sin\theta, where θ\theta is the angle between v\mathbf{v} and B\mathbf{B}. The direction is given by the right-hand rule: point fingers in the direction of v\mathbf{v}, curl toward B\mathbf{B}, and the thumb points in the direction of F\mathbf{F} (for positive qq; reverse for negative qq).

Definition 17.1 — Cyclotron Motion
A charged particle moving perpendicular to a uniform magnetic field follows a circular path. The magnetic force provides the centripetal acceleration:∣q∣vB=mv2r|q|vB = \frac{mv^2}{r}    →    r=mv∣q∣Br = \frac{mv}{|q|B}This radius rr is the cyclotron radius (or Larmor radius). The periodT=2πm/(∣q∣B)T = 2\pi m/(|q|B) is independent of velocity — the basis of the cyclotron particle accelerator.
Figure 17.1. Magnetic field simulator. Toggle among a straight wire, solenoid, and moving charge: reverse the current to see field directions flip, increase current to see field strength rise, and change charge sign to reverse the Lorentz-force direction in cyclotron motion.

17.2 Magnetic Fields from Currents

Just as a charge creates an electric field, a moving charge (current) creates a magnetic field. The fundamental law for this is the Biot–Savart law: each current element I dlI\,d\mathbf{l} contributes a field dBd\mathbf{B} at position r\mathbf{r}:

dB=μ04πI dl×r^r2d\mathbf{B} = \frac{\mu_0}{4\pi}\frac{I\,d\mathbf{l}\times\hat{\mathbf{r}}}{r^2}(17.2)

where μ0=4π×10−7 T m/A\mu_0 = 4\pi \times 10^{-7}\,\mathrm{T\,m/A} is the permeability of free space. For practical geometries, we integrate this law to find closed-form results.

Theorem 17.1 — Magnetic Field of Common Current Configurations
Infinite straight wire at distance rr:   B=μ0I/(2πr)B = \mu_0I/(2\pi r),   circles the wire by right-hand ruleCircular loop of radius RR at center:   B=μ0I/(2R)B = \mu_0I/(2R),   along the axisSolenoid (nn turns/meter, inside):   B=μ0nIB = \mu_0nI,   uniform and axial

17.3 Ampère's Law

Ampère's law is the magnetic analogue of Gauss's law. For any closed loop (Amperian loop), the line integral of B\mathbf{B} around the loop equals μ0\mu_0 times the current threading the loop:

∮B⋅dl=μ0Ienc\oint \mathbf{B}\cdot d\mathbf{l} = \mu_0 I_\mathrm{enc}(17.3)

Like Gauss's law, Ampère's law is always true but only useful for deriving fields when the geometry is highly symmetric (infinite wire, solenoid, toroid). For the infinite wire, choose a circular Amperian loop of radius rr: B(2πr)=μ0IB(2\pi r) = \mu_0I, immediately giving B=μ0I/(2πr)B = \mu_0I/(2\pi r).

Example 17.1 — Force Between Two Parallel Wires

Two parallel wires 0.5 m0.5\,\mathrm{m} apart carry currents I1=10 AI_1 = 10\,\mathrm{A} and I2=20 AI_2 = 20\,\mathrm{A} in the same direction. Find the force per unit length between them.

Field from wire 1:B1=μ0I12πd=(4π×10−7)(10)2π(0.5)=4×10−6 TB_1 = \frac{\mu_0I_1}{2\pi d} = \frac{(4\pi\times10^{-7})(10)}{2\pi(0.5)} = 4\times10^{-6}\,\mathrm{T}
Force on wire 2:F/L=I2B1=20(4×10−6)=8×10−5 N/mF/L = I_2B_1 = 20(4\times10^{-6}) = 8\times10^{-5}\,\mathrm{N/m}
Direction:Same-direction currents attract (opposite-direction repel).
Note:This experiment defined the ampere until the 2019 SI redefinition: 2×10−7N/m2\times 10^{-7} N/m force per meter between wires 1 m apart carrying 1 A each.
Example 17.2 — Cyclotron Radius of a Proton

A proton (m=1.67×10−27 kgm = 1.67 \times 10^{-27}\,\mathrm{kg}, q=1.6×10−19 Cq = 1.6 \times 10^{-19}\,\mathrm{C}) moves at 2×106 m/s2 \times 10^6\,\mathrm{m/s} perpendicular to a 0.1 T0.1\,\mathrm{T} magnetic field. Find the radius of its circular orbit.

Formula:r=mvqBr = \frac{mv}{qB}
Substitute:r=(1.67×10−27)(2×106)(1.6×10−19)(0.1)r = \frac{(1.67\times10^{-27})(2\times10^6)}{(1.6\times10^{-19})(0.1)}
Calculate:r=3.34×10−211.6×10−20=0.209 m≈21 cmr = \frac{3.34\times10^{-21}}{1.6\times10^{-20}} = 0.209\,\mathrm{m} \approx 21\,\mathrm{cm}

17.4 The Magnetic Force on a Current

A current-carrying wire in a magnetic field experiences a force — since each mobile charge experiences F=qv×B\mathbf{F} = q\mathbf{v}\times\mathbf{B}, the wire as a whole feels a net force. For a straight segment of length LL carrying current II in field B\mathbf{B}:

F=IL×B(magnitude: F=BILsin⁡θ)\mathbf{F} = I\mathbf{L}\times\mathbf{B} \qquad \text{(magnitude: }F = BIL\sin\theta\text{)}(17.4)

This is the operating principle of every electric motor: a current loop in a magnetic field experiences a torque τ=NIABsin⁡θ\tau = NIAB\sin\theta (NN turns, area AA, tilt angle θ\theta), which causes rotation. The torque is maximized when the loop is parallel to the field (θ=90∘\theta = 90^\circ) and zero when it is perpendicular (aligned with B\mathbf{B}) — requiring a commutator to maintain continuous rotation.

Definition 17.2 — Common Traps
  • Magnetic force needs motion: a stationary charge feels no magnetic force.
  • Perpendicular matters: only the velocity component perpendicular to B curves the path.
  • The force does no work: it changes direction, not speed, for an isolated charged particle.
  • Right-hand rules depend on sign: reverse the direction for negative charges.
  • Ampère's law needs symmetry: the law is general, but the shortcut works only when B is constant along the chosen loop.
Exercises — 17.1–17.4 Magnetic Fields
1.
A proton moves at 2×106m/s2\times 10^{6} m/s perpendicular to a 0.1 T field. Find the cyclotron radius.
m
Straightforward
2.
Two parallel wires are 0.5 m apart carrying I1=10AI_{1} = 10 A and I2=20AI_{2} = 20 A. Find the force per meter.
N/m
Straightforward
3.
Find the magnetic field 0.5 m from an infinite straight wire carrying 10 A.
T
Intermediate
4.Explain why the period of circular cyclotron motion is independent of the particle's speed. How does this make the cyclotron particle accelerator possible?
Intermediate
5.Describe how a mass spectrometer separates ions by mass-to-charge ratio. Derive the detector separation Δx\Delta x for two ions of the same charge differing in mass by Δm\Delta m.
Challenging
Key Takeaways
  • Lorentz force: F=q(v×B)—F = q(v \times B) — perpendicular to both velocity and field, does no work.
  • Cyclotron radius r=mv/∣q∣Br = mv/|q|B; period T=2πm/∣q∣BT = 2\pi m/|q|B is speed-independent.
  • Biot–Savart law gives field from current elements; Ampère's law gives field from symmetric configurations.
  • Infinite wire: B=μ0I/2πrB = \mu_{0}I/2\pi r; solenoid: B=μ0nIB = \mu_{0}nI (uniform, inside).
  • Parallel wires attract if currents are in the same direction, repel if opposite.
  • Motor torque: τ=NIABsin⁡θ—\tau = NIAB \sin \theta — the rotating coil is maximally torqued when parallel to B.