Sub topic 1
What a magnetic field is: field lines, the tesla and the gauss
Prerequisites
This chapter assumes you know vector components, Newton's second law, uniform circular motion, and basic trigonometry. You should also know that electric charges and currents exist.
Field lines and units
A magnetic field B is a vector field. At each point in space it has a magnitude and a direction. Field lines show that direction. Outside a bar magnet, they run from north to south and form closed loops. Field lines never cross. Where they sit closer together, the field is stronger.
The SI unit is the tesla (T), where 1 T = 1 N/(A·m). The gauss (G) is an older unit, with 1 T = 10,000 G. Earth's surface field is about 50 µT, or 0.5 G.
The cross product and the right-hand rule
The cross product a × b has magnitude |a||b| sin θ, where θ is the angle between the vectors. Its direction is perpendicular to both vectors. With the right hand, point the fingers along a, curl them toward b, and the thumb points along a × b. Swapping the order reverses the sign: b × a = −(a × b).
The magnetic force on a moving charge
A charge q moving with velocity v in a field B feels the force F = qv × B. Its magnitude is |F| = |q|vB sin θ. The force is zero when v is parallel to B, and it is largest when v is perpendicular to B. For a negative charge, the force points opposite to the right-hand-rule direction.
import math
q = 1.602176634e-19 # proton charge, C
m = 1.67262192e-27 # proton mass, kg
B = 0.5 # field strength, T
v = 1.0e6 # speed perpendicular to B, m/s
F = q * v * B # force magnitude, N
r = m * v / (q * B) # radius, m
T = 2 * math.pi * m / (q * B) # period, s
print(f"F = {F:.3e} N, r = {r:.4f} m, T = {T:.3e} s")Why magnetic forces change direction but not speed
The force is always perpendicular to the velocity, so the power delivered is P = F · v = 0. The magnetic force does no work, and the kinetic energy stays constant. The direction changes, but the speed does not.
Circular motion: radius, period and cyclotron frequency
In a uniform field with v perpendicular to B, the magnetic force supplies the centripetal force: qvB = mv²/r. This gives the radius r = mv/(qB). The period is T = 2πr/v = 2πm/(qB). The cyclotron frequency is f = 1/T = qB/(2πm), which does not depend on speed.
Exercise
Exercise
A proton moves at 2.0 × 10^6 m/s perpendicular to a 0.5 T field. Using the proton values from the code above, what is its radius?
Show answer
r = mv/(qB) = (1.67262192e-27 × 2.0e6)/(1.602176634e-19 × 0.5), which is about 0.0418 m, or 4.2 cm. Doubling the speed doubles the radius, and the period stays at about 131 ns.