Biot-Savart Law — Magnetic Field Due to Straight Wire

medium CBSE JEE-MAIN JEE Main 2024 4 min read

Question

A long straight conductor carries a steady current II. Using the Biot-Savart Law, derive the expression for the magnetic field BB at a perpendicular distance rr from the wire.

This is the foundational result for magnetism: B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}


Solution — Step by Step

Place the wire along the Y-axis. We want the field at point P, which is at perpendicular distance rr from the wire (along the X-axis).

Consider a small current element IdlId\vec{l} at position yy on the wire. The vector from this element to point P has magnitude s=r2+y2s = \sqrt{r^2 + y^2}.

The Biot-Savart Law gives the field from one small element:

dB=μ04πIdlsinθs2d\vec{B} = \frac{\mu_0}{4\pi} \cdot \frac{I\, dl \sin\theta}{s^2}

Here θ\theta is the angle between dld\vec{l} and the line joining the element to P. By the right-hand rule, all dBd\vec{B} contributions point in the same direction (out of the page, if current flows upward and P is to the right). That means we can simply add magnitudes.

This is where most derivations get messy — we switch to angle ϕ\phi to make the integral clean.

Let ϕ\phi be the angle that the line from element to P makes with the perpendicular. Then:

y=rtanϕ,dy=rsec2ϕdϕ,s=rcosϕy = r\tan\phi, \quad dy = r\sec^2\phi\, d\phi, \quad s = \frac{r}{\cos\phi}

Also, sinθ=cosϕ\sin\theta = \cos\phi (draw this — θ\theta and ϕ\phi are complementary).

Substituting:

dB=μ0I4πcosϕrsec2ϕdϕr2sec2ϕ=μ0I4πrcosϕdϕdB = \frac{\mu_0 I}{4\pi} \cdot \frac{\cos\phi \cdot r\sec^2\phi\, d\phi}{r^2\sec^2\phi} = \frac{\mu_0 I}{4\pi r}\cos\phi\, d\phi

For an infinite wire, ϕ\phi runs from π/2-\pi/2 to +π/2+\pi/2:

B=π/2+π/2μ0I4πrcosϕdϕ=μ0I4πr[sinϕ]π/2+π/2B = \int_{-\pi/2}^{+\pi/2} \frac{\mu_0 I}{4\pi r}\cos\phi\, d\phi = \frac{\mu_0 I}{4\pi r}\Big[\sin\phi\Big]_{-\pi/2}^{+\pi/2} B=μ0I4πr[1(1)]=μ0I4πr×2B = \frac{\mu_0 I}{4\pi r}\left[1 - (-1)\right] = \frac{\mu_0 I}{4\pi r} \times 2 B=μ0I2πr\boxed{B = \frac{\mu_0 I}{2\pi r}}

Why This Works

The key insight is that a current element alone creates no measurable field — only the integrated effect of the entire wire produces the result we can measure. The Biot-Savart approach sums up infinitely many tiny contributions, each obeying the inverse-square-distance law, but the geometry means the net result falls off only as 1/r1/r (not 1/r21/r^2). This is exactly analogous to how an infinite line charge gives E1/rE \propto 1/r in electrostatics.

The variable substitution to angle ϕ\phi is the technical heart of this derivation. Distance ss and element length dydy both change as we move along the wire, and expressing both in terms of a single angle makes the integral tractable. If you try integrating in terms of yy directly, you get dy(r2+y2)3/2\int_{-\infty}^{\infty} \frac{dy}{(r^2 + y^2)^{3/2}} — it works, but it’s significantly harder.

The direction of B\vec{B} follows from the right-hand rule: wrap your right hand around the wire with the thumb pointing in the direction of current — your fingers curl in the direction of the field lines (concentric circles around the wire).


Alternative Method

For JEE problems, Ampere’s Law gives the same result in one line — use it whenever symmetry allows.

For an infinite straight wire, the field has cylindrical symmetry. Draw an Amperian loop — a circle of radius rr centred on the wire. By symmetry, B|\vec{B}| is constant everywhere on this loop and B\vec{B} is tangential to it.

Bdl=μ0Ienc\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{\text{enc}} B(2πr)=μ0IB \cdot (2\pi r) = \mu_0 I B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

Same answer, ten times faster. Biot-Savart is needed when symmetry breaks down (finite wire, curved segments). For infinite straight wires and solenoids, always prefer Ampere’s Law in JEE.


Common Mistake

Applying this formula to a finite wire. The result B=μ0I/2πrB = \mu_0 I / 2\pi r holds only for an infinitely long wire. For a finite wire of length 2L2L, the correct answer is B=μ0I4πr2Lr2+L2B = \frac{\mu_0 I}{4\pi r} \cdot \frac{2L}{\sqrt{r^2 + L^2}}. In JEE Main 2024, a variant asked for the field at the midpoint perpendicular of a finite wire — students who blindly applied the infinite-wire formula lost full marks. The limits of integration change from ±π/2\pm\pi/2 to the actual angles subtended at point P.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next