Magnetism describes forces on moving charges and currents. Unlike electric fields, magnetic fields do no work on a point charge because the magnetic force is always perpendicular to the charge’s velocity. This unit focuses on Lorentz forces, fields produced by currents, and Ampere’s law.
A charge moving through a magnetic field feels the magnetic part of the Lorentz force:
FB=qv×B.
The magnitude is
FB=∣q∣vBsinθ.
The force is perpendicular to both v and B. For positive charges, use the right-hand rule for v×B. For negative charges, reverse the direction.
The full electric and magnetic force is
F=qE+qv×B.
Since FB is always perpendicular to v, it does no work: P=FB⋅v=q(v×B)⋅v=0, since v×B is perpendicular to v. A magnetic field can change a charge’s direction but never its speed.
Example. A proton (q=+1.6×10−19C) moves at v=4.0×105m/s in the +x direction through a uniform field B=0.50T pointing in the +y direction. Find the magnitude and direction of the magnetic force.
The velocity is perpendicular to the field (θ=90∘), so the magnitude is
For the direction, evaluate v×B=(vx^)×(By^)=vB(x^×y^)=vBz^. Since the charge is positive, FB points in +z (out of the page if x is right and y is up). For an electron with the same velocity, the force would point in −z.
If a charge moves perpendicular to a uniform magnetic field, the magnetic force provides centripetal force:
∣q∣vB=rmv2.
Thus
r=∣q∣Bmv.
The angular frequency is
ω=m∣q∣B,
and the period is
T=∣q∣B2πm.
If the velocity has a component parallel to B, that component is unchanged and the path becomes a helix.
Notice that the period T=2πm/(∣q∣B) does not depend on the speed or the radius: a faster particle simply travels a proportionally larger circle in the same time. This speed-independence is the principle behind the cyclotron.
Example. An electron (m=9.11×10−31kg, ∣q∣=1.6×10−19C) moves at v=2.0×106m/s perpendicular to a uniform field B=1.5×10−3T. Find the radius of its circular path, the period, and the frequency.
The magnetic force supplies the centripetal force, ∣q∣vB=mv2/r, so
When electric and magnetic forces oppose each other,
qE=qvB.
Only particles with speed
v=BE
pass through undeflected. This is the basic idea of a velocity selector.
After velocity selection, a magnetic field can separate particles by mass-to-charge ratio because
r=∣q∣Bmv.
Example. A velocity selector uses crossed fields E=3.0×104V/m and B1=0.10T. The selected beam (singly charged ions, q=1.6×10−19C) then enters a mass-spectrometer region with field B2=0.20T. Find the selected speed, and the radii of two isotopes of mass m1=3.32×10−26kg and m2=3.65×10−26kg.
In the selector, the electric and magnetic forces balance, qE=qvB1, so only ions with
v=B1E=0.103.0×104=3.0×105m/s
pass straight through. In the spectrometer the path radius is r=mv/(qB2):
The heavier isotope curves on the larger circle. The two beams land 2(r2−r1)≈6.2cm apart on the detector, which is how a mass spectrometer resolves isotopes.
A wire segment carrying current I in a magnetic field feels
F=IL×B,
where L points in the direction of conventional current and has magnitude equal to the length of wire in the field.
The magnitude is
F=ILBsinθ.
This force comes from the magnetic forces on the moving charges inside the wire: each carrier feels qvd×B, and summing over all carriers in a length L (with I=nqvdAcross) gives F=IL×B.
Example. A straight wire of length L=0.40m carries current I=8.0A in the +x direction. It sits in a uniform field B=0.25T pointing into the page (−z, with x to the right and y up). Find the magnitude and direction of the force.
The current direction (+x) is perpendicular to B (−z), so θ=90∘ and
F=ILBsin90∘=(8.0)(0.40)(0.25)=0.80N.
For the direction, L×B=(Lx^)×(−Bz^)=−LB(x^×z^)=−LB(−y^)=+LBy^. So the force points in +y (upward). Check with the right-hand rule: fingers point along the current (+x), curl toward B (into page), thumb points up. The force is 0.80N upward.
A current loop in a magnetic field experiences a torque. For a loop with N turns, current I, area A, and magnetic moment
μ=NIA,
the torque is
τ=μ×B.
Its magnitude is
τ=NIABsinθ.
The potential energy of a magnetic dipole in a uniform magnetic field is
U=−μ⋅B=−μBcosθ.
Here θ is the angle between μ (the loop’s normal, by the right-hand rule) and B. The energy is lowest when μ is aligned with B (θ=0, U=−μB, stable) and highest when anti-aligned (θ=180∘, U=+μB, unstable). The torque always tries to rotate μ into alignment with B.
Example. A rectangular coil with N=50 turns, sides 0.080m×0.050m, carries I=2.0A in a uniform field B=0.30T. (a) Find the magnetic moment and the maximum torque. (b) Find the dipole energy when μ is aligned with B and when it is perpendicular to B.
The loop area is A=(0.080)(0.050)=4.0×10−3m2, so the magnetic moment is
μ=NIA=(50)(2.0)(4.0×10−3)=0.40A⋅m2.
The torque τ=NIABsinθ=μBsinθ is maximum at θ=90∘ (plane of the loop parallel to B):
τmax=μB=(0.40)(0.30)=0.12N⋅m.
For the energy U=−μBcosθ: when μ∥B (θ=0),
U∥=−μB=−(0.40)(0.30)=−0.12J,
and when μ⊥B (θ=90∘),
U⊥=−μBcos90∘=0J.
Rotating the dipole from aligned to perpendicular requires an external agent to supply ΔU=0−(−0.12)=+0.12J.
For a current element, the magnetic field contribution is
dB=4πμ0r2Idℓ×r^.
Use Biot-Savart when symmetry is not enough for Ampere’s law but the current geometry is integrable. The cross product means only the component of dℓ perpendicular to the line from source to field point contributes.
Proof (Field of an infinite straight wire from Biot–Savart). Place the wire along the x-axis carrying current I, and find the field at a point P a perpendicular distance r from the wire. Let a current element Idℓ=Idxx^ sit at position x; the vector from the element to P has magnitude x2+r2.
The magnitude of dℓ×r^ is dxsinϕ, where ϕ is the angle between the wire and the line to P. From the geometry, sinϕ=r/x2+r2. Every element contributes field in the same direction (out of the page, by the right-hand rule), so the magnitudes add:
dB=4πμ0Ix2+r2dxsinϕ=4πμ0I(x2+r2)3/2rdx.
Integrate over the whole wire, x from −∞ to +∞:
B=4πμ0Ir∫−∞∞(x2+r2)3/2dx.
The standard integral is
∫(x2+r2)3/2dx=r2x2+r2x,
which you can verify by the substitution x=rtanϕ, dx=rsec2ϕdϕ, giving ∫r3sec3ϕrsec2ϕdϕ=r21∫cosϕdϕ=r2sinϕ. Evaluating from −∞ to +∞, the factor x2+r2x runs from −1 to +1:
∫−∞∞(x2+r2)3/2dx=r21[1−(−1)]=r22.
Therefore
B=4πμ0Ir⋅r22=2πrμ0I.
Proof (On-axis field of a circular loop from Biot–Savart). A circular loop of radius R carries current I. Find B at a point P on the axis, a distance x from the center. Each element Idℓ is perpendicular to the line of length s=x2+R2 joining it to P, so ∣dℓ×r^∣=dℓ and
dB=4πμ0Ix2+R2dℓ.
By symmetry, the components of dB perpendicular to the axis cancel when summed around the loop; only the axial components survive. The axial component is dBx=dBcosα, where cosα=R/x2+R2 (the angle between dB and the axis). Thus
Ampere’s law relates magnetic field circulation to enclosed current:
∮B⋅dℓ=μ0Ienc.
It is most useful with high symmetry, such as long straight wires, solenoids, and toroids. Choose an Amperian loop so B is either constant and parallel to dℓ or perpendicular to it.
For a toroid with N turns,
B=2πrμ0NI
inside the core, under the ideal toroid approximation.
Proof (Straight-wire field as an Ampère’s-law check). For an infinite straight wire, symmetry tells us B has constant magnitude on any circle of radius r centered on the wire and points tangent to that circle (circular field lines). Choose such a circle as the Amperian loop. Then B∥dℓ everywhere, and B is constant, so
∮B⋅dℓ=B∮dℓ=B(2πr).
The loop encloses the full current I, so Ampère’s law gives
B(2πr)=μ0I⇒B=2πrμ0I,
matching the Biot–Savart result with far less work — symmetry did the integral for us.
Proof (Solenoid field from Ampère’s law). An ideal solenoid has n turns per unit length carrying current I, with a uniform axial field inside and (ideally) zero field outside. Choose a rectangular Amperian loop with one side of length ℓ inside the solenoid parallel to the axis, the opposite side outside, and two short sides crossing the wall.
Split ∮B⋅dℓ into the four legs:
Inside leg (parallel to B): contributes Bℓ.
Outside leg: B=0, contributes 0.
Two crossing legs: B is either zero (outside) or perpendicular to dℓ (inside), so each contributes 0.
Therefore
∮B⋅dℓ=Bℓ.
The current enclosed is the number of turns threading the loop, nℓ, each carrying I:
Ienc=nℓI.
Ampère’s law then gives
Bℓ=μ0nℓI⇒B=μ0nI,
independent of position inside — confirming the field is uniform.
Example. A long cylindrical wire of radius a carries a total current I spread uniformly over its cross-section, so the current density is J=I/(πa2). Find B at radius r<a inside the conductor.
By symmetry the field is again circular, so for an Amperian circle of radius r<a, ∮B⋅dℓ=B(2πr). But this loop encloses only the fraction of current inside radius r:
Ienc=J(πr2)=πa2Iπr2=Ia2r2.
Ampère’s law gives
B(2πr)=μ0Ia2r2⇒B=2πa2μ0Ir.
So inside the conductor B∝r (rising linearly from zero on the axis), and at the surface r=a this matches B=μ0I/(2πa), the external field, as it must.
Two long parallel wires carrying currents I1 and I2 separated by distance d exert forces on each other. The force per unit length is
LF=2πdμ0I1I2.
Currents in the same direction attract. Currents in opposite directions repel.
Proof (Force per length between parallel wires). Wire 1 carries I1 and produces, at the location of wire 2 (distance d away), a field of magnitude
B1=2πdμ0I1.
This field is perpendicular to wire 2. The force on a length L of wire 2 (carrying I2) is F=I2L×B1, with magnitude (since L⊥B1, sinθ=1):
F=I2LB1=I2L2πdμ0I1.
Dividing by L,
LF=2πdμ0I1I2.
The result is symmetric in I1 and I2, as Newton’s third law requires. For the direction, apply the right-hand rule: if the currents are parallel (same direction), L×B1 points from wire 2 toward wire 1, so they attract; antiparallel currents repel.
Example. Two parallel wires d=0.020m apart carry I1=10A and I2=15A in the same direction. Find the force per unit length and state whether it is attractive or repulsive.
Here I used 2πμ0=2π4π×10−7=2×10−7T⋅m/A. Since the currents run the same direction, the force is attractive: 1.5×10−3N per meter pulling the wires together.