Going round a closed loop
The Biot-Savart law gives the field of any wire, but often at the cost of an integral. For shapes with strong symmetry there is a shortcut. It does not look at one point. It looks at a whole closed path round the currents.
Draw any closed loop in space and choose a sense to go round it. Cut the loop into small steps \(d\vec l\), each along the path. At each step take \(\vec B\cdot d\vec l = B\,dl\cos\theta\), where \(\theta\) is the angle between the field and the step. Add these round the whole loop. The total is the line integral of \(\vec B\) round the loop, written \(\oint\vec B\cdot d\vec l\).
Try it on a circle of radius \(r\) round a long straight wire, gone round in the sense of the field lines. The field is \(\mu_0 I/2\pi r\) at every point and points along the circle, so \(\cos\theta = 1\). The sum is \(B\times 2\pi r = \mu_0 I\). The radius has dropped out. A bigger circle has a weaker field but a longer path, and the product stays \(\mu_0 I\).
That result is not a lucky accident of circles. It holds for every closed loop round the wire, of any shape. André-Marie Ampère's study of currents led to the general law, which carries his name.
For any closed loop, the line integral of the magnetic field round the loop equals \(\mu_0\) times the net current threading the loop: \(\oint\vec B\cdot d\vec l = \mu_0 I_{enc}\). Curl the fingers of the right hand in the sense of travel round the loop. A current along the thumb counts as positive, a current the other way as negative.
The loop chosen for the law is called an Amperian loop. The current that threads it is the enclosed current, the current through any surface spanning the loop. Currents outside the loop still make field on the loop. But they add as much to the sum on one side of the loop as they take away on the other. So they drop out of the total.
In Fig 4.1 the right hand, curled anticlockwise, has its thumb out of the page. The \(5\,\text{A}\) coming out counts \(+5\,\text{A}\) and the \(3\,\text{A}\) going in counts \(-3\,\text{A}\). So \(\oint\vec B\cdot d\vec l = \mu_0\times 2\,\text{A} = 2.51\times10^{-6}\,\text{T m}\). Go round the other way, and every sign flips: both sides of the law change sign together.
The law is always true, but it gives \(B\) only when the loop has symmetry. The left side is an integral of \(B\) round the loop. It becomes "\(B\) times the length" only on a loop where \(B\) has one size everywhere and points along the loop. Choosing that loop is the whole skill.
A closed loop in the page is gone round clockwise. It is threaded by a wire carrying \(8\,\text{A}\) into the page and a wire carrying \(3\,\text{A}\) out of the page. A third wire, carrying \(10\,\text{A}\), lies outside. What is \(\oint\vec B\cdot d\vec l\), in microtesla metres?
The long wire, in one line
Use the law the other way now. Start from the symmetry of a long straight wire and find its field. Turn the wire about its own axis, or slide it along itself. Nothing changes, so the field cannot change either. Its size can depend only on the distance \(r\) from the wire, and its lines must be circles round it.
Take the Amperian loop to be one of those circles, of radius \(r\). On it \(B\) is constant and along the path. So the integral is \(B\times 2\pi r\), and the law gives \(B\times 2\pi r = \mu_0 I\), that is \(B = \mu_0 I/2\pi r\). Two lessons of Biot-Savart work have become one line.
Use Ampere's law to find the field \(3\,\text{cm}\) from a long straight wire carrying \(12\,\text{A}\). Give it in microtesla.
Inside a thick wire
A real wire has a radius \(R\), and the current flows through its whole cross-section. Outside the wire, a circle of radius \(r > R\) encloses all of \(I\). The field there is \(\mu_0 I/2\pi r\), as if all the current flowed along the axis.
Inside, a circle of radius \(r < R\) encloses only the current through its own area. Let the current be spread evenly, with a uniform current density \(J = I/\pi R^2\). The circle encloses \(J\pi r^2 = Ir^2/R^2\). Then \(B\times 2\pi r = \mu_0 I r^2/R^2\).
The field is zero on the axis and rises in proportion to \(r\). It peaks at the surface, where the two formulas agree at \(\mu_0 I/2\pi R\). Beyond the surface it falls as \(1/r\). For \(R = 0.02\,\text{m}\) and \(20\,\text{A}\): \(10^{-4}\,\text{T}\) at \(0.01\,\text{m}\), \(2\times10^{-4}\,\text{T}\) at the surface, \(10^{-4}\,\text{T}\) at \(0.04\,\text{m}\).
Now let the current crowd towards the surface, with a density \(J = J_0 r/R\) that grows with the distance from the axis. A thin ring of radius \(r'\) and width \(dr'\) carries \(J\times 2\pi r'\,dr'\). Adding the rings from \(0\) to \(r\) gives a current proportional to \(r^3\). So a circle of radius \(r\) encloses \(Ir^3/R^3\), and \(B = \mu_0 Ir^2/2\pi R^3\) inside.
A long cylinder of radius \(R\) carries a total current \(I\) with density \(J = J_0 r/R\). Part (a): find the current enclosed by a circle of radius \(r < R\). Part (b): find \(B\) at \(r = R/2\) and compare it with the uniform case. Part (c): where is \(B\) largest?
(a) Add thin rings: \(I(r) = \int_0^r J_0\dfrac{r'}{R}\,2\pi r'\,dr'\), which is \(\dfrac{2\pi J_0 r^3}{3R}\). The whole current is \(I = 2\pi J_0 R^2/3\), so \(I(r) = I r^3/R^3\).
(b) At \(R/2\) the circle encloses \(I/8\), so \(B = \mu_0 (I/8)/2\pi(R/2) = \mu_0 I/8\pi R\). The uniform cylinder encloses \(I/4\) there and gives \(\mu_0 I/4\pi R\). The field is half, because less of the current lies near the axis.
(c) Still at the surface. Inside, \(B\) grows as \(r^2\); outside, it falls as \(1/r\).
Values used: \(\mu_0/2\pi = 2\times10^{-7}\,\text{T m/A}\). With \(20\,\text{A}\) and \(R = 2\,\text{cm}\), the figure shows \(50\,\mu\text{T}\) at \(r = 1\,\text{cm}\), against \(100\,\mu\text{T}\) for a uniform current.
A long straight wire of radius \(1\,\text{cm}\) carries \(10\,\text{A}\) spread uniformly over its cross-section. What is the field \(0.5\,\text{cm}\) from its axis, in microtesla?
Where is the magnetic field of a long solid cylinder carrying a uniform current largest?
Hollow cylinders and coaxial cables
A long thin-walled tube carries a current along its length. By symmetry its field lines are circles about the axis, as before. A circle inside the hollow encloses no current, so \(B\times 2\pi r = 0\). The field inside the tube is zero at every point. Outside, the circle encloses all of \(I\), and \(B = \mu_0 I/2\pi r\).
A thick tube, with radii \(a\) and \(b\), needs the enclosed part of its wall. For a circle of radius \(r\) between \(a\) and \(b\), the enclosed fraction is the area \(\pi(r^2 - a^2)\) over \(\pi(b^2 - a^2)\). A tube of radii \(0.01\,\text{m}\) and \(0.02\,\text{m}\) carrying \(30\,\text{A}\) encloses \(30\times(2.25 - 1)/(4 - 1)\), or \(12.5\,\text{A}\), at \(0.015\,\text{m}\). There \(B = 2\times10^{-7}\times 12.5/0.015\), which is \(1.67\times10^{-4}\,\text{T}\).
A coaxial cable carries a current \(I\) out along a central core and the same current back along a metal shell round it. The cable of a television set-top box is one. Fig 4.2 cuts it across. A circle in the core encloses \(Ir^2/a^2\). A circle in the gap encloses all of \(I\). A circle outside encloses \(I - I = 0\).
So the field of a coaxial cable lives only inside it: \(\mu_0 Ir/2\pi a^2\) in the core, \(\mu_0 I/2\pi r\) in the gap, and nothing outside. For \(5\,\text{A}\) out and back, the field \(0.01\,\text{m}\) from the axis, in the gap, is \(2\times10^{-7}\times 5/0.01 = 10^{-4}\,\text{T}\). The cable neither disturbs its neighbours nor picks up their fields as easily.
A coaxial cable carries \(4\,\text{A}\) out along its core and \(4\,\text{A}\) back along its outer shell. What is the magnetic field just outside the cable?
A long, thin, hollow metal tube carries a current along its length. Use Ampere's law to explain why the field is zero everywhere inside it.
By symmetry the field, if there is any, runs in circles about the axis, with the same size all round a circle. A circle of radius \(r\) inside the hollow encloses no current, because all the current flows in the wall. So \(B\times 2\pi r = \mu_0\times 0\), and \(B = 0\) at every point inside.
A cylinder with an off-centre cavity has a surprising field. Treat it as a full cylinder with current density \(\vec J\) plus a smaller cylinder, filling the cavity, with \(-\vec J\). Inside a uniform cylinder \(\vec B = \tfrac12\mu_0\vec J\times\vec r\). Adding the two gives \(\vec B = \tfrac12\mu_0\vec J\times\vec d\), where \(\vec d\) joins the two axes. It is the same at every point of the cavity. With \(J = 10^6\,\text{A/m}^2\) and \(d = 1\,\text{cm}\), the cavity holds a uniform \(6.28\times10^{-3}\,\text{T}\).
An electrician checking a house's supply often uses a clamp meter. Its jaws close round one wire without cutting it, and it reads the current. A sensor in the jaws measures, in effect, \(\oint\vec B\cdot d\vec l\) round the jaws, which is \(\mu_0 I\). So the reading does not change when the wire sits off-centre in the jaws. Clamp both wires of a lamp's flex together, and the meter reads zero: the current going out and the current coming back cancel in \(I_{enc}\).
Oersted's result was read in Paris in September 1820. Within weeks André-Marie Ampère showed that two parallel currents attract and two opposite currents repel. He spent six years measuring the forces between currents and in 1826 published a mathematical theory of them. The law of this lesson grew out of that work. James Clerk Maxwell later wrote it as a line integral round a loop, in the 1850s and 1860s. He kept Ampère's name on it.
- Counting a current that lies outside the Amperian loop.Only currents threading the loop enter \(I_{enc}\); outside currents change \(B\) but not the integral.
- Using \(B\times 2\pi r = \mu_0 I\) with the whole current inside a thick wire.Inside, use only the enclosed part, \(Ir^2/R^2\) for a uniform current.
- Ignoring the signs of currents in opposite directions.Curl the right fingers along the loop's sense: currents along the thumb are positive, the rest negative.
- Writing \(\oint\vec B\cdot d\vec l = BL\) on a loop where \(B\) changes or is not along the path.Choose a loop on which the symmetry makes \(B\) constant and tangential, or perpendicular to the path.