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ฮผ0โIโ
Center of circular loop
B=2Rฮผ0โIโ
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ฯฮผ0โโr2Idlร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ฮผ0โIโ
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 ๐ฏ
=
ฮผ0โIencโ
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=ฮผ0โI/(2ฯr)
Solenoid
Rectangle (length L)
B=ฮผ0โnI
Toroid
Circular loop inside
B=ฮผ0โNI/(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=ฮผ0โIencโ 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ฮผ0โIโ. 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
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 ฮฆBโchanges 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ฮผ0โIโ, 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=B1โI2โL=.
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=ฮผ0โI/(2ฯr)
Long wire
B=ฮผ0โnI
Solenoid
โฎBโ dl=ฮผ0โIencโ
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ฯฮผ0โโr2Idlรr^. When symmetry is high, Ampรจre's law โฎBโ dl shortcuts the integral. Standard answers to memorize: long wire 2ฯrฮผ0โIโ, loop center 2Rฮผ0โIโ, solenoid ฮผ0โnI.
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=B1โEโ=
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.0ย Aโ
m2
=
(0.60)(0.50)=
0.30ย Nโ
m
ร
B
uniform
B
F=I(โซdl)รB
closed loop
โซdl=0
net force is zero
ฯ=ฮผBsinฮธ
3/2
ฮผ0โIR2
โ
โ
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.