Sub topic 4
Field of a straight wire: finite and infinite
This chapter assumes you know the Biot-Savart law, the cross product with its right-hand rule, and the integral of cos α. The goal is to derive the field of a straight wire segment and then take the infinite-wire limit.
Setting up the integral
Take a straight wire carrying current I. Let P be a point at perpendicular distance d from the wire. A current element I dl at distance r from P contributes
dB = (μ0 / 4π) · I dl sin φ / r²
Here φ is the angle between dl and the vector r from the element to P. Every element contributes in the same direction, perpendicular to the plane containing the wire and P, so you can add magnitudes directly.
Measure the angle α from the perpendicular foot to the element, as seen from P. Then:
- l = d tan α, so dl = d sec²α dα
- r = d sec α
- sin φ = cos α
Substituting gives
dB = (μ0 I / 4π d) cos α dα
The finite wire
Integrate α from −θ1 to +θ2. Each angle is measured from the perpendicular to the line from P to that end of the wire.
B = (μ0 I / 4π d)(sin θ1 + sin θ2)
If P lies beyond one end, so that the perpendicular foot is outside the wire, the angle on the near side changes sign. Then B = (μ0 I / 4π d)(sin θ2 − sin θ1), where both angles are measured on the same side of the perpendicular.
The infinite wire and special cases
Let both angles approach 90°. Then sin θ1 + sin θ2 = 2, and
B = μ0 I / (2π d)
For a semi-infinite wire, with P on the perpendicular through the end, θ1 = 0 and θ2 = 90°. This gives B = μ0 I / (4π d), which is exactly half the infinite-wire value.
import math
MU0 = 4e-7 * math.pi
def straight_wire_field(I, d, theta1, theta2):
# theta1 and theta2 are the angles, measured from the perpendicular dropped
# from the point to the wire, to the lines joining the point to each end.
return MU0 * I / (4 * math.pi * d) * (math.sin(theta1) + math.sin(theta2))
# Infinite wire limit: both angles approach 90 degrees, so B = mu0 I / (2 pi d)
print(straight_wire_field(10, 0.05, math.pi / 2, math.pi / 2)) # 4e-05 teslaDirection
Point the right thumb along the current. Your curled fingers show the circulation of B around the wire. The field lines are circles centred on the wire, and B falls off as 1/d.
Common errors
- Measuring θ from the wire instead of from the perpendicular. The formula uses sines of angles taken from the perpendicular. If you use angles from the wire, the sines become cosines.
- Forgetting that the perpendicular distance d, not the distance to an end, appears in the formula.
- Adding the contributions of two wire segments as scalars when their field directions differ.
Exercise
A straight wire carries 10 A. Find the field at a point 5 cm from the wire on the perpendicular through one end of the wire, if the wire is very long in one direction only (semi-infinite). Use μ0 = 4π × 10⁻⁷ T m/A.
Show answer
For a semi-infinite wire, θ1 = 0 and θ2 = 90°, so B = μ0 I / (4π d) = (10⁻⁷ × 10) / 0.05 = 2 × 10⁻⁵ T. This is half of the 4 × 10⁻⁵ T given by an infinite wire at the same distance.