Just as electric charges are the sources of electric fields, electric currents are the sources of magnetic fields. The Biot–Savart law gives the field of any current distribution by integration; Ampère's law gives it directly for highly symmetric geometries. These results underpin every electromagnet, transformer, and electric motor ever built.
Key Concepts
Biot–Savart Law
The magnetic field contribution from a small current element Idl at distance r is dB=(μ0/4π)Idl×r^/r2. The full field is found by integrating over the entire current path. μ0=4π×10−7 T·m/A is the permeability of free space.
Field of a Long Straight Wire
A long straight wire carrying current I produces a magnetic field that circles the wire: B=μ0I/(2πr) at perpendicular distance r. Direction given by right-hand rule: thumb along current, fingers curl in the direction of B.
Force Between Parallel Wires
Two parallel wires carrying currents I1 and I2 separated by distance d attract each other (same direction currents) or repel (opposite direction) with force per unit length F/L=μ0I1I2/(2πd). This defines the ampere.
Ampère's Law
The line integral of B around any closed path equals μ0 times the net current enclosed: ∮B⋅dl=μ0Ienc. Analogous to Gauss's law — useful only when symmetry makes B constant along the path.
Solenoid and Toroid
A solenoid of n turns per unit length carrying current I has a uniform interior field B=μ0nI and nearly zero field outside. A toroid (solenoid bent into a ring) has field B=μ0NI/(2πr) inside and zero outside.
Key Equations
Field of a long straight wire
B=2πrμ0I
B at perpendicular distance r from a long wire carrying current I. μ₀ = 4π×10⁻⁷ T·m/A.
Force per unit length between wires
LF=2πdμ0I1I2
Force per unit length between two long parallel wires separated by d. Attractive for same-direction currents.
Ampère's Law
∮B⋅dl=μ0Ienc
Line integral of B around a closed Ampèrian loop equals μ₀ times the enclosed current.
Field inside a solenoid
B=μ0nI
Uniform field inside an ideal solenoid; n = N/L is turns per unit length. Field outside ≈ 0.
Worked Example
Magnetic Field of a Long Straight Wire and Force Between Wires
Problem
Two long parallel wires carry I1=5.0 A and I2=3.0 A in the same direction, separated by d=0.10 m. Find (a) the field from wire 1 at wire 2's location, and (b) the force per unit length between them.
Solution
(a) Magnetic field of wire 1 at distance d=0.10 m: