Academy
Formulas/physics/Moving Charges/Field Due to Finite Straight Wire

Field Due to Finite Straight Wire

Field at perpendicular distance d from a finite wire. φ₁ and φ₂ are angles subtended at the field point from the perpendicular foot to each end of the wire.
Class 12
Derivation

Setup

A straight wire carries current II. The field point P is at perpendicular distance dd from the wire. The wire extends from angle ϕ1-\phi_1 to +ϕ2+\phi_2 as seen from P, measured from the perpendicular foot.

Integration

For a small element dydy at position yy on the wire, sinθ=d/d2+y2\sin\theta = d/\sqrt{d^2+y^2} and r2=d2+y2r^2 = d^2+y^2. From Biot-Savart:

dB=μ0I4πddy(d2+y2)3/2dB = \frac{\mu_0 I}{4\pi} \frac{d\,dy}{(d^2 + y^2)^{3/2}}

Substituting y=dtanϕy = d\tan\phi:

dB=μ0I4πdcosϕdϕdB = \frac{\mu_0 I}{4\pi d}\cos\phi\,d\phi

Integrating from ϕ1-\phi_1 to ϕ2\phi_2:

B=μ0I4πd(sinϕ1+sinϕ2)\boxed{B = \frac{\mu_0 I}{4\pi d}\,(\sin\phi_1 + \sin\phi_2)}

All contributions point in the same direction, so the integration is scalar.

Special Cases

Semi-infinite wire (ϕ1=0°\phi_1 = 0°, ϕ2=90°\phi_2 = 90°):

B=μ0I4πdB = \frac{\mu_0 I}{4\pi d}

Infinite wire (ϕ1=ϕ2=90°\phi_1 = \phi_2 = 90°):

B=μ0I2πdB = \frac{\mu_0 I}{2\pi d}
Note
Both $\phi_1$ and $\phi_2$ are positive angles measured from the perpendicular foot to each end. If P is not between the perpendiculars of the two ends, one angle is negative — adjust the formula accordingly.