Electromagnetism · Chapter 15

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.

PrerequisitesElectricfields(Ch.13)DCcircuits(Ch.14)Vectorsandcrossproducts(MathChElectric fields (Ch. 13) \cdot DC circuits (Ch. 14) \cdot Vectors and cross products (Math Ch
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.

15.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}(15.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=qvBsinθ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 15.1Cyclotron Motion
A charged particle moving perpendicular to a uniform magnetic field follows a circular path. The magnetic force provides the centripetal acceleration:qvB=mv2r|q|vB = \frac{mv^2}{r}    →    r=mvqBr = \frac{mv}{|q|B}This radius rr is the cyclotron radius (or Larmor radius). The periodT=2πm/(qB)T = 2\pi m/(|q|B) is independent of velocity — the basis of the cyclotron particle accelerator.
Figure 15.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.

15.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 IdlI\,d\mathbf{l} contributes a field dBd\mathbf{B} at position r\mathbf{r}:

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

where μ0=4π×107Tm/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 15.1Magnetic 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

15.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:

Bdl=μ0Ienc\oint \mathbf{B}\cdot d\mathbf{l} = \mu_0 I_\mathrm{enc}(15.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 15.1Force Between Two Parallel Wires

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

Field from wire 1:B1=μ0I12πd=(4π×107)(10)2π(0.5)=4×106TB_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×106)=8×105N/mF/L = I_2B_1 = 20(4\times10^{-6}) = 8\times10^{-5}\,\mathrm{N/m}
Direction:Same-direction currents attract (opposite-direction repel).
Note:Thisexperimentdefinestheampere:2×107N/mforcepermeterbetweenwires1mapartcarThis experiment defines the ampere: 2\times10^{-7} N/m force per meter between wires 1 m apart carrying 1 A each.
Example 15.2Cyclotron Radius of a Proton

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

Formula:r=mvqBr = \frac{mv}{qB}
Substitute:r=(1.67×1027)(2×106)(1.6×1019)(0.1)r = \frac{(1.67\times10^{-27})(2\times10^6)}{(1.6\times10^{-19})(0.1)}
Calculate:r=3.34×10211.6×1020=0.209m21cmr = \frac{3.34\times10^{-21}}{1.6\times10^{-20}} = 0.209\,\mathrm{m} \approx 21\,\mathrm{cm}

15.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{)}(15.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 15.2Common 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 — 15.1–15.4 Magnetic Fields
1.
Aprotonmovesat2×106m/sperpendiculartoa0.1Tfield.FindthecyclotronradiusA proton moves at 2\times10^{6} m/s perpendicular to a 0.1 T field. Find the cyclotron radius.
m
Straightforward
2.
Twoparallelwiresare0.5mapartcarryingI1=10AandI2=20A.FindtheforcepermeTwo parallel wires are 0.5 m apart carrying I_{1} = 10 A and I_{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 massspectrometerseparatesionsbymasstochargeratio.DerivethedetectorseparationΔmass spectrometer separates ions by mass-to-charge ratio. Derive the detector separation \Deltaofthesamechargedifferinginmassby\Deltamof the same charge differing in mass by \Deltam.
Challenging
Key Takeaways
  • Lorentzforce:F=q(v×B)perpendiculartobothvelocityandfield,doesnoworkLorentz force: F = q(v \times B) — perpendicular to both velocity and field, does no work.
  • Cyclotronradiusr=mv/qB;periodT=2\pim/qBisspeedindependentCyclotron radius r = mv/|q|B; period T = 2\pim/|q|B is speed-independent.
  • Biot–Savart law gives field from current elements; Ampère's law gives field from symmetric configurations.
  • Infinitewire:B=μ0I/2\pir;solenoid:B=μ0nI(uniform,insideInfinite wire: B = \mu_{0}I/2\pir; solenoid: B = \mu_{0}nI (uniform, inside.
  • Parallel wires attract if currents are in the same direction, repel if opposite.
  • Motortorque:τ=NIABsinθtherotatingcoilismaximallytorquedwhenparalleltoBMotor torque: \tau = NIAB sin \theta — the rotating coil is maximally torqued when parallel to B.