Sub topic 13
The Biot-Savart Law: Fields from Current Elements
Assume you know vector components, basic trigonometry, electric current, and the meaning of a magnetic field. This chapter develops a method for finding the field produced by a current with a known shape.
From a current element to the magnetic field
A current element is a small length of wire carrying current. The Biot-Savart law gives the small magnetic field produced by that element:
d\mathbf B=\frac{\mu_0}{4\pi}\frac{I\,d\boldsymbol{\ell}\times\hat{\mathbf r}}{r^2}Here:
- \(d\mathbf B\) is the small field contribution.
- \(\mu_0\) is the permeability of free space, \(4\pi\times10^{-7}\ \mathrm{T\,m/A}\).
- \(I\) is the current.
- \(d\boldsymbol{\ell}\) points in the direction of conventional current.
- \(r\) is the distance from the current element to the observation point.
- \(\hat{\mathbf r}\) points from the current element to the observation point.
- \(\times\) is the vector cross product.
The magnitude is
dB=\frac{\mu_0}{4\pi}\frac{I\,d\ell\sin\theta}{r^2},where \(\theta\) is the angle between \(d\boldsymbol{\ell}\) and \(\hat{\mathbf r}\). Contributions from every current element must be added:
\mathbf B=\int d\mathbf B.The cross product determines direction. Use the right-hand rule from \(d\boldsymbol{\ell}\) toward \(\hat{\mathbf r}\). Reverse the current, and the field reverses.
Worked example: a long straight wire
For an infinitely long straight wire, symmetry makes the field magnitude the same at every point a distance \(r\) from the wire. Integrating the Biot-Savart law gives
B=\frac{\mu_0 I}{2\pi r}.The field forms concentric circles around the wire. The right-hand rule gives the direction: point your thumb along the current, and your curled fingers show the field direction.
| Quantity | Meaning | SI unit |
|---|---|---|
| \(B\) | Magnetic field magnitude | tesla, T |
| \(I\) | Current | ampere, A |
| \(r\) | Distance from wire | metre, m |
For a finite wire, the field is smaller and depends on the angles subtended by the wire. A common result is
B=\frac{\mu_0 I}{4\pi r}(\sin\alpha+\sin\beta),where \(\alpha\) and \(\beta\) are the angles from the perpendicular line to the two ends of the wire.
Numerical integration
For a wire with an awkward shape, divide it into many short elements and add their vector fields. This Python example estimates the field at a point from a finite straight wire on the \(x\)-axis.
import numpy as np
mu0 = 4 * np.pi * 1e-7
I = 3.0
x = np.linspace(-0.5, 0.5, 10000)
dx = x[1] - x[0]
# Observation point (0, 0.2, 0)
r_vec = np.column_stack((-x, np.full_like(x, 0.2), np.zeros_like(x)))
r = np.linalg.norm(r_vec, axis=1)
dl = np.column_stack((np.full_like(x, dx), np.zeros_like(x), np.zeros_like(x)))
dB = (mu0 * I / (4 * np.pi)) * np.cross(dl, r_vec) / r[:, None]**3
B = dB.sum(axis=0)
print(B, "tesla")Exercise
A long wire carries \(5.0\ \mathrm{A}\). What is the magnetic field \(0.20\ \mathrm{m}\) from it?
Show answer
\(B=\mu_0I/(2\pi r)=5.0\times10^{-6}\ \mathrm{T}\), or \(5.0\ \mu\mathrm{T}\). Its direction is given by the right-hand rule.