Skip to content
🎯⭐ INTERACTIVE LESSON

Magnetic Fields and Forces

Learn step-by-step with interactive practice!

Magnetic Fields and Forces - Complete Interactive Lesson

Part 1: Lorentz Force

The Lorentz Force

Part 1 of 7 — F⃗=qv⃗×B⃗\vec{F} = q\vec{v} \times \vec{B}

The Magnetic Force on a Moving Charge

A charged particle moving through a magnetic field experiences a force:

F⃗=qv⃗×B⃗\vec{F} = q\vec{v} \times \vec{B}

Key properties:

  • The force is perpendicular to both v⃗\vec{v} and B⃗\vec{B}
  • The force does no work (F⃗⊥v⃗  ⟹  F⃗⋅v⃗=0\vec{F} \perp \vec{v} \implies \vec{F} \cdot \vec{v} = 0)
  • The force changes the direction of motion but not the speed

Magnitude

∣F⃗∣=∣q∣vBsin⁡θ|\vec{F}| = |q|vB\sin\theta

where θ\theta is the angle between v⃗\vec{v} and B⃗\vec{B}.

θ\thetaForce
0°0° or 180°180°F=0F = 0 (parallel to B⃗\vec{B})
90°90°F=qvBF = qvB (maximum)
GeneralF=qvBsin⁡θF = qvB\sin\theta

Computing the Cross Product

For v⃗=vxx^+vyy^+vzz^\vec{v} = v_x\hat{x} + v_y\hat{y} + v_z\hat{z} and B⃗=Bxx^+Byy^+Bzz^\vec{B} = B_x\hat{x} + B_y\hat{y} + B_z\hat{z}:

v⃗×B⃗=∣x^y^z^vxvyvzBxByBz∣\vec{v} \times \vec{B} = \begin{vmatrix} \hat{x} & \hat{y} & \hat{z} \\ v_x & v_y & v_z \\ B_x & B_y & B_z \end{vmatrix}

=(vyBz−vzBy)x^+(vzBx−vxBz)y^+(vxBy−vyBx)z^= (v_yB_z - v_zB_y)\hat{x} + (v_zB_x - v_xB_z)\hat{y} + (v_xB_y - v_yB_x)\hat{z}

Example

v⃗=2x^+3y^\vec{v} = 2\hat{x} + 3\hat{y} m/s, B⃗=4z^\vec{B} = 4\hat{z} T, q=−eq = -e

v⃗×B⃗=∣x^y^z^230004∣=(12−0)x^+(0−8)y^+(0)z^=12x^−8y^\vec{v} \times \vec{B} = \begin{vmatrix} \hat{x} & \hat{y} & \hat{z} \\ 2 & 3 & 0 \\ 0 & 0 & 4 \end{vmatrix} = (12 - 0)\hat{x} + (0 - 8)\hat{y} + (0)\hat{z} = 12\hat{x} - 8\hat{y}

F⃗=q(v⃗×B⃗)=(−e)(12x^−8y^)=−12ex^+8ey^\vec{F} = q(\vec{v} \times \vec{B}) = (-e)(12\hat{x} - 8\hat{y}) = -12e\hat{x} + 8e\hat{y}

The Full Lorentz Force

When both electric and magnetic fields are present:

F⃗=q(E⃗+v⃗×B⃗)\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})

Velocity Selector

If E⃗=Ey^\vec{E} = E\hat{y} and B⃗=Bz^\vec{B} = B\hat{z}, a positive charge moving in the x^\hat{x} direction:

  • Electric force: F⃗E=qEy^\vec{F}_E = qE\hat{y}
  • Magnetic force: F⃗B=q(vx^×Bz^)=−qvBy^\vec{F}_B = q(v\hat{x} \times B\hat{z}) = -qvB\hat{y}

For the particle to pass undeflected:

qE=qvB  ⟹  v=EBqE = qvB \implies v = \frac{E}{B}

Only particles with speed v=E/Bv = E/B pass through, regardless of charge or mass.

Summary — Part 1

ConceptFormula
Magnetic forceF⃗=qv⃗×B⃗\vec{F} = q\vec{v} \times \vec{B}
MagnitudeF=∣q∣vBsin⁡θF = \vert q\vert vB\sin\theta
Full LorentzF⃗=q(E⃗+v⃗×B⃗)\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})
Velocity selectorv=E/Bv = E/B
Work doneW=0W = 0 (always)

Next up: Circular motion of charged particles in magnetic fields — Part 2.

Part 2: Circular Motion in B Fields

Circular Motion in Magnetic Fields

Part 2 of 7 — Cyclotron Motion

Uniform Circular Motion

When v⃗⊥B⃗\vec{v} \perp \vec{B}, the magnetic force provides the centripetal acceleration:

qvB=mv2rqvB = \frac{mv^2}{r}

Solving for the cyclotron radius:

r=mvqB\boxed{r = \frac{mv}{qB}}

Period and Frequency

The cyclotron period (time for one revolution):

T=2πrv=2πmqBT = \frac{2\pi r}{v} = \frac{2\pi m}{qB}

The cyclotron frequency:

f=1T=qB2πmω=qBmf = \frac{1}{T} = \frac{qB}{2\pi m} \qquad \omega = \frac{qB}{m}

Critical insight: The period and frequency are independent of velocity. Faster particles trace larger circles but at the same frequency.

Helical Motion

If v⃗\vec{v} has components both parallel and perpendicular to B⃗\vec{B}:

v⃗=v∥b^+v⊥n^\vec{v} = v_\parallel \hat{b} + v_\perp \hat{n}

  • v∥v_\parallel is unchanged (no force along B⃗\vec{B})
  • v⊥v_\perp produces circular motion with r=mv⊥/(qB)r = mv_\perp/(qB)

The result is a helix: the particle circles around the field direction while drifting steadily along it.

Decomposition

If the initial velocity makes angle α\alpha with B⃗\vec{B}:

v∥=vcos⁡α,v⊥=vsin⁡αv_\parallel = v\cos\alpha, \qquad v_\perp = v\sin\alpha

r=mvsin⁡αqBr = \frac{mv\sin\alpha}{qB}

Only the perpendicular component sets the radius.

The Cyclotron

A cyclotron accelerates charged particles using:

  1. A magnetic field to bend particles in semicircles
  2. An oscillating electric field across a gap to accelerate them

Since T=2πm/(qB)T = 2\pi m/(qB) is independent of speed, the AC frequency stays constant (non-relativistic limit).

Energy Gained

After NN full turns (each crossing the gap twice):

K=2NqVgapK = 2NqV_{\text{gap}}

The maximum kinetic energy (at radius RR of the cyclotron):

Kmax⁡=q2B2R22mK_{\max} = \frac{q^2B^2R^2}{2m}

Derivation: r=mv/(qB)r = mv/(qB) at the edge gives v=qBR/mv = qBR/m, so:

K=12mv2=q2B2R22mK = \frac{1}{2}mv^2 = \frac{q^2B^2R^2}{2m}

Summary — Part 2

QuantityFormula
Cyclotron radiusr=mv/(qB)r = mv/(qB)
PeriodT=2πm/(qB)T = 2\pi m/(qB)
Cyclotron frequencyω=qB/m\omega = qB/m
Max cyclotron KEK=q2B2R2/(2m)K = q^2B^2R^2/(2m)

Next up: The mass spectrometer — Part 3.

Part 3: Mass Spectrometer

Mass Spectrometer

Part 3 of 7 — Separating Ions by Mass

How It Works

A mass spectrometer combines three stages:

  1. Ion source — atoms are ionized (given charge qq)
  2. Velocity selector — crossed E⃗\vec{E} and B⃗1\vec{B}_1 select v=E/B1v = E/B_1
  3. Deflection chamber — uniform B⃗2\vec{B}_2 bends ions in semicircles

In the deflection chamber:

r=mvqB2r = \frac{mv}{qB_2}

After a semicircle, the ion hits a detector at distance:

d=2r=2mvqB2d = 2r = \frac{2mv}{qB_2}

Since v=E/B1v = E/B_1 is fixed:

d=2mEqB1B2d = \frac{2mE}{qB_1B_2}

Different masses land at different positions, allowing identification.

Alternative: Accelerating Potential

Instead of a velocity selector, ions may be accelerated through a potential difference V0V_0:

qV0=12mv2  ⟹  v=2qV0mqV_0 = \frac{1}{2}mv^2 \implies v = \sqrt{\frac{2qV_0}{m}}

In the deflection region:

r=mvqB=mqB2qV0m=1B2mV0qr = \frac{mv}{qB} = \frac{m}{qB}\sqrt{\frac{2qV_0}{m}} = \frac{1}{B}\sqrt{\frac{2mV_0}{q}}

r=1B2mV0q\boxed{r = \frac{1}{B}\sqrt{\frac{2mV_0}{q}}}

So r∝mr \propto \sqrt{m} when accelerated through a fixed potential.

Resolving Power

Two masses mm and m+Δmm + \Delta m are resolved when their semicircular paths are separated by more than the detector resolution δ\delta:

Δd=2Δr=2Δm⋅EqB1B2(velocity selector)\Delta d = 2\Delta r = \frac{2\Delta m \cdot E}{q B_1 B_2} \quad (\text{velocity selector})

Δd=ΔmB2V0mq(accelerating potential)\Delta d = \frac{\Delta m}{B}\sqrt{\frac{2V_0}{mq}} \quad (\text{accelerating potential})

Applications of Mass Spectrometry

ApplicationWhat's Measured
Isotope identificationMass-to-charge ratio m/qm/q
Chemical analysisMolecular ion masses
Carbon dating14^{14}C/12^{12}C ratio
Doping detectionTrace element concentrations

The Thomson Experiment (e/me/m of Electron)

J.J. Thomson used crossed E⃗\vec{E} and B⃗\vec{B} fields:

  1. With both fields: v=E/Bv = E/B (velocity selector)
  2. With only E⃗\vec{E}: deflection gives qE=maqE = ma, so a=qE/ma = qE/m
  3. Time in field: t=L/vt = L/v
  4. Deflection: y=12at2=qEL22mv2y = \frac{1}{2}at^2 = \frac{qEL^2}{2mv^2}

qm=2yv2EL2=2yEB2L2\frac{q}{m} = \frac{2yv^2}{EL^2} = \frac{2yE}{B^2L^2}

Summary — Part 3

ConfigurationRadius Formula
Velocity selector (vv fixed)r=mv/(qB)r = mv/(qB), r∝mr \propto m
Accelerating potential (V0V_0 fixed)r=2mV0/q/Br = \sqrt{2mV_0/q}/B, r∝mr \propto \sqrt{m}
Thomson experimentq/m=2yE/(B2L2)q/m = 2yE/(B^2L^2)

Next up: Force on current-carrying wires — Part 4.

Part 4: Force on Current-Carrying Wire

Force on Current-Carrying Wires

Part 4 of 7 — F⃗=IL⃗×B⃗\vec{F} = I\vec{L} \times \vec{B}

From Charges to Currents

A current is moving charges. For NN charges each with charge qq and drift velocity v⃗d\vec{v}_d in a wire of length LL and cross-section AA:

F⃗=Nqv⃗d×B⃗=(nAL)(qv⃗d×B⃗)\vec{F} = Nq\vec{v}_d \times \vec{B} = (nAL)(q\vec{v}_d \times \vec{B})

Since I=nqvdAI = nqv_d A:

F⃗=IL⃗×B⃗\boxed{\vec{F} = I\vec{L} \times \vec{B}}

where L⃗\vec{L} points in the direction of conventional current.

Magnitude

F=BILsin⁡θF = BIL\sin\theta

where θ\theta is the angle between the wire and B⃗\vec{B}.

The Differential Form

For a curved wire or non-uniform field, use the differential element:

dF⃗=I dℓ⃗×B⃗d\vec{F} = I\,d\vec{\ell} \times \vec{B}

The total force is:

F⃗=I∫dℓ⃗×B⃗\vec{F} = I \int d\vec{\ell} \times \vec{B}

Important Theorem

For a uniform field, the force on any curved wire depends only on the endpoints:

F⃗=I(∫dℓ⃗)×B⃗=IL⃗net×B⃗\vec{F} = I\left(\int d\vec{\ell}\right) \times \vec{B} = I\vec{L}_{\text{net}} \times \vec{B}

where L⃗net\vec{L}_{\text{net}} is the displacement vector from start to end.

Consequence: A closed loop in a uniform field feels zero net force.

Example: Semicircular Wire

A semicircular wire of radius RR in the xyxy-plane carries current II in a uniform field B⃗=By^\vec{B} = B\hat{y}.

L⃗net=2Rx^⇒F⃗=I(2Rx^)×(By^)=2IRBz^\vec{L}_{\text{net}} = 2R\hat{x} \quad \Rightarrow \quad \vec{F} = I(2R\hat{x}) \times (B\hat{y}) = 2IRB\hat{z}

Force Between Parallel Wires

Two long parallel wires separated by distance dd, carrying currents I1I_1 and I2I_2:

Wire 1 creates field B1=μ0I1/(2πd)B_1 = \mu_0 I_1/(2\pi d) at wire 2.

Force per unit length on wire 2:

FL=I2B1=μ0I1I22πd\frac{F}{L} = I_2 B_1 = \frac{\mu_0 I_1 I_2}{2\pi d}

CurrentsForce
Same directionAttractive
Opposite directionRepulsive

This defines the ampere: two parallel wires 1 m apart, each carrying 1 A, attract with F/L=2×10−7F/L = 2 \times 10^{-7} N/m.

Summary — Part 4

FormulaApplication
F⃗=IL⃗×B⃗\vec{F} = I\vec{L} \times \vec{B}Straight wire, uniform B⃗\vec{B}
dF⃗=Idℓ⃗×B⃗d\vec{F} = Id\vec{\ell} \times \vec{B}Curved wire or non-uniform B⃗\vec{B}
F/L=μ0I1I2/(2πd)F/L = \mu_0 I_1 I_2/(2\pi d)Parallel wires
Closed loop, uniform B⃗\vec{B}F⃗net=0\vec{F}_{\text{net}} = 0

Next up: Moving charges as field sources, and combined fields — Part 5.

Part 5: Moving Charges as Field Sources; Combined Fields

Moving Charges as Field Sources

Part 5 of 7 — Moving Charges as Field Sources; Combined Fields

A Moving Charge Makes a Magnetic Field

Parts 1–4 treated B⃗\vec{B} as given. But every moving charge is also a source of magnetic field. For a point charge qq moving with velocity v⃗\vec{v}, the field at a point a distance rr away is

B⃗=μ04πq v⃗×r^r2,B=μ04π∣q∣vsin⁡θr2\vec{B} = \frac{\mu_0}{4\pi}\frac{q\,\vec{v} \times \hat{r}}{r^2}, \qquad B = \frac{\mu_0}{4\pi}\frac{|q| v \sin\theta}{r^2}

where r^\hat{r} points from the charge to the field point and θ\theta is the angle between v⃗\vec{v} and r^\hat{r}.

Key properties:

  • The field grows with the charge's speed and falls off with distance as 1/r21/r^2
  • B⃗\vec{B} is perpendicular to both v⃗\vec{v} and r^\hat{r} (right-hand rule: fingers along v⃗\vec{v}, curl toward r^\hat{r}; flip the result for a negative charge)
  • BB is maximum when v⃗⊥r^\vec{v} \perp \hat{r} (θ=90°\theta = 90°)
  • B=0B = 0 at points directly ahead of or behind the charge (θ=0°\theta = 0° or 180°180°)

A current is just a stream of moving charges, so adding up these contributions along a wire gives the Biot–Savart law for currents.

Worked Example: Field of a Fast Proton

A proton (q=1.6×10−19q = 1.6 \times 10^{-19} C) moves at v=2.0×106v = 2.0 \times 10^6 m/s. Find BB at a distance r=1.0×10−10r = 1.0 \times 10^{-10} m when the line to the field point makes (a) 90°90°, (b) 30°30°, (c) 0°0° with v⃗\vec{v}. Use μ0/4π=10−7\mu_0/4\pi = 10^{-7} T·m/A.

(a) θ=90°\theta = 90°: B=(10−7)(1.6×10−19)(2.0×106)(1)(1.0×10−10)2=(10−7)3.2×10−1310−20=3.2 TB = (10^{-7})\frac{(1.6 \times 10^{-19})(2.0 \times 10^6)(1)}{(1.0 \times 10^{-10})^2} = (10^{-7})\frac{3.2 \times 10^{-13}}{10^{-20}} = 3.2 \text{ T}

(b) θ=30°\theta = 30°: sin⁡30°=0.5\sin 30° = 0.5, so B=1.6B = 1.6 T.

(c) θ=0°\theta = 0°: sin⁡0°=0\sin 0° = 0, so B=0B = 0 — no field directly ahead of the charge.

Takeaway. At atomic distances a single fast charge makes a strong field; the sin⁡θ\sin\theta factor makes the field strongest to the side of the motion and zero along it.

Combined Electric and Magnetic Fields

In a region with both fields, a moving charge feels independent forces from each, and they simply add:

F⃗=qE⃗+qv⃗×B⃗\vec{F} = q\vec{E} + q\vec{v} \times \vec{B}

What each force can do:

ForceDirectionCan it change the speed?
Electric, qE⃗q\vec{E}Along E⃗\vec{E} (opposite for q<0q < 0)Yes — it can do work
Magnetic, qv⃗×B⃗q\vec{v} \times \vec{B}Perpendicular to v⃗\vec{v}No — it does no work

So any change in kinetic energy comes from the electric field alone: ΔK=−qΔV\Delta K = -q\Delta V.

Crossed Fields When v≠E/Bv \neq E/B

In a velocity selector (Part 1), only v=E/Bv = E/B passes straight through. Otherwise:

  • If v>E/Bv > E/B, the magnetic force is larger and the particle bends toward the magnetic-force side.
  • If v<E/Bv < E/B, the electric force is larger and the particle bends toward the electric-force side.

As it bends, the electric field does work on it, so its speed is no longer constant.

Summary — Part 5

IdeaFormula / Rule
Field of a moving chargeB=μ04π∣q∣vsin⁡θr2B = \dfrac{\mu_0}{4\pi}\dfrac{\vert q\vert v\sin\theta}{r^2}
DirectionPerpendicular to v⃗\vec{v} and r^\hat{r} (right-hand rule)
Maximum / zeroθ=90°\theta = 90° / directly ahead or behind
Combined fieldsF⃗=qE⃗+qv⃗×B⃗\vec{F} = q\vec{E} + q\vec{v} \times \vec{B} (independent forces)
WorkOnly qE⃗q\vec{E} changes the kinetic energy
Crossed fieldsv>E/Bv > E/B: magnetic side; v<E/Bv < E/B: electric side

Next up: Problem-solving workshop — Part 6.

Part 6: Problem-Solving Workshop

Problem-Solving Workshop

Part 6 of 7 — AP Physics C: E&M Style Problems

Strategy for Magnetic Force Problems

  1. Identify the charged object: single particle, wire, or loop.
  2. Write the appropriate force law:
    • Particle: F⃗=qv⃗×B⃗\vec{F} = q\vec{v} \times \vec{B}
    • Wire: F⃗=IL⃗×B⃗\vec{F} = I\vec{L} \times \vec{B} or dF⃗=Idℓ⃗×B⃗d\vec{F} = Id\vec{\ell} \times \vec{B}
    • Both fields present: F⃗=qE⃗+qv⃗×B⃗\vec{F} = q\vec{E} + q\vec{v} \times \vec{B}
  3. Evaluate cross products carefully using the determinant method.
  4. Apply Newton's second law or energy methods as needed.

Worked Example: Hall Effect

A conducting slab (width ww, thickness tt) carries current II in the +x+x direction through a field B⃗=Bz^\vec{B} = B\hat{z}.

Step 1: Current carriers (electrons) drift with v⃗d=−vdx^\vec{v}_d = -v_d\hat{x}.

Step 2: Magnetic force on electrons: F⃗=(−e)(−vdx^)×(Bz^)=evdB(x^×z^)=−evdBy^\vec{F} = (-e)(-v_d\hat{x}) \times (B\hat{z}) = ev_dB(\hat{x} \times \hat{z}) = -ev_dB\hat{y}

Electrons accumulate on the −y-y face, creating a transverse electric field.

Step 3: Equilibrium: eEH=evdBeE_H = ev_dB, so EH=vdBE_H = v_dB.

Step 4: Hall voltage: VH=EHw=vdBwV_H = E_H w = v_d B w

Since I=nevd(wt)I = nev_d(wt), we get vd=I/(newt)v_d = I/(newt):

VH=IBnetV_H = \frac{IB}{net}

A thinner slab or fewer charge carriers gives a larger Hall voltage, and the sign of VHV_H reveals the sign of the carriers.

Workshop Summary

Problem TypeKey Approach
Same KE comparisonr∝m/qr \propto \sqrt{m}/q
Hall effectVH=IB/(net)V_H = IB/(net)
Angular momentumL=qBR2L = qBR^2
Curved wire, uniform B⃗\vec{B}Use L⃗net\vec{L}_{\text{net}}

Next up: Review and applications — Part 7.

Part 7: Review & Applications

Review & Applications

Part 7 of 7 — Comprehensive Assessment

Formula Reference

ConceptFormula
Lorentz forceF⃗=q(E⃗+v⃗×B⃗)\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})
Cyclotron radiusr=mv/(qB)r = mv/(qB)
Cyclotron frequencyω=qB/m\omega = qB/m
Force on wireF⃗=IL⃗×B⃗\vec{F} = I\vec{L} \times \vec{B}
Differential forcedF⃗=Idℓ⃗×B⃗d\vec{F} = Id\vec{\ell} \times \vec{B}
Parallel wiresF/L=μ0I1I2/(2πd)F/L = \mu_0 I_1 I_2/(2\pi d)
Field of a moving chargeB=μ0∣q∣vsin⁡θ/(4πr2)B = \mu_0 \vert q\vert v\sin\theta/(4\pi r^2)
Velocity selectorv=E/Bv = E/B
Hall voltageVH=IB/(net)V_H = IB/(net)

Applications in Modern Physics

1. Particle Accelerators and Spectrometers Charged particles are bent by magnetic fields and sped up by electric fields. Because r=mv/(qB)r = mv/(qB), a stronger field is needed to bend faster or heavier particles around the same curve, and a velocity selector followed by a deflecting field sorts ions by mass.

2. Hall Probes A Hall probe measures BB by reading the Hall voltage VH=IB/(net)V_H = IB/(net) across a thin conducting strip carrying a known current.

3. Aurora Borealis

Charged particles from the solar wind spiral along Earth's magnetic field lines (v∥v_\parallel carries them toward the poles; v⊥v_\perp gives helical motion). They excite atmospheric molecules, producing light.

🎉 Topic Complete!

You've mastered Magnetic Forces for AP Physics C: E&M:

PartTopicStatus
1Lorentz force✅
2Circular motion in B fields✅
3Mass spectrometer✅
4Force on current-carrying wire✅
5Moving charges as sources; combined fields✅
6Problem-solving workshop✅
7Review & applications✅

Key takeaway: The cross product is central to all magnetic force problems. Master the determinant method, understand that magnetic forces do no work, and remember that closed loops in uniform fields have zero net force.