Skip to lesson content

Lesson 5 of 10

Moving Charges and Magnetism · Lesson 5 of 10

Ampere’s Law and Long Straight Wires

“Use magnetic circulation, orientation and symmetry to calculate fields inside and outside a long wire.”

Learning Objectives

• Interpret the closed-loop circulation in Ampere’s circuital law. • Assign signed enclosed currents using an oriented surface. • Derive fields outside and inside a uniformly conducting long cylindrical wire. • Explain why a valid integral law does not always solve a field directly.

Circulation is not flux

Imagine walking once around a closed path and adding the component of B along each small step, multiplied by that step’s length. This sum is the circulation of B. It samples the field tangential to the path, not the field through the area. A magnetic-flux integral would instead use an area vector and units of tesla square metre. Confusing these two integrals changes both the geometry and the dimensions.

Ampere’s circuital law for steady currentsLaTeX
The left side has units T m. I_enc is the algebraic current crossing a surface whose boundary is C, not a sum of current magnitudes near the path. This magnetostatic form assumes steady currents.

Choose a traversal direction around C. Curl the fingers of your right hand in that direction; the thumb gives the positive surface normal and hence the positive direction for crossing currents. Oppositely directed currents subtract. A wire that merely lies near the path, or a wire lying along the surface rather than crossing it, is not counted as enclosed current in that surface integral.

Signed current

Problem
An anticlockwise loop in the page surrounds 5.0 A outward and 2.0 A inward. What is magnetic circulation?

  1. 1.Anticlockwise traversal assigns the outward normal as positive. I_enc = 5.0 − 2.0 = 3.0 A.
  2. 2.Circulation = μ₀(3.0) = 3.77 × 10⁻⁶ T m. Reversing traversal reverses both the circulation and the signed current, preserving the equality.

Symmetry makes the law useful

Ampere’s law constrains an integral for any suitable closed path in a steady-current configuration. To extract one unknown B from that integral, additional symmetry is needed. For an isolated infinitely long straight cylindrical current, rotations about the axis and translations along it leave the source unchanged. The magnetic field has a tangential direction and the same magnitude at every point of a coaxial circle of radius r. That is why B can be taken outside the integral on this particular path.

Outside a long straight wireLaTeX
r is distance from the axis. The result is exact for the ideal infinite source and a good approximation far from the ends of a long wire, with return-path effects negligible.

The right-hand grip rule gives direction: thumb along current, curled fingers along B. A current emerging from the page produces anticlockwise field lines. Those magnetic lines are closed circles around the ideal wire, unlike the electric field lines of an isolated positive charge. The ideal formula diverges as r tends to zero only because an infinitely thin wire is an idealisation; a finite-radius current distribution needs a separate interior calculation.

Field and compass direction

Problem
A long wire carries 50 A from north to south. Find the wire’s B at a point 2.5 m east of it.

  1. 1.Magnitude B = μ₀I/(2πr) = (2.0 × 10⁻⁷)(50)/2.5 = 4.0 × 10⁻⁶ T.
  2. 2.With east = x, north = y and up = z, current is −y and displacement is +x. The direction (−y) × x is +z, upward.
  3. 3.This gives the wire’s contribution. A compass generally responds to the total field including terrestrial and nearby-source contributions.

Inside a wire: count only the current pierced

Let a cylindrical wire of radius a carry total steady current I distributed uniformly across its cross-section. A circular path of radius r less than a encloses area πr², not the full wire area πa². Uniform current density means that the enclosed fraction of current equals the enclosed fraction of area. The same cylindrical symmetry still makes B tangential and constant around the circle.

Interior derivationLaTeX
This area fraction is valid for uniform current density. A nonuniform density requires integrating that density over the enclosed area.
Piecewise field magnitudeLaTeX
The field rises linearly from zero to the surface value, then falls inversely with distance. Both branches agree at r = a.
ar (m)B (T)B ∝ rB ∝ 1/rContinuous at the wire surface
Field versus radius for uniform current density— Qualitative graph with dimensional axes; a is wire radius. Vertical scale is arbitrary, and the two branches share the same surface field.
A finite-radius wire

Problem
A wire of radius 2.0 mm carries 10 A uniformly. Find B at r = 1.0 mm, 2.0 mm and 4.0 mm.

  1. 1.Surface field is B(a) = (2.0 × 10⁻⁷)(10)/0.0020 = 1.0 × 10⁻³ T.
  2. 2.At a/2 inside, the linear branch gives B = 0.50 × 10⁻³ T. At 2a outside, the inverse branch gives the same 0.50 × 10⁻³ T.
  3. 3.Equal fields can occur at two different radii, but the slopes differ: positive inside, negative outside. The maximum for this uniform-density model occurs at the surface.

What zero circulation does and does not say

A path enclosing zero net current has zero magnetic circulation in this steady model. This does not imply B is zero at every point on the path. An external wire, for instance, can produce a nonzero field with positive and negative tangential contributions that cancel. Similarly, the circular current loop’s field cannot usually be found by writing BL = μ₀I for an arbitrary convenient-looking path. Its geometry lacks the required constant tangential B over such a path.

Ampere’s circuital law and Biot–Savart’s law describe compatible consequences of magnetostatics; they are alternative tools, not competing physical theories. When currents or electric fields change with time, the simple steady-current form requires Maxwell’s displacement-current term. We do not use the magnetostatic shortcut to analyse those transients. Momentum conservation remains valid when momentum carried by electromagnetic fields is included.

Quick Quiz

Quiz

Quick check

The integral in Ampere’s circuital law measures

Explanation: It uses B·dl along a closed path, not B·dA through a surface.

Quick check

A zero net enclosed current implies

Explanation: The integral can vanish by cancellation even when local B is nonzero.

Quick check

For a uniformly current-filled wire, B inside varies as

Explanation: I_enc scales as r² while the path length scales as r, leaving B proportional to r.

Quick check

Why choose a coaxial circle around an infinite straight wire?

Explanation: Symmetry reduces the integral to B times 2πr.

Quick check

An anticlockwise loop encloses 7 A outward and 4 A inward. I_enc is

Explanation: Anticlockwise traversal has outward positive normal, giving 7 − 4 = 3 A.

Practice Problems

Practice Problems
  1. A 35 A long wire is observed at r = 20 cm. Calculate B.
  2. A 90 A overhead line carries current westward. Find field magnitude and direction 1.5 m below it, taking east, north, up as +x,+y,+z.
  3. For a uniform cylindrical current distribution, derive B(a/3)/B(3a).
  4. An oriented loop encloses 2 A outward and 5 A inward; traversal is anticlockwise. Find circulation.
  5. Why can the long-wire formula not be used arbitrarily close to the centre of a thick wire?

B = μ₀I/(2πr) = (2.0 × 10⁻⁷)(35)/0.20 = 3.5 × 10⁻⁵ T. A direction requires specifying the point’s position relative to current; a magnitude alone is not a complete vector.

Key Takeaways

Key Takeaways

• Ampere’s law relates magnetic circulation to signed enclosed current. • A line integral and a flux integral are different quantities. • Symmetry is needed to extract a simple B from the circulation. • Outside a long wire, B = μ₀I/(2πr). • Inside a uniformly conducting wire, B = μ₀Ir/(2πa²). • Zero circulation does not imply zero field. • The steady-current law needs extension for time-dependent fields.

Finished this lesson? Mark it complete to track your progress.

Loading your progress…