← Electricity & Magnetism
🧲

Magnetostatics & the Biot-Savart Law

Steady currents create static magnetic fields. The Biot-Savart law gives the field from any current distribution; for symmetric geometries, Ampere's law (the magnetic analog of Gauss's law) is far more efficient. The divergence of B is always zero — there are no magnetic monopoles.

Key Concepts

Biot-Savart Law
dB=μ04πIdl×r^r2d\vec B=\frac{\mu_0}{4\pi}\frac{I\,d\vec l\times\hat{\mathscr r}}{\mathscr r^2}. The magnetic field from a current element IdlId\vec l. Direction: right-hand rule (fingers along current, curl toward field point).
Ampere's Law
Bdl=μ0Ienc\oint\vec B\cdot d\vec l=\mu_0 I_{\rm enc} (for steady currents). Like Gauss's law, use when symmetry makes B|\vec B| constant on an Amperian loop. Choose a circular loop for solenoids and infinite wires.
Vector Potential
B=×A\vec B=\nabla\times\vec A. Ensures B=0\nabla\cdot\vec B=0 automatically. In the Coulomb gauge (A=0\nabla\cdot\vec A=0): 2A=μ0J\nabla^2\vec A=-\mu_0\vec J, the magnetic analog of Poisson's equation.
Magnetic Dipole
A small current loop with magnetic moment m=Ia\vec m=I\vec a (area vector). Far-field: same form as electric dipole but with EB\vec E\to\vec B, 1/(4πε0)μ0/(4π)1/(4\pi\varepsilon_0)\to\mu_0/(4\pi), pm\vec p\to\vec m.

Key Equations

Biot-Savart
dB=μ04πIdl×r^r2d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2}
Magnetic field from a current element; μ₀ = 4π×10⁻⁷ T·m/A.
Infinite wire
B=μ0I2πsB = \frac{\mu_0 I}{2\pi s}
Field at distance s from a long straight wire carrying current I.
Solenoid
B=μ0nIB = \mu_0 nI
Interior field of a solenoid with n turns/meter, current I.
Worked Example

Field of a Long Straight Wire

Problem

A long straight wire carries I=10I=10 A. Find BB at r=0.05r=0.05 m from the wire.

Solution

By symmetry, use Ampere's law with a circular loop of radius rr:

Bdl=B2πr=μ0I\oint\vec B\cdot d\vec l = B\cdot2\pi r = \mu_0 I
B=μ0I2πr=4π×107×102π×0.05=4×1060.10=4.0×105 T=40μTB = \frac{\mu_0 I}{2\pi r} = \frac{4\pi\times10^{-7}\times10}{2\pi\times0.05} = \frac{4\times10^{-6}}{0.10} = 4.0\times10^{-5}\text{ T} = 40\,\mu\text{T}
Answer B=40B=40 μT.
Practice

Exercises

7 problems
1 of 7

A long wire carries I=5.0I=5.0 A. Find BB at r=0.10r=0.10 m (in μT). B=μ0I/(2πr)B=\mu_0I/(2\pi r), μ0=4π×107\mu_0=4\pi\times10^{-7} T·m/A.

μT
2 of 7

A solenoid has n=2000n=2000 turns/m and I=3.0I=3.0 A. Find BB inside (in mT).

mT
3 of 7

A circular loop (radius R=0.20R=0.20 m) carries I=4.0I=4.0 A. Find BB at the center (in μT). B=μ0I/(2R)B=\mu_0I/(2R).

Unlock Exercise 3

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
4 of 7

Force per unit length between two parallel wires 0.30 m apart, each carrying I=10I=10 A in the same direction (in N/m). Attractive or repulsive? F/L=μ0I2/(2πd)F/L=\mu_0 I^2/(2\pi d).

Unlock Exercise 4

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
5 of 7

A toroid has N=500N=500 turns, mean radius R=0.10R=0.10 m, and I=2.0I=2.0 A. Find BB inside (in mT). B=μ0NI/(2πR)B=\mu_0NI/(2\pi R).

Unlock Exercise 5

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
6 of 7

A magnetic dipole has m=0.050m=0.050 A·m². Find the torque (in N·m) in a uniform B=0.40B=0.40 T field at θ=90°\theta=90° (τ=mBsinθ\tau=mB\sin\theta).

Unlock Exercise 6

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
7 of 7

A proton (q=1.6×1019q=1.6\times10^{-19} C, m=1.67×1027m=1.67\times10^{-27} kg) enters a B=0.50B=0.50 T field perpendicular to it at v=2.0×106v=2.0\times10^6 m/s. Find the cyclotron radius r=mv/(qB)r=mv/(qB) (in cm).

Unlock Exercise 7

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →

Key Takeaways

  • Biot-Savart law gives B\vec B from any current; Ampere's law is efficient for symmetric configurations.
  • Infinite wire: B=μ0I/(2πr)B=\mu_0I/(2\pi r). Solenoid: B=μ0nIB=\mu_0nI (uniform inside, zero outside).
  • B=0\nabla\cdot\vec B=0 always — no magnetic monopoles. B=×A\vec B=\nabla\times\vec A enforces this.
  • Parallel currents attract; anti-parallel repel. This defines the SI ampere.