← back to physics

Magnetism

Benjamin Crowell · Simple Nature Ch. 7 · CC BY-SA 3.0

Moving charges create magnetic fields. Magnetic forces are always perpendicular to velocity, so they change direction without changing speed. Ampere's law relates the field around a wire to the current through it.

The magnetic field

Electric charges at rest create electric fields. Electric charges in motion also create magnetic fields. The magnetic field B is a vector field measured in teslas (T). Unlike electric field lines that start and end on charges, magnetic field lines always form closed loops.

B field lines (closed loops) Current I out of page B
Scheme

The Lorentz force

A charge q moving with velocity v through a magnetic field B feels a force F = qv x B. The cross product means the force is perpendicular to both the velocity and the field. A positive charge moving right in a field pointing into the page curves upward. This perpendicularity means magnetic forces do no work: they steer, but never speed up or slow down.

Scheme

Ampere's law

Ampere's law says the line integral of B around any closed loop equals mu_0 times the current passing through the loop. In symbols: the integral of B dot dl around a closed path = mu_0 * I_enclosed. This is the magnetic analog of Gauss's law. It's most useful when symmetry lets you pull B out of the integral.

Scheme

Solenoids

A solenoid is a coil of wire. Inside a long solenoid the field is uniform and parallel to the axis: B = mu_0 * n * I, where n is the number of turns per meter. Outside, the field is nearly zero. Solenoids are how we make controllable, uniform magnetic fields.

Scheme

Magnetic flux

Magnetic flux through a surface is the integral of B dot dA. For a uniform field through a flat loop: Phi = B * A * cos(theta). Flux is measured in webers (Wb = T * m^2). Gauss's law for magnetism says the total flux through any closed surface is zero. There are no magnetic monopoles: every field line that enters a surface also exits.

Scheme
Neighbors

Cross-references

Foundations (Wikipedia)

Translation notes

All formulas assume SI units. The cross product in the Lorentz force is computed as a scalar magnitude here (q*v*B*sin theta) since our Scheme REPL lacks vector operations. Crowell develops the vector form in detail. The solenoid formula assumes an ideal infinite solenoid; real solenoids have fringe fields at the ends.