Section 18.2 Current in a wire
One of the most fundamental examples in electromagnetism is the magnetic field around a wire.
The magnetic field along an infinitely long straight wire along the \(z\) axis, carrying uniform current \(I\text{,}\) is given by
where \(\mu_0\) and \(I\) are constant. Note that the first expression clearly indicates both the direction of \(\BB\) and its \(\frac{1}{r}\) fall-off behavior, while the second expression does neither. Given the magnetic field, Ampère's Law allows one to determine the current flowing through (not around) any loop \(C\text{,}\) namely
which is just Stokes' Theorem. We verify this for the case of a circle around the \(z\)-axis.
What do we know? Our circle lies in the \(xy\)-plane; it is enough to use polar coordinates. We therefore start with the formula (6.3.1) and insert \(dr=0\text{,}\) so that \(d\rr=r\,d\phi\,\phat\text{,}\) and the integral becomes
as expected; the only current flowing through this loop is that flowing along the \(z\)-axis.
This was too easy! Yes, of course, one can solve this problem using rectangular coordinates, but more work is required, involving both algebra and trigonometry; the geometry is lost.