7.5 Magnetic Field of an Infinitely-Long Straight Current-Bearing Wire

In this section, we use the magnetostatic form of Ampere’s Circuital Law (ACL) (Section 7.4) to determine the magnetic field due to a steady current \(I\) (units of A) in an infinitely-long straight wire. The problem is illustrated in Figure 7.3. The wire is an electrically-conducting circular cylinder of radius \(a\). Since the wire is a cylinder, the problem is easiest to work in cylindrical coordinates with the wire aligned along the \(z\) axis.

A small cylinder with radius a represents a wire, centered vertically on the z-axis in a Cartesian coordinate system. From the bottom, current is pointed upward through the wire. Around the middle of the wire is a circular path C, with an arrow on the path pointed counterclockwise to indicate direction. A dashed vector, rho, extends out of the middle of the wire to the left to the path, perpendicular to the z-axis.
Figure 7.3. Determination of the magnetic field due to steady current in an infinitely-long straight wire. © K. Kikkeri CC BY SA 4.0

Here’s the relevant form of ACL:

\begin{equation} \oint_{\mathcal C}{ {\bf H} \cdot d{\bf l} } = I_{encl} \tag{7.7}\end{equation}

where \(I_{encl}\) is the current enclosed by the closed path \({\mathcal C}\). ACL works for any closed path, so to exploit the symmetry of the cylindrical coordinate system we choose a circular path of radius \(\rho\) in the \(z=0\) plane, centered at the origin. With this choice we have

\begin{equation} I_{encl}=I ~~ \mbox{for}~\rho\ge a \tag{7.8}\end{equation}

For \(\rho<a\), we see that \(I_{encl}<I\). a steady (DC) current will be distributed uniformly throughout the wire (Section 6.4). Since the current is uniformly distributed over the cross section, \(I_{encl}\) is less than the total current \(I\) by the same factor that the area enclosed by \({\mathcal C}\) is less than \(\pi a^2\), the cross-sectional area of the wire. The area enclosed by \({\mathcal C}\) is simply \(\pi \rho^2\), so we have

\begin{equation} I_{encl} =I \frac{\pi \rho^2}{\pi a^2} =I \frac{\rho^2}{a^2} ~~ \mbox{for}~\rho<a \tag{7.9}\end{equation}

For the choice of \({\mathcal C}\) made above, Equation 7.7 becomes

\begin{equation} \int_{\phi=0}^{2\pi} { {\bf H} \cdot \left(\hat{\bf \phi}~\rho~d\phi\right) } = I_{encl} \tag{7.10}\end{equation}

Note that we have chosen to integrate in the \(+\phi\) direction. Therefore, the right-hand rule specifies that positive \(I_{encl}\) corresponds to current flowing in the \(+z\) direction, which is consistent with the direction indicated in Figure 7.3. (Here’s an excellent exercise to test your understanding. Change the direction of the path of integration and confirm that you get the same result obtained at the end of this section. Changing the direction of integration should not change the magnetic field associated with the current!)

The simplest way to solve for \({\bf H}\) from Equation 7.10 is to use a symmetry argument, which proceeds as follows:

From the above considerations, the most general form of the magnetic field intensity can be written \({\bf H} = \hat{\bf \phi}H(\rho)\). Substituting this into Equation 7.10, we obtain

\begin{flalign} I_{encl} &= \int_{\phi=0}^{2\pi} { \left[\hat{\bf \phi}H(\rho)\right] \cdot \left(\hat{\bf \phi}~\rho~d\phi\right) } \\ &= \rho H(\rho)~\int_{\phi=0}^{2\pi} { d\phi } \\ &= 2\pi \rho H(\rho) \tag{7.11}\end{flalign}

Therefore, \(H(\rho)=I_{encl}/2\pi \rho\). Reassociating the known direction, we obtain:

\begin{equation} {\bf H} = \hat{\bf \phi}\frac{I_{encl}}{2\pi \rho} \tag{7.12}\end{equation}

Therefore, the field outside of the wire is:

\begin{equation} \boxed{ {\bf H} = \hat{\bf \phi}\frac{I}{2\pi \rho} ~~ \mbox{for} ~ \rho\ge a } \tag{7.13}\end{equation}

whereas the field inside the wire is:

\begin{equation} \boxed{ {\bf H} = \hat{\bf \phi}\frac{I\rho}{2\pi a^2} ~~ \mbox{for} ~ \rho<a } \tag{7.14}\end{equation}

(By the way, this is a good time for a units check.)

Note that as \(\rho\) increases from zero to \(a\) (i.e., inside the wire), the magnetic field is proportional to \(\rho\) and therefore increases. However, as \(\rho\) continues to increase beyond \(a\) (i.e., outside the wire), the magnetic field is proportional to \(\rho^{-1}\) and therefore decreases.

If desired, the associated magnetic flux density can be obtained using \({\bf B} = \mu {\bf H}\).

Summarizing:

The magnetic field due to current in an infinite straight wire is given by Equations 7.13 (outside the wire) and 7.14 (inside the wire). The magnetic field is \(+\hat{\bf \phi}\)-directed for current flowing in the \(+z\) direction, so the magnetic field lines form concentric circles perpendicular to and centered on the wire.

Finally, we point out another “right-hand rule” that emerges from this solution, shown in Figure 7.4 and summarized below:

The magnetic field due to current in an infinite straight wire points in the direction of the curled fingers of the right hand when the thumb of the right hand is aligned in the direction of current flow.

This simple rule turns out to be handy in quickly determining the relationship between the directions of the magnetic field and current flow in many other problems, and so is well worth committing to memory.

A red wire lies vertically, with a vector in the middle pointing up to represent current. Three blue, concentric circles lie around the middle of the rectangle, labeled H. To the right of the rectangle is a right hand, with the thumb pointed up and fingers curled.
Figure 7.4. Right-hand rule for the relationship between the direction of current and the direction of the magnetic field. © Jfmelero CC BY SA 4.0 (modified)