Sub topic 2
The Biot-Savart law
This chapter assumes you know the cross product and its right-hand rule, basic integration of angle functions, and the SI unit ampere. It builds the law that the later chapters on wires, arcs and loops all use.
What the law says
The Biot-Savart law gives the magnetic field produced by a small piece of current-carrying wire. Take a piece of wire of length element dl, pointing along the direction of the current I. Let r be the vector from that element to the point P where you want the field. Then the field contribution at P is:
dB = (μ0 / 4π) · I (dl × r) / r³
Equivalently, with the unit vector r̂ = r / r, dB = (μ0 / 4π) · I dl sin θ / r², where θ is the angle between dl and r.
Here μ0 = 4π × 10⁻⁷ T·m/A is the permeability of free space. The factor μ0 / 4π equals 10⁻⁷ T·m/A, which is convenient in numerical work.
Reading the formula
- Direction. dB points along dl × r. It is perpendicular to both the wire element and the line joining it to P. Curl your right-hand fingers from dl toward r, and your thumb gives dB.
- Distance. The contribution falls as 1/r², like the electric field of a point charge.
- Angle. The contribution is zero along the line of the element (θ = 0 or 180°). It is largest when r is perpendicular to dl.
- Superposition. The total field is the vector sum of all contributions: B = ∫ dB. A real wire is a closed circuit, but the law is applied to each piece and the pieces are added.
Procedure for solving problems
- Choose a small element dl and draw r from it to the field point.
- Write dB using the magnitude form, with θ as the angle between dl and r.
- Pick a single variable (an angle or a length) and express r, θ and dl in it.
- Decide which components of dB cancel by symmetry. Keep only the surviving components.
- Integrate over the whole conductor.
Worked example: a numerical check
Before using the law in closed form, you can apply it directly. The code below splits a circular loop into many small elements, computes dB for each with the cross product, and adds them. It compares the sum on the axis with the closed-form result μ0 I R² / (2 (R² + x²)^(3/2)), which later chapters derive.
import numpy as np
MU0 = 4e-7 * np.pi
def loop_axis_numeric(I, R, x, n=2000):
phi = np.linspace(0, 2 * np.pi, n, endpoint=False)
dphi = 2 * np.pi / n
src = np.stack([R * np.cos(phi), R * np.sin(phi), np.zeros(n)], axis=1)
dl = np.stack([-R * np.sin(phi) * dphi, R * np.cos(phi) * dphi, np.zeros(n)], axis=1)
r = np.array([0.0, 0.0, x]) - src
dist = np.linalg.norm(r, axis=1)[:, None]
dB = MU0 * I / (4 * np.pi) * np.cross(dl, r) / dist**3
return dB.sum(axis=0)
def loop_axis_formula(I, R, x):
return MU0 * I * R**2 / (2 * (R**2 + x**2) ** 1.5)
I, R, x = 5.0, 0.10, 0.10
print(loop_axis_numeric(I, R, x)[2])
print(loop_axis_formula(I, R, x))Both lines print about 5.55 × 10⁻⁶ T. The x and y components of the sum are close to zero, because contributions from opposite sides of the loop cancel in those directions. Only the component along the axis survives.
Common errors
- Using the vector from P to the element instead of from the element to P. This flips the sign of dB.
- Taking θ as the angle between dl and the direction to the point measured the wrong way. Since sin θ = sin(180° − θ), either supplementary angle works, but the angle between dl and the line of r must be used, not an angle to the perpendicular.
- Treating dl and r as constants. Both change from element to element, so they must be expressed in the integration variable.
- Forgetting that a field point on the line of the wire gives sin θ = 0, so a straight wire produces no field along its own extension.
Exercise
Exercise
A short wire element of length 2 mm carries a current of 3 A along the +x direction. Find the magnitude of the field it produces at a point 0.5 m away, on a line making 90° with the element. Use μ0 / 4π = 10⁻⁷ T·m/A.
Show answer
dB = (μ0 / 4π) I dl sin θ / r² = 10⁻⁷ × 3 × 2×10⁻³ × 1 / (0.5)² = 6×10⁻¹⁰ / 0.25 = 2.4 × 10⁻⁹ T. The direction is along dl × r by the right-hand rule.