A current-carrying wire and a magnet exert force on each other — this is the discovery of Oersted (1820) that united electricity and magnetism into a single subject, electromagnetism. This chapter develops:
The magnetic forceF=qv×B acting on moving charges.
The sources of magnetic fields — currents — via the Biot–Savart law and Ampère's law.
Devices built on these principles: the cyclotron, solenoid, moving-coil galvanometer, and conversions to ammeter/voltmeter.
The mathematics is more vector-heavy than electrostatics: dot products and especially cross products are everywhere.
Concept Map
4.1 Magnetic field — Oersted's experiment
4.2 Magnetic force on a moving charge — Lorentz force
4.3 Motion in a magnetic field — circular and helical
4.4 Cyclotron
4.5 Magnetic force on a current-carrying conductor
4.8 Force between parallel currents; definition of ampere
4.9 Torque on a current loop; moving-coil galvanometer
4.10 Galvanometer → ammeter and voltmeter
4.1 Magnetic Field — Oersted's Experiment
Observation
A compass needle placed near a current-carrying wire deflects, showing that the wire creates a magnetic field. Reversing the current reverses the deflection. Thus a magnetic field can be produced by moving charges (currents) as well as by permanent magnets.
Magnetic Field B
The magnetic field B is a vector field. It is sometimes called the magnetic flux density.
SI unit. Tesla (T): 1 T=1 N/(A m)=1 Wb/m2. The CGS unit is the gauss (1 G=10−4 T).
Typical values: Earth's surface ∼5×10−5 T; small bar magnet ∼10−2 T; MRI machine ∼1–3 T.
Right-Hand Rule for Wire
For a straight wire, B encircles the wire; curl your right hand with thumb along the current — your fingers curl in the direction of B.
4.2 Magnetic Force on a Moving Charge — Lorentz Force
Definition
A charge q moving with velocity v in a magnetic field B experiences the magnetic force
FB=qv×B.
Magnitude: F=qvBsinθ where θ is the angle between v and B.
Direction. Perpendicular to both v and B — right-hand rule.
Properties
Force is zero when v∥B (θ=0 or π).
Force is maximum (qvB) when v⊥B.
The magnetic force is always perpendicular to v, so it does no work: F⋅v=0. Kinetic energy of the charge is conserved.
Lorentz Force (combined with electric field)
If both E and B are present:
F=q(E+v×B).
Worked Example
An electron (q=−1.6×10−19 C) moves at v=2×106i^ m/s in B=0.5j^ T. Find the force.
v×B=2×106⋅0.5k^=106k^. F=qv×B=−(1.6×10−19)(106)k^=−1.6×10−13k^ N.
Pitfalls
The magnetic force changes the direction of v, not its magnitude.
Sign of charge: for an electron, F is in the opposite direction to v×B.
Don't confuse F=qv×B (force on a charge) with F=IL×B (force on a current).
4.3 Motion in a Magnetic Field
(a) Charge Moving Perpendicular to B
If v⊥B, the magnetic force always remains perpendicular to v — it acts as a centripetal force. The charge moves in a circle.
Step 1.∣qvB∣=mv2/r.
Step 2. Radius:
r=qBmv.
Step 3. Angular speed: ω=v/r=qB/m. Period:
T=qB2πm,ν=2πmqB.
T is independent of v and r — the basis of the cyclotron.
(b) Helical Motion
If v has a component along B, decompose: v∥ (unaffected) and v⊥ (gives circular motion). Result: a helix with:
Radius r=mv⊥/(qB).
Pitch (distance per turn along axis) p=v∥T=2πmv∥/(qB).
Worked Example
A proton (m=1.67×10−27 kg) enters B=0.1 T at v=106 m/s perpendicular to B.
r=mv/(qB)=(1.67×10−27)(106)/((1.6×10−19)(0.1))=0.104 m.
T=2πr/v=6.55×10−7 s (ν≈1.53 MHz).
Pitfalls
Cyclotron period is independent of v only in the non-relativistic regime. At very high v, m grows and the period drifts.
For an electron the circle is in the opposite sense compared to a proton in the same B.
4.4 Cyclotron
Principle
The cyclotron exploits the fact that the period of circular motion is independent of v. Two semicircular "dees" sit in a uniform magnetic field. An alternating voltage between them, with frequency matching νc=qB/(2πm), accelerates the particle each time it crosses the gap — the radius grows but the timing stays in sync.
Resonance Condition
νac=νc=2πmqB.
Maximum Kinetic Energy
When the particle reaches the maximum radius R:
vmax=mqBR,Kmax=21mvmax2=2mq2B2R2.
Limitations
Relativistic mass increase — at high v, m rises, νc drops, particle goes out of sync.
Cannot accelerate uncharged particles (no Lorentz force).
Cannot accelerate electrons efficiently — they go relativistic too quickly.
Limited to positive ions of moderate energy (∼ tens of MeV).
For z≫R: Bz≈μ0IR2/(2z3)=μ0(2m)/(4πz3) where m=IπR2 is the magnetic moment — same 1/r3 dependence as an electric dipole on axis.
Pitfalls
Biot–Savart is the magnetic analog of Coulomb's law — for currents, not charges.
Always identify the direction of dl×r^ before applying magnitude formulas.
For curved wires, use symmetry — most elements give components that cancel.
4.7 Ampère's Circuital Law
Statement
The line integral of B around any closed loop equals μ0 times the net current enclosed by the loop:
∮B⋅dl=μ0Ienc.
Sign convention: Ienc is positive when current flows in the direction given by the right-hand rule from the orientation of the loop.
Like Gauss's law for E, Ampère's law is always true, but useful only when symmetry lets us pull B out of the integral.
Application (a) — Infinite Straight Wire
Circular Amperian loop of radius r coaxial with the wire. By symmetry, B is tangent and constant in magnitude.
∮Bdl=B⋅2πr=μ0I, so
B=2πrμ0I.
(Same as Biot–Savart — but with much less work.)
Application (b) — Solenoid
A long solenoid: closely wound, n turns per unit length, current I.
Inside (away from ends), B is uniform along the axis; outside, B→0 (for an ideal long solenoid).
Amperian loop: a rectangle of length L, one side parallel to axis inside the solenoid, the opposite side far outside, two short sides perpendicular to axis.
Inside leg: ∫B⋅dl=BL.
Outside leg: ≈0.
Short sides: B⊥dl, contribution zero.
∮=BL. Enclosed current: nLI.
BL=μ0nLI⇒Binside=μ0nI.
For a solenoid of finite length, near the ends B drops to half: Bend=μ0nI/2.
Application (c) — Toroid
A toroid is a solenoid bent into a doughnut. N total turns, mean radius r. Amperian loop: a circle of radius r inside the toroid.
∮Bdl=B⋅2πr=μ0NI:
B=2πrμ0NI.
Outside the toroid: B=0 (Amperian loops outside enclose zero net current).
Worked Example
A solenoid has 1000 turns over 50 cm and carries 2 A.
n=1000/0.5=2000 /m. B=(4π×10−7)(2000)(2)=5×10−3 T.
Pitfalls
Ampère's law works only for steady currents (in this chapter — Maxwell's correction comes later).
Symmetry is essential; randomly drawn loops produce useless equations.
The integral is over the loop, not the current.
4.8 Force Between Parallel Currents; Definition of the Ampere
Setup
Two long parallel wires, separation d, currents I1,I2.
Step 1. Field due to wire 1 at the location of wire 2: B1=μ0I1/(2πd).
Step 2. Force per unit length on wire 2: F/L=I2B1=2πdμ0I1I2.
Step 3.
LF=2πdμ0I1I2.
Direction:
Currents in same direction: wires attract.
Currents in opposite directions: wires repel.
Definition of the Ampere
The historical SI definition (pre-2019): one ampere is the steady current which, when flowing in two parallel infinite wires 1 m apart in vacuum, produces a force per unit length of 2×10−7 N/m between them.
(Since 2019, the ampere is defined in terms of the elementary charge e; but the parallel-wire formula remains the working test.)
Worked Example
Two parallel wires, 0.5 m apart, both carrying 10 A in the same direction. Force per meter:
"Same direction → attract" — counter-intuitive if you only know charges. The field/force geometry differs from Coulomb.
The formula is for infinite parallel wires; for finite segments it's an approximation.
4.9 Torque on a Current Loop; Moving-Coil Galvanometer
Torque on a Rectangular Loop
Loop of sides a (horizontal) and b (vertical), current I, in uniform B horizontal. The loop's normal n^ makes angle θ with B.
Two horizontal sides experience opposite forces along the loop axis — no torque (or cancellation).
Two vertical sides (length b) carry currents perpendicular to B. Each experiences force F=IbB, equal and opposite, forming a couple.
Perpendicular distance between the forces: asinθ.
τ=IbB⋅asinθ=IABsinθ,
where A=ab is the loop area.
For N turns: τ=NIABsinθ.
Magnetic Dipole Moment
Define m=NIA (vector area, by right-hand rule); SI unit: A m2. Then
τ=m×B,U=−m⋅B.
(Direct analog of electric dipole: p↔m, E↔B.)
Moving-Coil Galvanometer
A coil of N turns, area A, suspended in a radial magnetic field (produced by curved pole pieces). When current I flows:
Deflecting torque: τdef=NIAB (because θ=90° always — that's the point of the radial field).
Restoring torque: τrest=kϕ (a torsion spring with constant k, ϕ is the deflection).
At equilibrium:
NIAB=kϕ⇒ϕ=kNABI.
Linear scale: deflection ∝ current.
Sensitivity
Current sensitivity:ϕ/I=NAB/k.
Voltage sensitivity:ϕ/V=NAB/(kRg) where Rg is the galvanometer's own resistance.
To increase current sensitivity: increase N, A, B; decrease k.
But increasing N also increases Rg, so voltage sensitivity may not improve.
Pitfalls
Galvanometer's pole pieces are curved precisely to keep θ=90° — this is what makes the scale linear.
"Sensitivity" and "accuracy" are not the same; a sensitive instrument can be precise but biased.
4.10 Conversion of a Galvanometer
To an Ammeter
An ammeter must measure large currents and have low resistance (so it doesn't disturb the circuit). Add a small shuntS in parallel with the galvanometer.
Step 1. Let full-scale current of galvanometer be Ig (with Rg). To read up to I, shunt must carry I−Ig.
Step 2. Same voltage across G and S:
IgRg=(I−Ig)S⇒S=I−IgIgRg.
Step 3. Effective resistance of ammeter:
RA=Rg+SRgS<S.
For I≫Ig, S≪Rg, so RA is very small — ideal.
To a Voltmeter
A voltmeter must measure large voltages without drawing current — high resistance. Add a large series resistanceR.
To read up to 1 A as an ammeter: S=(10−3)(50)/(1−10−3)≈0.05Ω.
To read up to 10 V as a voltmeter: R=10/10−3−50=9950Ω.
Pitfalls
An ammeter goes in series in the circuit; a voltmeter goes in parallel.
Putting a voltmeter in series with a load gives essentially zero current — students often make this mistake.
Ammeters are dangerous to apply directly across a battery — low resistance means huge currents.
Solved Problems
Problem 1 (Easy)
A wire carries 5 A in a horizontal direction. The horizontal component of Earth's magnetic field is 4×10−5 T. The force on a 1 m length of the wire (perpendicular to B):
F=ILB=5⋅1⋅4×10−5=2×10−4 N.
Problem 2 (Easy)
A proton enters a B=0.2 T field at v=2×107 m/s perpendicular to B. Find the radius.
r=qBmv=(1.6×10−19)(0.2)(1.67×10−27)(2×107)=1.04 m.
Problem 3 (Medium)
A circular coil of radius 0.1 m, 100 turns, carries 2 A. Find B at its centre and at 0.1 m on the axis.
Centre: B=μ0NI/(2R)=(4π×10−7)(100)(2)/(2⋅0.1)=1.26×10−3 T.
On axis (z=0.1): B=μ0NIR2/(2(R2+z2)3/2)= with R2+z2=0.02, (R2+z2)3/2=2.83×10−3. B=(4π×10−7)(100)(2)(0.01)/(2⋅2.83×10−3)=4.44×10−4 T.
Problem 4 (Medium)
A solenoid of length 0.5 m and 500 turns carries current I. Determine I such that B inside is 0.01 T.
B=μ0nI⇒I=B/(μ0n)=0.01/(4π×10−7⋅1000)=7.96 A.
Problem 5 (Medium) — Parallel Wires
Two long parallel wires, 5 cm apart, carry 4 A and 6 A in opposite directions. Find the force per meter.
Velocity selector: Crossed E and B select particles with v=E/B. Used in mass spectrometers.
Cyclotron loses sync for high-energy particles due to relativistic mass increase; synchrocyclotrons modulate frequency.
Force on a closed loop in uniform B is zero, but torque generally non-zero.
Net force on a current loop in a non-uniform field: Use F=∇(m⋅B). This is how a magnet attracts a current loop.
Helical pitch ratio: for a charge entering at angle θ to B, pitch/circumference =v∥/v⊥=cotθ.
Solenoid end vs middle:Bend=Bmid/2 for a long solenoid.
Current loop near a long wire: the loop experiences a net force (one side closer to the wire than the other).
Toroid outside is zero: but only for an ideal toroid; real-world toroids leak a little.
Galvanometer sensitivity vs robustness: increasing N and A makes coil heavier; spring constant k has practical lower bound.
Ammeter has lowest resistance, voltmeter has highest — swap them and you'll either short the battery or read essentially nothing.
Magnetic field of a finite straight wire at perpendicular foot: B=(μ0I/4πa)(sinϕ1+sinϕ2) where ϕi are angles to the ends from the perpendicular. Don't forget this — the infinite formula doesn't always apply.