Lesson 4 of 8 · Stationary magnetic fields

Fields from wires, loops and solenoids

Choose an integration path using symmetry, find fields made by currents and calculate the force between parallel wires.

About 18 minutes

In this lesson

  • Use Ampère’s law with cylindrical symmetry.
  • Apply the Biot–Savart law to a loop or solenoid.
  • Predict the force between parallel currents.

The idea

Put the observation point on the diagram

The field made by a current depends on both the shape of its path and the point where you measure it. Mark that point first. A small segment gives dB=(μ0/4π)I dℓ×r^/r2d\mathbf B=(\mu_0/4\pi)I\,d\boldsymbol\ell\times\hat{\mathbf r}/r^2 in vacuum for a steady current. Here r\mathbf r points from the segment to the observation point. Follow the wire to add each contribution. The inverse square occurs in the contribution from an element. The field of a whole extended wire can follow a different distance dependence because both the angles and the distances vary along the wire.

At the centre of a circular loop, every element has the same distance RR from the observation point. Every directed length is perpendicular to its radius, and every field contribution points along the same axis. Integrating the circumference gives B=μ0I/(2R)B=\mu_0 I/(2R) for one turn. This expression is specific to the centre. A probe displaced far along the axis sees a much weaker dipole field. At the centre of a tightly wound flat stack of identical turns, multiply the single-turn result by their number.

A circulation shortcut

Ampère's law for steady currents in vacuum gives ∮B⋅dℓ=μ0Ithrough\oint\mathbf B\cdot d\boldsymbol\ell=\mu_0 I_{\rm through}. The integrating path is an imaginary closed curve in space. An oriented surface spans it. Currents piercing that surface count with sign according to the right-hand rule. A current just outside the curve can still produce a field along it, although that current contributes zero to the complete circulation. To extract a local field value you need a reason the integral simplifies.

For an effectively infinite straight wire, rotational and translational symmetry give a field tangent to concentric circles with constant magnitude on each circle. Take a circular path of radius rr outside the wire. Its circulation is 2πrB2\pi rB, giving B=μ0I/(2πr)B=\mu_0 I/(2\pi r). Curl the right-hand fingers around the wire with the thumb pointing along the current to orient this field. Far from the ends of a long wire this approximation works well if the return path is also sufficiently distant. Inside a thick wire the chosen circle encloses only part of the current. First calculate the current within its radius.

From a circular loop to a long coil

A solenoid stacks many current loops along an axis. Inside a tightly wound long solenoid the axial contributions reinforce each other. Away from its ends the interior field is approximately uniform and the exterior field is small. An Ampèrian rectangle with one long side inside and the other outside gives B≃μ0nIB\simeq\mu_0 n I for an air core, with n=N/ℓn=N/\ell the turns per unit length. Near an end the external contribution and the curvature of the field lines are significant. For a thin finite winding of radius RR centred at the origin, the centre field is μ0nI (ℓ/2)/R2+(ℓ/2)2\mu_0 n I\,(\ell/2)/\sqrt{R^2+(\ell/2)^2}. This follows by adding the axial fields of its individual loops. As the length grows at fixed turn density, the geometric factor tends to one.

Forces between currents

Draw the field of the first wire at the second wire. Then apply the force law to the current in the second wire. Two parallel long wires a distance dd apart exert a force of magnitude per unit length μ0I1I2/(2πd)\mu_0 I_1 I_2/(2\pi d). For currents flowing the same way it is attractive. Reversing either current reverses that force while reversing both currents keeps it attractive. The two wires exert equal and opposite forces on each other.

Gauss's law for magnetism gives ∮B⋅dA=0\oint\mathbf B\cdot d\mathbf A=0 through any closed surface. Trace a field line across the wall of a box. Where it enters, it contributes negative outward flux. Where it leaves, it contributes positive flux. This law constrains magnetic flux, while Ampère's law constrains magnetic circulation. Distinguishing a closed surface from a closed path is often enough to choose the relevant equation.

Worked examples

Example 1: Place a probe beside a wire

A long straight wire in vacuum carries 6.0 A. Find the field 3.0 cm from its axis outside the wire. Use μ0≃4π×10−7\mu_0\simeq4\pi\times10^{-7} in SI units.

  1. Use a circular Ampèrian path of radius 0.030 m centred on the wire.

  2. Substitute into B=(2×10−7)(6.0)/0.030B=(2\times10^{-7})(6.0)/0.030 T. The field is tangent to the circular path.

Answer

The field is 40 µT, circulating around the current by the right-hand rule.

Example 2: Calculate the force per metre

Two long straight wires in vacuum are 2.0 cm apart and carry 3.0 A and 4.0 A in the same direction. Find the force per metre.

  1. At the second wire, the first produces B=(2×10−7)(3.0)/0.020=3.0×10−5B=(2\times10^{-7})(3.0)/0.020=3.0\times10^{-5} T.

  2. The second wire crosses this field at right angles, giving F/ℓ=I2BF/\ell=I_2 B.

Answer

Each wire feels 1.2×10−41.2\times10^{-4} N per metre towards the other.

Common traps

  • Pulling a variable field out of an integral

    Choose a path on which symmetry fixes the field magnitude and the angle to the tangent.

  • Counting all turns without measuring length

    In a long solenoid the current enclosed per metre depends on turns per metre. Specify the winding length.

Check yourself

Choose an answer to each question: you will see at once whether it is right, and why.

Question 1: Change a solenoid winding

Magnetostatics

In a long air-core solenoid, turn density doubles while current halves. What happens to the central field?

Show the answer

Answer: B. It stays the same.

Working

The product nInI is unchanged, so B≃μ0nIB\simeq\mu_0 n I stays constant.

Why the other options are wrong

  • A. The doubled turn density compensates for the smaller current.
  • C. This omits the reduction in current through the turns.

What carries over

Separate total turns from turn density.

Question 2: Expand a single turn

Biot–Savart law

Double the radius of a circular loop while holding its current fixed. What is the new field at its centre?

Show the answer

Answer: A. Half the original field

Working

At the centre B=μ0I/(2R)B=\mu_0 I/(2R), so doubling RR halves the field.

Why the other options are wrong

  • B. Each element is farther away but the circumference also doubles.
  • C. Increasing the circumference also increases the source distance.

What carries over

The inverse-square element law must be integrated over the source.

Question 3: Enclose a wire

Gauss’s law for magnetism

A closed surface surrounds part of a current-carrying wire. What is its net outward magnetic flux?

Show the answer

Answer: C. Zero

Working

The integral of the normal magnetic field over any closed surface vanishes.

Why the other options are wrong

  • A. A closed magnetic flux has no source term for wire length.
  • B. Current enters the circulation law for a closed path.

What carries over

Identify whether the integration object is a loop or a surface.

Flashcards

Recall the answer before you flip each card, then say whether you knew it. Cards you miss come back at the end.

What path is convenient around an infinite straight wire?
A circle perpendicular to and centred on the wire.
Where does the simple circular-loop centre formula apply?
At the centre of the loop.
What happens to the interior solenoid approximation near an end?
The field spreads and the long-solenoid approximation loses accuracy.
What does a closed magnetic flux integral measure?
The signed magnetic flux over the entire boundary. Its value is zero.

Key points

  • Mark the field point before constructing source vectors.

  • Symmetry can turn Ampère’s circulation law into a field formula.

  • Parallel currents in the same direction attract.

All questions here are original and written for UniExamer; none comes from the test maker.

Written and reviewed by the UniExamer education and assessment team. Every worked example and check question was checked before publication. If you find a mistake, write to support@uniexamer.com.