Figure shows the cross section of a long straight wire of radius a that carries a current I out of the page. Because the current is uniformly distributed over the cross section of the wire, the magnet ic field \(\vec{B}\) due to the current must be cylindrically symmetrical. Thus, along the Amperian loop of radius r(r < a), symmetry suggests that \(\vec{B}\) is tangent to the loop, as shown in the figure.
\(\oint \vec{B} \cdot \overrightarrow{d l}=B \oint d l\) = B(2πr) ……….. (1)
Because the current is uniformly distributed, the current Iencl enclosed by the loop is proportional to the area encircled by the loop; that is,
Iencl = Jπr2
By right-hand rule, the sign of ‘d is positive. Then, by Ampere’s law,
B (2πr) = µ0 Iencl = µ0 Jπr2 ……………….. (2)
∴ B = \(\frac{\mu_{0} J}{2} r\) ……………… (3)
OR
Iencl = I\(\frac{\pi r^{2}}{\pi a^{2}}\)
By right-hand rule, the sign of I\frac{\pi r^{2}}{\pi a^{2}} is positive. Then, by Ampere’s law,
\(\oint B d l\) = µ0 Iencl
∴ B(2πr) = µ0I \(\frac{r^{2}}{a^{2}}\) …………. (4)
∴ B = (\(\frac{\mu_{0} I}{2 \pi a^{2}}\) )r ………… (5)