Sub topic 15
Fields of a Long Straight Wire, a Circular Loop and a Solenoid
Assume you know vector components, electric current, basic trigonometry, and the magnetic force law. This chapter uses the Biot–Savart law and Ampère’s law to calculate magnetic fields produced by steady currents.
From current to magnetic field
A current produces a magnetic field. The Biot–Savart law describes the contribution from a small current element:
d\mathbf B=\frac{\mu_0}{4\pi}\frac{I\,d\boldsymbol{\ell}\times\hat{\mathbf r}}{r^2}.Here, \(I\) is current, \(d\boldsymbol{\ell}\) points in the current direction, \(r\) is the distance to the observation point, and \(\mu_0\) is the permeability of free space:
\mu_0=4\pi\times10^{-7}\ \mathrm{T\,m/A}.The cross product determines the direction. For symmetric current arrangements, Ampère’s law is often faster:
\oint\mathbf B\cdot d\boldsymbol{\ell}=\mu_0 I_{\text{enclosed}}.The integral follows a closed path. Choose a path where the field has constant magnitude and is parallel to the path.
Long straight wire
For a long straight wire carrying current \(I\), the field forms concentric circles around the wire. At radial distance \(r\),
B=\frac{\mu_0 I}{2\pi r}.The right-hand rule gives the direction: point your right thumb along the conventional current, and your curled fingers show the field direction.
Using a circular Ampère loop of radius \(r\),
B(2\pi r)=\mu_0 I,which gives the formula above. The field decreases as \(1/r\), so doubling the distance halves the field.
Circular loop
A circular loop of radius \(R\) produces a field along its central axis. At distance \(z\) from the loop center,
B(z)=\frac{\mu_0 I R^2}{2(R^2+z^2)^{3/2}}.At the center, where \(z=0\),
B_{\text{center}}=\frac{\mu_0 I}{2R}.The field points along the loop’s axis. Curl the fingers of your right hand in the current direction. Your thumb points along the magnetic field and defines the loop’s magnetic moment direction.
Solenoid
A solenoid is a long coil with \(n=N/L\) turns per unit length. Near its center, a sufficiently long solenoid has an approximately uniform internal field:
B=\mu_0 n I=\mu_0\frac{N}{L}I.Outside an ideal infinitely long solenoid, the field is zero. Real solenoids have fringing fields near their ends, so this approximation works best when the solenoid length is much greater than its radius.
The direction again follows the right-hand rule. The end where the field exits is the solenoid’s north pole.
Worked calculation
A long wire carries \(8.0\ \mathrm{A}\). At \(r=0.040\ \mathrm{m}\),
B=\frac{(4\pi\times10^{-7})(8.0)}{2\pi(0.040)}
=4.0\times10^{-5}\ \mathrm T.A solenoid with \(N=600\) turns, length \(0.30\ \mathrm m\), and current \(2.0\ \mathrm A\) has
n=\frac{600}{0.30}=2000\ \mathrm{m^{-1}},
\qquad
B=(4\pi\times10^{-7})(2000)(2.0)
=5.0\times10^{-3}\ \mathrm T.import math
mu0 = 4 * math.pi * 1e-7
I_wire = 8.0
r = 0.040
B_wire = mu0 * I_wire / (2 * math.pi * r)
N = 600
L = 0.30
I_solenoid = 2.0
n = N / L
B_solenoid = mu0 * n * I_solenoid
print(f"Wire field: {B_wire:.3e} T")
print(f"Solenoid field: {B_solenoid:.3e} T")Exercise
A wire carries 5.0 A. What is the magnetic-field magnitude 2.0 cm from the wire?
Show answer
Use B = μ₀I/(2πr). With r = 0.020 m, B = 5.0 × 10⁻⁵ T.