Topic 12.3

Magnetic fields of current-carrying wires and the Biot-Savart law

Integrating current elements for the field of wires and loops; forces on and between wires.

7 min read2 worked examples3 questions to check yourself

Big idea

Every short piece of a current makes a magnetic field that circles it, and adding those pieces by integration gives the field of a whole wire, which in turn pushes on any other current placed in it.

Field diagram: magnetic field lines circling a long straight wire seen end-on (I, current out of the page at (0, 0): field counterclockwise); point P at (1.5, 0); point Q at (3, 0).IPQ

A long straight wire seen end-on, with its current coming out of the page. The field lines are circles round the wire, counterclockwise: point your right thumb along the current and your fingers curl with B⃗\vec{B}. Q is twice as far from the wire as P, so the field at Q is half as strong.

Explanation

The Biot–Savart law gives the field made by a short element dℓ⃗d\vec{\ell} of a wire carrying current II: dB⃗=μ04πI dℓ⃗×r^r2d\vec{B} = \dfrac{\mu_0}{4\pi}\dfrac{I\,d\vec{\ell}\times\hat{r}}{r^2}, where r^\hat{r} points from the element to the place where you want the field and rr is the distance between them. The cross product makes dB⃗d\vec{B} perpendicular both to the element and to the line joining it to the point, and zero for points straight ahead of or behind the element. The field of a whole wire is the vector sum, an integral, of these contributions.

For a long straight wire the integral gives B=μ0I/(2πr)B = \mu_0 I/(2\pi r): circles round the wire, weakening as 1/r1/r (not 1/r21/r^2, because the sum runs over a whole line of elements). At the centre of a circular arc of radius RR and angle ϕ\phi, B=μ0Iϕ/(4πR)B = \mu_0 I\phi/(4\pi R), which is μ0I/(2R)\mu_0 I/(2R) for a full loop.

A wire in a magnetic field feels the total force on its moving charges: dF⃗=I dℓ⃗×B⃗d\vec{F} = I\,d\vec{\ell}\times\vec{B} on each element, and F⃗=IL⃗×B⃗\vec{F} = I\vec{L}\times\vec{B}, of size ILBsin⁡θILB\sin\theta, on a straight length LL in a uniform field.

Now take two long parallel wires a distance dd apart. Wire 1 makes a field μ0I1/(2πd)\mu_0 I_1/(2\pi d) at wire 2, perpendicular to it, so each length LL of wire 2 feels a force μ0I1I2L/(2πd)\mu_0 I_1 I_2 L/(2\pi d). The directions work out so that currents in the same direction attract and opposite currents repel.

Equations

  • dB⃗=μ04π I dℓ⃗×r^r2d\vec{B} = \frac{\mu_0}{4\pi}\,\frac{I\,d\vec{\ell}\times\hat{r}}{r^2}

    The Biot–Savart law: the field made by one short element of a current.

    dB⃗d\vec{B}

    field contributed by the element (T)

    μ0\mu_0

    permeability of free space, 4π × 10⁻⁷ (T·m/A)

    II

    current in the wire (A)

    dℓ⃗d\vec{\ell}

    short element of the wire, along the current (m)

    r^\hat{r}

    unit vector from the element to the field point

    rr

    distance from the element to the field point (m)
    Use it when

    The current has no symmetry that Ampère's law can use: finite segments, arcs, the centre or axis of a loop.

    Not when

    It gives one element's contribution, not the wire's field. You must integrate, adding the contributions as vectors.

  • B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

    The field a distance r from a long straight wire; it circles the wire.

    BB

    magnetic field (T)

    μ0\mu_0

    permeability of free space (T·m/A)

    II

    current in the wire (A)

    rr

    perpendicular distance from the wire (m)
    Use it when

    The wire is long compared with the distance to the point, and the point is not near its ends.

    Not when

    Not for a short segment or a point beyond the end of a wire.

  • B=μ0Iϕ4πRB = \frac{\mu_0 I \phi}{4\pi R}

    The field at the centre of a circular arc; a full loop has φ = 2π and gives μ₀I/(2R).

    BB

    magnetic field at the centre of the arc (T)

    μ0\mu_0

    permeability of free space (T·m/A)

    II

    current in the arc (A)

    ϕ\phi

    angle the arc subtends at its centre (rad)

    RR

    radius of the arc (m)
    Use it when

    The field point is the centre of curvature of a circular loop or arc.

    Not when

    Not for points off the centre, and the angle must be in radians.

  • F⃗=IL⃗×B⃗\vec{F} = I\vec{L}\times\vec{B}

    The force on a straight wire in a uniform field; its size is ILB sin θ.

    F⃗\vec{F}

    magnetic force on the wire (N)

    II

    current in the wire (A)

    L⃗\vec{L}

    length of the wire, pointing along the current (m)

    B⃗\vec{B}

    external magnetic field at the wire (T)
    Use it when

    A straight wire, or one straight side of a loop, sits in a field made by something else.

    Not when

    Do not include the wire's own field. For a curved wire or a non-uniform field, integrate the force on each element.

  • FL=μ0I1I22πd\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi d}

    The force on each unit length of two long parallel wires: attractive for currents in the same direction.

    FF

    force on a length L of either wire (N)

    LL

    length of wire considered (m)

    μ0\mu_0

    permeability of free space (T·m/A)

    I1, I2I_1,\ I_2

    currents in the two wires (A)

    dd

    distance between the wires (m)
    Use it when

    Two long, straight, parallel wires.

    Not when

    Not for wires that cross or are short compared with their separation.

Where it comes from

Worked examples

  1. A wire bent through a right angle

    Step by step

    A long wire carrying 10 A10\ \text{A} runs down the y-axis from far away to the origin, turns through a right angle, and runs out along the +x+x-axis. Find the magnitude and direction of the magnetic field at P, on the x-axis at x=−4.0 cmx = -4.0\ \text{cm}.

    0 of 4 steps
  2. Floating one wire above another

    Written as an exam answer

    A long wire fixed to a bench carries 80 A80\ \text{A} out of the page. A second long wire, with a mass of 5.0 g5.0\ \text{g} per metre, is to float 1.0 cm1.0\ \text{cm} directly above the first and parallel to it, held up only by the magnetic force between them. Determine the direction and the size of the current the upper wire must carry.

    1. Step 1:

      The magnetic force on the upper wire must point up, away from the lower wire, to balance gravity. Opposite currents repel, so the upper current must be into the page. Check: the lower wire's field points left at the upper wire, and a current into the page in a field to the left is pushed up.

      Field diagram: magnetic field lines circling 2 long straight wires seen end-on (80 A, current out of the page at (0, 0): field counterclockwise; I_2, current into the page at (0, 1.5): field clockwise).80 AI2
    2. Step 2:

      Balance the forces on a length LL of the upper wire: μ0I1I22πdL=λLg\dfrac{\mu_0 I_1 I_2}{2\pi d}L = \lambda L g, where λ=5.0×10−3 kg/m\lambda = 5.0\times10^{-3}\ \text{kg/m} is its mass per metre.

    3. Step 3:

      I2=2πd λgμ0I1=2π(0.010 m)(5.0×10−3 kg/m)(9.8 m/s2)(4π×10−7 T⋅m/A)(80 A)=31 AI_2 = \dfrac{2\pi d\,\lambda g}{\mu_0 I_1} = \dfrac{2\pi(0.010\ \text{m})(5.0\times10^{-3}\ \text{kg/m})(9.8\ \text{m/s}^2)}{(4\pi\times10^{-7}\ \text{T·m/A})(80\ \text{A})} = 31\ \text{A}.

    Answer

    I2=31 AI_2 = 31\ \text{A}, into the page

Common mistakes

  • Mistake

    The magnetic field of a wire points straight out from the wire, like the electric field of a line of charge.

    What is true

    It circles the wire. At every point the field is perpendicular both to the wire and to the line from the wire to that point.

  • Mistake

    Two parallel wires with currents in the same direction repel, just as like charges do.

    What is true

    They attract. Each wire sits in the other's circling field, and the force on it points toward the other wire. Opposite currents repel.

  • Mistake

    The wire with the larger current pulls harder on the other wire.

    What is true

    The forces are a third-law pair. Each has size μ0I1I2L/(2πd)\mu_0 I_1 I_2 L/(2\pi d), which contains both currents.

Check yourself

  1. 1.

    A long wire in the plane of the page carries current toward the top of the page. Which way does its field point just to the right of the wire?

  2. 2.

    The field 2.0 cm2.0\ \text{cm} from a long straight wire is 40 μT40\ \mu\text{T}. What is it 8.0 cm8.0\ \text{cm} from the wire?

  3. 3.

    The currents in two long parallel wires are both doubled, and the wires are moved twice as far apart. What happens to the force between them?

Try it

Two parallel wires carry current out of the page. Between them their fields point opposite ways and cancel at one point. Change the ratio I2/I1I_2/I_1: that point moves toward the wire with the smaller current, and far away the lines look like those of a single wire.

1
Field diagram: magnetic field lines circling 2 long straight wires seen end-on (I_1, current out of the page at (−1.5, 0): field counterclockwise; I_2, current out of the page at (1.5, 0): field counterclockwise); point B = 0 at (0, 0).I1I2B = 0

Builds on

Practice 12.3 with feedback

Problem sets for Unit 12 grade themselves, and Raise hints at the next step instead of giving the answer.

Spotted a mistake in this lesson? Tell us and we will fix it.