Sources of Magnetic Fields - Complete Interactive Lesson
Part 1: Magnetic Force on Charges
🧲 Magnetic Force on Moving Charges
Part 1 of 7 — The Lorentz Force
Magnetic Force
F=qv×B
Magnitude: F=qvBsinθ
Fact
Detail
Direction
Right-hand rule (cross product)
Perpendicular
Force ⊥ velocity AND ⊥ B
No work
Magnetic force does NO work (F⊥v)
Circular Motion in B Field
qvB=rmv2
r=qBmv
ω=mqB (cyclotron frequency)
🔑 A charged particle in a uniform B moves in a circle (or helix). The magnetic force provides centripetal acceleration.
Helical Motion and Crossed Fields
Why a helix? Split the velocity into components parallel and perpendicular to B. The perpendicular part v⊥ feels the force and circles with radius ; the parallel part feels no force () and drifts at constant speed. Together they trace a helix whose (advance per turn) is .
Worked Example — Radius and Period of Circular Motion
A proton (m=1.67×10−27 kg, q=1.6) enters a uniform field perpendicular to its velocity . Find (a) the radius of its path and (b) the period of revolution.
Concept Check 🎯
Part 2: Force on Current-Carrying Wires
🔌 Force on Current-Carrying Wires
Part 2 of 7 — Wires in Magnetic Fields
Force on a Wire
F=IL
Part 3: Biot-Savart Law
🔬 Biot-Savart Law
Part 3 of 7 — Magnetic Field from Current
The Biot-Savart Law
dB=
Part 4: Ampere's Law
🔁 Ampere’s Law
Part 4 of 7 — Symmetry and Magnetic Fields
Ampere’s Law
∮B⋅dl
Part 5: Magnetic Flux
🌀 Magnetic Flux
Part 5 of 7 — Flux Through Surfaces
Magnetic Flux
ΦB=∫B
Part 6: Problem-Solving Workshop
🛠️ Magnetic Fields Workshop
Part 6 of 7 — Strategies
Choosing the Right Law
Situation
Use
Field from a short wire segment
Biot-Savart
Field with high symmetry
Ampere’s law
Force on a moving charge
F
Part 7: Review & Applications
📋 Magnetic Fields Review
Part 7 of 7 — Summary
Key Formulas
Formula
Use
F=q
r=qBmv⊥
v∥
sinθ=0
pitch
p=v∥T=v∥qB2πm
The velocity selector. Cross an electric field with a magnetic field so their forces oppose. A charge goes straight only when they cancel:
qE=qvB⟹v=BE.
This selects a single speed regardless of charge or mass — the front end of a mass spectrometer.
Speed never changes. Because F⊥v, the magnetic force does zero work, so ∣v∣ is constant; only the direction turns. Kinetic energy is conserved in any purely magnetic field.
×
10−19 C
B=0.50 T
v=2.0×106 m/s
Step 1 — Force provides centripetal acceleration. The magnetic force is the only force, so qvB=rmv2.
Step 2 — Solve for radius. Cancel one v: r=qBmv=(1.6×10−19)(0.50)(1.67×10−27)(2.0×10. Numerator =3.34×10−21; denominator =8.0×10−20. So r=4.2×10−2 m=4.2 cm.
Step 3 — Period. The cyclotron period is T=v2πr=qB2πm. Note that v cancels:
T=(1.6×10−19)(0.50)2π(1.67×10−27)=1.3×10−7 s.
Key insight: the cyclotron period (and frequency ω=qB/m) is independent of speed and radius — faster particles trace bigger circles in exactly the same time. This is the principle that makes the cyclotron work.
×
B
Magnitude: F=BILsinθ
where L is the length of wire in the field.
Torque on a Current Loop
τ=μ×B
where μ=NIAn^ is the magnetic dipole moment.
∣τ∣=NIABsinθ
🔑 This is the principle behind electric motors — a current loop in a magnetic field experiences a torque.
Force on a Bent Wire, and the Motor Principle
For a wire of arbitrary shape, sum the force on each element: F=I∫dl×B. In a uniform field, B factors out and the integral reduces to the straight-line displacement between endpoints:
F=IL
where Lnet points from start to finish. A semicircle of radius R therefore feels the same force as a straight wire of length joining its ends.
Closed loop ⇒ zero net force. For any closed loop ∮dl=0, so the net force vanishes in a uniform field — yet the loop still feels a torqueτ= that twists it to align with .
The motor. A DC motor uses a commutator to flip the current direction every half-turn, so the torque always pushes the loop the same way around. The magnetic potential energy U=−μ⋅ is lowest when aligned — the loop "wants" to rotate toward that configuration.
Worked Example — Torque on a Loop and Integrating Force
A rectangular coil of N=50 turns, width w=0.10 m and height h=0.20 m, carries I=2.0 A in a uniform field B=0.30 T. The coil's normal makes θ=30∘ with B. Find the torque.
Step 1 — Magnetic moment.μ=NIA=NI(wh)=(50)(2.0.
Step 2 — Apply the torque law.τ=μBsinθ=(2.0)(0.30)sin30∘.
Why the cross product? (calculus view). For a curved or angled wire, the total force is the line integral F=I∫dl. In a field can come outside the integral: . For a , , so the — but the torque is generally nonzero, which is exactly what spins a motor. The two horizontal sides of our coil carry opposite-direction currents, producing forces that form a couple of magnitude .
Concept Check 🎯
4πμ0
r2I,dl×r^
Common Results
Configuration
B at Center/Point
Long straight wire
B=2πrμ0I
Center of circular loop
B=2Rμ0I
On axis of loop
B=2(R2+x2)
μ0=4π×10−7 T·m/A
🔑 Right-hand rule: curl fingers in direction of current → thumb points in direction of B.
How to Attack a Biot-Savart Integral
The law dB=4πμ0r2Idl×r^ is the magnetic analog of Coulomb's law for fields. A reliable recipe:
Pick the field point and draw r^ from a typical current element to it.
Evaluate the cross productdl× — its magnitude is , and its direction (right-hand rule) tells you which way points.
Finite straight wire. Integrating for a straight segment subtending angles θ1 and θ2 at perpendicular distance d gives
B=4πdμ0I
For an infinite wire both angles approach 90∘, so sinθ1+sinθ and — recovering the familiar result.
Use Biot-Savart when symmetry is too low for Ampère's law (finite segments, arcs, off-axis points). Use Ampère when symmetry is high.
Worked Example — Integrating Biot-Savart for a Loop's Axis
Find the on-axis field of a circular loop of radius R carrying current I, at distance x from the center, by integrating the Biot-Savart law. Then evaluate the center.
Step 1 — Set up dB. Each element dl is perpendicular to r^ (the vector to the axial point), so ∣dl×r^∣=dl and dB=4πμ0, where r=R2+x2.
Step 2 — Symmetry kills the perpendicular components. Components transverse to the axis cancel in pairs; only the axial part survives, scaled by cosα=R2+x2:
dBx=4π
Step 3 — Integrate around the loop. Everything except dl is constant, and ∮dl=2πR:
Bx=
Step 4 — At the center (x=0).B=2R3, recovering the standard center-of-loop result.
Concept Check 🎯
=
μ0Ienc
When to Use Ampere’s Law
Use when there is sufficient symmetry to simplify ∮B⋅dl:
Configuration
Amperian Loop
Result
Long straight wire
Circular loop (radius r)
B=μ0I/(2πr)
Solenoid
Rectangle (length L)
B=μ0nI
Toroid
Circular loop inside
B=μ0NI/(2πr)
🔑 Ampere's law is the magnetic analog of Gauss's law — use symmetry!
Choosing the Amperian Loop
Ampère's law ∮B⋅dl=μ0Ienc is always true, but it only solves for B when you can pull B out of the integral. That requires picking a loop along which B is either constant-and-parallel or perpendicular-to-dl (contributing nothing):
Symmetry
Good Amperian loop
Long straight wire (cylindrical)
Circle centered on the wire
Solenoid / infinite sheet (planar)
Rectangle
Toroid
Circle threading the windings
The full field of a thick wire (radius a, uniform current) has two regimes:
Inside (r<a): B=2πa2 — grows with .
The two pieces match at the surface (r=a), where the field peaks at 2πaμ0I. Plotting vs. gives a triangle-then-tail shape — a classic free-response figure.
Worked Example — Field Inside a Thick Wire
A long cylindrical wire of radius a=2.0 mm carries a total current I=8.0 A distributed uniformly over its cross-section. Find B at r=1.0 mm (inside the wire).
Step 1 — Choose an Amperian loop. By cylindrical symmetry, B is tangential with constant magnitude on a circle of radius r, so ∮.
Step 2 — Enclosed current. The current density is J=πa2I. The loop of radius r encloses
Ienc=J(πr2)=I
Step 3 — Apply Ampère's law.B(2πr)=μ0Ia2, giving
B=2πa2μ0I
Inside the wire B grows linearly with r (unlike the 1/r falloff outside).
Step 4 — Plug in.B
Concept Check 🎯
⋅
dA
For uniform B through flat surface: ΦB=BAcosθ
Units: Weber (Wb) = T·m²
Gauss’s Law for Magnetism
∮B⋅dA=0
🔑 No magnetic monopoles — field lines have no beginning or end. Total flux through any closed surface is zero.
Uniform vs. Non-Uniform Flux
When B is uniform over a flat surface, the integral collapses: ΦB=B⋅A=BAcosθ, where θ is the angle between B and the surface normaln^. Flux is maximal when the normal lies along B and zero when the surface is edge-on to the field.
When B varies across the surface (for example, near a current-carrying wire where B∝1/r), you must actually integrate: slice the area into strips on which is nearly constant, then . Integrating a field across a strip produces the logarithm you will see in the worked example.
Why This Matters for Induction
Flux is the bridge to Faraday's law: an EMF appears only when ΦBchanges in time. Gauss's law for magnetism, ∮B, guarantees the field lines you count entering a closed surface exactly equal those leaving — there are no magnetic charges to act as sources or sinks. This is one of the four Maxwell equations.
Worked Example — Flux from a Wire Through a Loop (Integration)
A long straight wire carries current I. A rectangular loop of height ℓ lies in the same plane, with its near side a distance a from the wire and its far side at a+b. Find the total flux through the loop.
Step 1 — The field varies across the loop. At distance r from the wire, B(r)=2πrμ0I, pointing perpendicular to the loop's plane. Because B depends on r, we must integrate rather than use BA.
Step 2 — Set up the strip. Take a thin strip of width dr at distance r, with area dA=ℓdr. The flux through it is
dΦB=B(r)dA=
Step 3 — Integrate from a to a+b.
ΦB=2π
Numbers. With I=20 A, ℓ=0.10 m, a=0.01 m, : . The logarithm is the signature of a field integrated over distance.
Concept Check 🎯
=
qv×
B
Force on a current-carrying wire
F=IL×B
Torque on a loop
τ=NIABsinθ
Field vs. Force — Don't Mix Them Up
Magnetic problems split into two families. Identify which you are in first:
Family B — Find the FORCE/TORQUE on something in a known field.
Point charge → F=qv×B.
Current-carrying wire → F=IL.
Current loop → torque τ=μ, with .
Two-step problems (like parallel wires) chain them: use Family A to get one wire's field, then Family B to get the force on the other. The force per length between long parallel wires, LF=2πd, is the canonical example — same direction currents attract, opposite repel.
Worked Example — Choosing and Combining Tools
A long straight wire carries I1=6.0 A. A second long parallel wire, a distance d=0.030 m away, carries I2=4.0 A in the same direction over a length L=1.5 m. Find the force between them and its direction.
Step 1 — Field of wire 1 at wire 2 (Ampère / standard result).B1=.
Step 2 — Force on wire 2 (force-on-current law).F=B1I2L=.
Step 3 — Direction (right-hand rules).B1 at wire 2 points into the page (say), and points toward wire 1: .
Takeaway — the decision tree: use Ampère's law (or a memorized symmetric result) to get the field, then F=IL for the . Reserve the Biot-Savart integral for fields of finite or curved segments lacking symmetry.
Concept Check 🎯
v
×
B
Force on charge
r=mv/(qB)
Cyclotron radius
B=μ0I/(2πr)
Long wire
B=μ0nI
Solenoid
∮B⋅dl=μ0Ienc
Ampere’s law
ΦB=BAcosθ
Flux
The Big Picture of Magnetostatics
Currents make fields; fields push currents. Those are the two halves of the unit.
Making fields. All field results trace back to Biot-Savart, dB=4πμ0r2Idl×r^. When symmetry is high, Ampère's law ∮B⋅dl shortcuts the integral. Standard answers to memorize: long wire 2πrμ0I, loop center 2Rμ0I, solenoid μ0nI.
Feeling forces. A field exerts F=qv on a charge and on a wire. Because these are cross products, the force is perpendicular to the motion, so — they bend paths into circles and helices but never change speed.
Two field laws you can quote.
∮B⋅dA (Gauss for magnetism — no monopoles).
Together with the two electric Maxwell equations and Faraday's law from the induction unit, these complete the electromagnetic picture.
Worked Example — Velocity Selector and Mass Spectrometer
A velocity selector has perpendicular fields E=3.0×104 V/m and B1=0.10 T. Ions then enter a region of field B2=0.20 T. (a) Find the selected speed. (b) A singly-charged ion (q=1.6×10−19 C) then bends in a circle of radius r=0.050 m; find its mass.
Part (a) — Balance electric and magnetic forces. An ion passes straight through only if qE=qvB1, so the speed is independent of charge:
v=B1E=
Part (b) — Circular motion in B2. From r=qB, solve for mass:
m=vq
This pair of ideas — a velocity selector feeding a momentum analyzer — is exactly how a mass spectrometer separates isotopes: equal-speed ions of different mass trace circles of different radius via r=mv/(qB).
Concept Check 🎯
6
)
net
×
B,
2R
μBsinθ
μ
B
B
=
−μBcosθ
)
(
0.10
×
0.20)=
(50)(2.0)(0.020)=
2.0A⋅
m2
=
(0.60)(0.50)=
0.30N⋅
m
×
B
uniform
B
F=I(∫dl)×B
closed loop
∫dl=0
net force is zero
τ=μBsinθ
3/2
μ0IR2
r^
dlsinθ
dB
Exploit symmetry to cancel components before integrating. (On a loop's axis, only the axial component survives.)
Integrate what is left, pulling constants outside.