The Timpson Lyceum · University Physics II (2026) – Electricity & Magnetism
Sources of Magnetic Field – Lecture 10 (University Physics II)
Overview
The previous chapter asked how moving charges respond to a magnetic field. This lecture asks the counterpart question: how moving charges produce one. Starting from the field of a single moving point charge, we build up the Biot–Savart law for a current element, then integrate it to get the field of a straight wire, of a circular loop, and of a tightly stacked coil. Along the way the force between two parallel current-carrying wires gives the official definition of the ampere. The lecture closes with Ampère's law, which plays the same labor-saving role for magnetic fields that Gauss's law plays for electric ones — and which is the result you will reuse most going forward.
Key Concepts
Field of a moving point charge. A charge moving with velocity produces, at a point a distance away in the direction of the unit vector , the field
- The direction comes from — use the right hand rule. The field wraps in circles around the line of motion.
- The magnitude carries a factor , where is the angle between and . So the field is strongest perpendicular to the motion and exactly zero straight ahead of and straight behind the charge.
- It falls off as , like gravity and like the electric field.
The constant . By construction is exactly . This is not a coincidence of measurement — it follows from how the ampere is defined (below). The Coulomb constant can be written , which gives the useful relation
Magnetic vs. electric force. For two like charges moving past one another at speed , the ratio of the magnetic to the electric force between them is . Everyday speeds — the drift velocity in a wire is millimeters per second — make this ratio vanishingly small. Strong magnetic fields come from piling up enormous numbers of moving charges (large currents), not from fast ones.
Biot–Savart law. Treat a short length of wire carrying current as a point charge's worth of moving charge. Its contribution to the field is
Integrating over the whole conductor gives the total field. As with the point charge, an element contributes nothing directly along its own direction of current.
Straight wire. For a wire of length , at a perpendicular distance from its midpoint, the integral (via the substitution ) gives
When the wire is very long compared with the distance (), the last factor goes to :
The field of a long wire falls off linearly with distance, not as — the same behavior as the electric field of a long charged rod.
Two antiparallel wires. For equal currents in opposite directions separated by , the fields reinforce between the wires and oppose each other outside them. Far away the net field falls off as rather than . This is exactly why signal and return conductors are run tightly together — the pair's external field dies off fast and interferes far less with its neighbors. Two currents in the same direction do the reverse: weaker between, stronger outside.
Force between parallel conductors. Each wire sits in the other's field, so each feels a force. Per unit length,
Currents in the same direction attract; currents in opposite directions repel.
Definition of the ampere. One ampere is the current that makes two long parallel conductors exactly apart feel exactly . Current, not charge, is the SI base unit here for a practical reason: forces can be measured, whereas individual charges cannot be counted. The coulomb is then defined from it — the charge one ampere carries in one second — and this choice is what fixes at exactly .
Circular loop. On the axis of a loop of radius , a distance from its center, the off-axis contributions cancel in pairs and only the axial components survive:
At the center () this reduces to , the strongest point on the axis.
Coils and solenoids. Stacking tightly packed loops multiplies the field by :
This is how strong laboratory fields are made. The scaling is ideal only while the coil stays compact; stretch it out and field lines begin to leak out the sides instead of threading the whole length. In terms of the magnetic dipole moment , the axial field can be written in one expression covering both the single-loop and -loop cases.
Gauss's law for magnetism. The net magnetic flux through any closed surface is zero,
because isolated magnetic poles do not exist — break a magnet and you get two smaller magnets. This statement is true but useless for computing from a current, since it relates flux to enclosed poles rather than to moving charge.
Ampère's law. The useful counterpart to Gauss's law is a line integral around a closed path:
Walk any closed loop, dotting the field with each step. The result depends only on the current the path encloses — not on the path's shape, length, or distance from the wire. A path enclosing no current gives zero. Currents count with a sign according to which way they pierce the loop, so two equal antiparallel currents inside the path contribute nothing.
Why it holds in general: for a step subtending angle at the wire, the component along the field is . Substituting makes the cancel, leaving . Any path that encircles the wire sweeps through , giving regardless of shape. A path that does not enclose the wire accumulates as much negative as positive on the way back, giving zero.
Worked Example
A solenoid on its axis. A tightly wound coil of turns and radius carries . Find the field on its axis from the center.
Use the axial field of an -turn coil, then substitute:
The radius and distance were chosen so that exactly, which is why the denominator collapses to . The answer, about , is a couple of times the Earth's field.
How close to a wire matches the Earth's field? A single wire carries . Find the distance at which its field equals (half a gauss, roughly the Earth's field). Solve the long-wire result for :
Only from a one-amp wire the field already rivals the Earth's — a useful reminder of how weak the Earth's field actually is.
Summary
- A moving charge produces a field : circling the line of motion, strongest perpendicular to it, zero straight ahead and straight behind.
- The Biot–Savart law extends this to a current element, and integrating it gives the field of any conductor; , and the magnetic force between two moving charges is smaller than the electric force by .
- A long straight wire gives , falling off linearly with distance; a pair of antiparallel wires falls off as , which is why signal and return lines are run together.
- Parallel currents attract and antiparallel ones repel, with — the relation that defines the ampere as at one meter separation.
- A loop gives at its center, and stacked turns multiply this by , which is how strong fields are built in practice.
- Ampère's law, , depends only on the enclosed current and not on the path — the magnetic counterpart of Gauss's law, and the tool that replaces these integrals going forward.