The integral you would rather not do
In the last lesson you built the field of a current from scratch. Biot-Savart chops the wire into pieces , works out the tiny field each piece makes at your point, and adds them up. It always works. It is also brutal: for anything but a straight wire or a loop on its own axis, the integral is a three-line mess of square roots.
Now picture a copper wire two millimetres across carrying ten amps, and ask for the field halfway between the axis and the surface. With Biot-Savart you would have to add up the contributions of every filament of current in that cross-section, at a point that is off-axis for almost all of them. It takes hours. The answer, once you have it, is embarrassingly simple.
That mismatch (vicious integral, simple answer) is a signal. It means the symmetry of the problem is doing most of the work, and there should be a way of using the symmetry directly. That way is Ampere's law. It is to magnetism what Gauss's law is to electrostatics: a statement that is always true, and that becomes a one-line calculation whenever the geometry is symmetric enough.
Circulation, and what the law says
Take any closed path in space: any loop at all, it does not have to be a wire or follow a field line. Walk around it, and at each step multiply the component of along your direction of travel by the length of the step. Add up all those products as you go round once. That sum is written
and it is called the circulation of around the loop. The circle on the integral sign means the path closes. If the field pushes you forward everywhere, the circulation is large and positive. If the field is always sideways to your path, every term is zero and so is the total.
Ampere's law says the circulation only depends on the current threading the loop:
Here T·m/A is the permeability of free space, the same constant that appeared in Biot-Savart, and is the net current passing through any surface bounded by the loop. That is all. The shape of the loop does not matter, the distance to the wires does not matter, and (this is the surprising part) currents outside the loop do not matter.
A current outside your loop certainly makes a field at every point on the loop. But as you walk round, it helps you along one part of the path by exactly as much as it fights you on another, and its net contribution to the circulation is zero. Only threading current survives.
The sign comes from your right hand. Point your fingers the way you walk around the loop; your thumb then points in the positive direction for current. Current threading the other way counts as negative. So if a loop encircles A and A coming out of the page and A going in, traversed counterclockwise, then A, and
You never had to know where the wires were inside the loop, or how far apart.
Ampere's law in this form is exactly true only for steady currents: currents that are not changing in time. Maxwell later added a second term to handle changing electric fields, which is what makes a capacitor work as part of a circuit. Everything here is the steady case.
Quick check
A circular loop of radius 1 cm sits 5 cm away from a long wire, so the wire passes outside it. What is the circulation of B around that loop?
Getting a number out: the straight wire
The law is always true and usually useless. It becomes a tool only when you can find a path on which you already know the shape of , so that the integral collapses.
For a long straight wire, argue the shape from symmetry before drawing anything. Rotate the whole setup about the wire's axis and nothing changes, so can only depend on the distance from the axis. Slide everything along the axis and nothing changes, so cannot depend on position along the wire. And Biot-Savart's cross product puts perpendicular to the current, so the field wraps around the wire in circles.
Now choose your path to match: a circle of radius , centred on the wire, in the plane perpendicular to it. On that circle is everywhere parallel to and everywhere the same size, so the circulation is just times the length of the path:
That took three lines instead of a page. For A at cm:
The combination is worth memorising; it turns these into mental arithmetic.
Now the wire with thickness. Let the wire have radius and carry spread uniformly over its cross-section, and put your circle inside the metal at radius . The symmetry argument is unchanged, so the left side is still . What changes is the right side: your loop no longer catches all the current, only the fraction of the cross-section it encloses,
so that
Inside, the field grows straight from zero at the axis. Outside it falls as . At the two expressions agree, both giving , which is the largest field anywhere: right at the surface.
That halfway-into-the-copper question from the opening is now one substitution. With mm, A and mm:
Quick check
Inside a uniform wire of radius 5.0 mm, at what distance from the axis is the field half its value at the surface?
When the current is not spread evenly
Nothing above required uniform current. The only step that used it was . If the current density varies with radius, replace that step with an integral, and it is a one-dimensional integral over thin rings, not the three-dimensional monster Biot-Savart would have handed you.
A ring of radius and thickness has area , so
Worked example. A wire of radius mm carries a total of A with density , strongest on the axis and falling to zero at the surface. Find at mm.
First find from the total current, because the problem gave you amps, not a density:
So A/m².
Now the same integral, stopped at :
Compare that with the total, : the inner half of the wire carries exactly half the current, A. Then
The pattern to take away: find the density, integrate it out to your radius, and only then divide by . Two-thirds of the errors on problems like this come from skipping the first step and using the total current.
does not mean . It means the circulation vanishes. A loop drawn around two equal and opposite wires encloses zero net current, but the field at points on that loop is certainly not zero: it points one way on one side and the other way elsewhere, and cancels only when summed. You may conclude from only after a symmetry argument has already told you that is constant in magnitude and everywhere tangent to your path. Outside a hollow pipe's cavity and outside a perfect toroid, it is; for a random loop, it is not.
Straight paths: solenoid, sheet, toroid
Circles are not the only useful loops. When the field is straight and uniform, a rectangle is better.
A solenoid is a wire wound in a tight helix, turns per metre, carrying . Far from the ends, the field inside points along the axis and is uniform; outside a long solenoid it is very nearly zero, because the return field spreads over the whole of space. Draw a rectangle with one side of length inside along the axis, the opposite side outside, and the two short sides crossing the winding perpendicular to the field.
Go round it. The inside side gives , since is parallel to the path and constant. The outside side gives zero, since out there. The two short sides give zero, since is perpendicular to along them. So the circulation is . The rectangle links turns, each carrying , so , and
The cancels, which it had to: the answer cannot depend on how long you chose to draw your rectangle. Note what does not depend on: the solenoid's radius, and your position inside it. Only turns per metre. A solenoid m long with turns has m⁻¹, so at A, T.
The same rectangle trick handles an infinite sheet carrying surface current density , measured in amps per metre of width. By symmetry the field is parallel to the sheet, perpendicular to the current, and reverses sign as you cross. Take a rectangle straddling the sheet with two sides of length parallel to it. Both those sides contribute , the short sides contribute nothing, and the loop catches of current:
Independent of distance, exactly like the field of an infinite charged plane. For A/m, T. A thick slab of thickness carrying density is the same calculation with replaced by whatever lies inside your loop: at height within the slab the loop catches per length , giving , and outside it catches everything, giving .
A toroid is a solenoid bent into a doughnut, turns in total. Its field lines close on themselves inside the windings, so the natural path is a circle of radius round the doughnut's hole. That circle threads all turns once each:
Unlike the solenoid, this field is not uniform: it is strongest at the inner edge of the cross-section and weakest at the outer edge. Outside the windings, in the hole or beyond the rim, a similar circle encloses zero net current (each turn crosses it twice, in opposite directions, or not at all), and there the field really is zero.
Worked example. A toroid of square cross-section runs from inner radius m to outer radius m, stands m tall, has turns and carries A. Find the flux through one cross-section.
You cannot write flux as , because changes across the face. Strip the square into vertical slivers of height and width , over each of which is effectively constant:
Put the numbers in. , and , so
That logarithm is the fingerprint of a field integrated across a gap, and it will come back when you compute inductance.
Superposing fields: coax and the drilled hole
Ampere's law needs symmetry. Real problems often break it slightly: a hole bored off-centre, two nested conductors with mismatched currents. The fix is almost always the same: write the awkward object as a sum of symmetric objects, solve each with Ampere's law, and add the fields as vectors.
The gentle case is a coaxial cable: a core carrying out and a shield carrying back. A circle at radius still has the full rotational symmetry, so everywhere; all you have to do is count correctly. Between the conductors, . Outside both, , which is zero for a properly matched cable and is why coax does not radiate into the room. If only A returns for A sent, then at mm you enclose A and T. If a miswired cable sends A and A the same way, you enclose A, and at mm, T.
Inside the thickness of the shield, from to , only part of the return current is caught, in proportion to the area:
Worked example, the hard kind. A long conductor of radius carries uniform current density out of the page. A cylindrical hole of any radius is bored parallel to the axis, its centre offset by from the conductor's axis. Find the field inside the hole.
A drilled cylinder has no symmetry, so Ampere's law cannot touch it directly. But a solid cylinder of density plus a smaller cylinder of density filling the hole is exactly the same current distribution: inside the hole the two densities cancel to zero, and everywhere else the full survives. Each piece is a perfectly symmetric solid cylinder, and each you already know.
For a solid cylinder of density , the field at an interior point a distance from its own axis is , pointing circumferentially. Written as a vector it is , where runs from that cylinder's axis to the point.
Take a point inside the hole. Let go from the big axis to and from the hole's axis to . Adding:
and is just , the offset between the two axes. It does not contain at all. The field everywhere inside the hole is the same vector:
perpendicular to . A uniform field inside a bored cavity: a genuinely surprising result, and one that falls out of two lines of superposition. With A/m² and cm:
The same picture answers a harder question. Suppose cm, the hole has radius with its axis from the conductor's axis, and the remaining metal carries A. What is the field at the original axis? First get , remembering the metal is what is left after drilling:
At the original axis, , so the full cylinder contributes nothing. The negative cylinder contributes with m:
Superposition works because Ampere's law is linear in the current. Any current distribution you can write as a sum of symmetric ones (cylinder minus cylinder, two sheets, wire plus sheet) is solvable, even though no single Amperian loop would ever crack it.
Knowing when to reach for it
Ampere's law is the right tool when the problem hands you one of a very short list of shapes, in a form that hints the answer should be clean.
Look for these words in the statement: long or infinite straight wire, cylindrical, coaxial, solenoid, toroid, wide sheet or slab. Each of those is a claim about symmetry, and it is there to tell you that one well-chosen loop will do the job.
Look for a question asked at a radius or a depth rather than at a named point: "at mm", "1.0 cm from the central plane". That phrasing means the author expects to depend on one coordinate only, which is exactly the condition that makes the circulation collapse to times a length.
Look for a current density given as a function, , or a total current on a thick conductor. That is an invitation to integrate over the enclosed area and nothing more.
And when the geometry is nearly but not quite symmetric (a hole off the axis, an unbalanced shield) do not abandon the law. Split the object into symmetric pieces and add.
If instead you are given a finite segment of wire, a single circular loop, a point off the axis of a coil, or any shape with no repeating symmetry, Ampere's law is still true but it will not give you . Go back to Biot-Savart and integrate.
Everything above quietly assumed the currents were steady. Next that assumption goes, and you will find that a magnetic field which changes in time drives a current all by itself, with no battery anywhere: that is Faraday's law and Lenz's law.