Magnetic Field of a Long Thick Wire Using Ampere's Law

From Physics Book
Revision as of 18:44, 28 November 2026 by Shailenamin (talk | contribs) (Add a credited public-domain illustration of Ørsted’s compass experiment.)
Jump to navigation Jump to search

Shailen Amin, Fall 2026

A long cylindrical wire carrying a steady current produces a magnetic field that circles its axis. With uniform current density, the field grows from zero at the center to a maximum at the wire surface and then decreases outside the wire.

The Main Idea

Look straight down the end of the wire. If the current comes out of the page, point your right thumb toward yourself. Your fingers curl counterclockwise, showing the direction of the magnetic field. Reversing the current reverses the field.

An Amperian loop is an imaginary closed path. For this wire, choose a circle centered on the wire axis. Inside the wire, enlarging the circle increases the enclosed current in proportion to its area, which grows as [math]\displaystyle{ r^2 }[/math]. The path length grows as [math]\displaystyle{ r }[/math], so the field grows as [math]\displaystyle{ r }[/math]. Outside the wire, the enclosed current stays fixed while the path length grows, so the field decreases as [math]\displaystyle{ 1/r }[/math].


A circular path is useful because every point on it is the same distance from the axis. The field has the same magnitude at each of those points and runs tangent to the circle. In Figure 1, the arrow on the right side of the wire points up the page, as the right-hand rule predicts.

Wire cross-section with two Amperian loops, next to a plot of magnetic field versus radius.

Figure 1. Original diagram and plot generated for this article. Left: two Amperian loops centered on the wire. Right: the magnetic field rises inside the wire, peaks at its surface, and falls outside.

A Mathematical Model

Let [math]\displaystyle{ R }[/math] be the wire radius, [math]\displaystyle{ r }[/math] the distance from its axis, and [math]\displaystyle{ I }[/math] the total steady current. Assume a long, straight cylinder with uniform current density, and evaluate the field far from its ends. Ampere's law for steady currents gives

[math]\displaystyle{ \oint_C\vec B\cdot d\vec\ell=\mu_0 I_{\mathrm{enc}}. }[/math]

Choose the path orientation to follow the field and take current through the loop in the corresponding right-hand-rule direction as positive. By cylindrical symmetry, the field is tangent to the circle and has constant magnitude along it. Hence

[math]\displaystyle{ B(2\pi r)=\mu_0 I_{\mathrm{enc}}. }[/math]

Inside the wire ([math]\displaystyle{ 0\lt r\lt R }[/math]). The current density is [math]\displaystyle{ J=I/(\pi R^2) }[/math]. Multiplying by the area enclosed by the loop gives

[math]\displaystyle{ I_{\mathrm{enc}}=J\pi r^2=I\frac{r^2}{R^2},\qquad B(r)=\frac{\mu_0 I r}{2\pi R^2}. }[/math]

Outside the wire ([math]\displaystyle{ r\gt R }[/math]). The loop encloses the entire current, so

[math]\displaystyle{ I_{\mathrm{enc}}=I,\qquad B(r)=\frac{\mu_0 I}{2\pi r}. }[/math]

At the center, symmetry gives [math]\displaystyle{ B(0)=0 }[/math]. Both formulas give [math]\displaystyle{ B(R)=\mu_0 I/(2\pi R) }[/math] at the surface. The field is continuous there and reaches its maximum.

Exam check. The circumference always uses the loop radius [math]\displaystyle{ r }[/math]. For an inner loop, the wire radius [math]\displaystyle{ R }[/math] determines the fraction of current enclosed.

A Computational Model

Run the interactive thick-wire model in Web VPython. Drag the loop-radius slider to see how the enclosed current and magnetic field change. Compare the readings at 1.0 cm and 4.0 cm: both have the same field magnitude even though they enclose different currents. The field is strongest at the wire surface (2.0 cm).

For a wire with [math]\displaystyle{ R=2.0\ \mathrm{cm} }[/math] and [math]\displaystyle{ I=8.0\ \mathrm A }[/math], the equations predict the following values. Notice that doubling the radius from the surface halves the field even though the enclosed current stays the same.

Loop radius (cm) Enclosed current (A) Field magnitude (μT)
0 0 0
1.0 2.0 40
2.0 8.0 80
4.0 8.0 40

Examples

Simple

A wire of radius [math]\displaystyle{ 2.0\ \mathrm{cm} }[/math] carries [math]\displaystyle{ 8.0\ \mathrm A }[/math] uniformly out of the page. Find the field at a point [math]\displaystyle{ 1.0\ \mathrm{cm} }[/math] to the right of its center.

The point is inside the wire. The loop encloses one-quarter of the wire's cross-sectional area, so

[math]\displaystyle{ I_{\mathrm{enc}}=(8.0\ \mathrm A)\left(\frac{1.0}{2.0}\right)^2=2.0\ \mathrm A. }[/math]

Therefore

[math]\displaystyle{ B=\frac{(4\pi\times10^{-7}\ \mathrm{T\,m/A})(2.0\ \mathrm A)}{2\pi(0.010\ \mathrm m)}=4.0\times10^{-5}\ \mathrm T. }[/math]

The field circles counterclockwise, so it points up the page at this point.

Middling

For the same wire, at what radius outside the wire does the field have the same magnitude as it does at [math]\displaystyle{ r=1.0\ \mathrm{cm} }[/math]?

An outer loop encloses the full [math]\displaystyle{ 8.0\ \mathrm A }[/math]. Solving the outside-field expression for the radius gives

[math]\displaystyle{ r=\frac{\mu_0 I}{2\pi B}=\frac{(4\pi\times10^{-7}\ \mathrm{T\,m/A})(8.0\ \mathrm A)}{2\pi(4.0\times10^{-5}\ \mathrm T)}=0.040\ \mathrm m=4.0\ \mathrm{cm}. }[/math]

Since [math]\displaystyle{ 4.0\ \mathrm{cm}\gt 2.0\ \mathrm{cm} }[/math], the result is in the region where the outside-field expression applies.

Difficult

An electron [math]\displaystyle{ 4.0\ \mathrm{cm} }[/math] to the right of the same wire's axis moves out of the page at [math]\displaystyle{ 2.0\times10^6\ \mathrm{m/s} }[/math]. Find the magnitude and direction of the magnetic force due to the wire.

The field points up the page and has magnitude [math]\displaystyle{ 4.0\times10^{-5}\ \mathrm T }[/math]. The velocity is perpendicular to the field, which gives

[math]\displaystyle{ |\vec F|=|q|vB=(1.602\times10^{-19}\ \mathrm C)(2.0\times10^6\ \mathrm{m/s})(4.0\times10^{-5}\ \mathrm T)=1.3\times10^{-17}\ \mathrm N. }[/math]

The right-hand rule points [math]\displaystyle{ \vec v\times\vec B }[/math] left. The electron's charge is negative, so its force points right, away from the wire.

Connectedness

In my electric motor cooling research, I work on removing heat near copper windings. The windings also carry the current that helps generate the motor's magnetic field. The long-wire model gives a starting point for estimating the field near a straight winding segment. In a real motor, nearby conductors, bends, and magnetic materials also shape the field.


This matters in mechanical design because the field from one conductor can exert a force on a neighboring conductor carrying current. In a motor, that gives me a way to think about why the placement and mechanical support of windings matter. For a simpler example, a coaxial cable shows how a nearby return current changes the field. An outer loop encloses equal and opposite currents, so the field outside an ideal coaxial cable is zero.

History

In 1820, Hans Christian Ørsted observed that an electric current could deflect a compass needle. The deflection connected electric current with magnetism and can be reproduced with a straight wire and a compass. Ampere's law relates the circulation of the magnetic field around the wire to the current through the loop.


André-Marie Ampère followed up by studying how two parallel wires act on each other. Currents in the same direction attract the wires, while currents in opposite directions repel them. Ørsted's compass made the field around one wire observable. Ampère's experiments showed how the field from one current can affect a second current-carrying wire.[1]

A wire suspended over a compass

Figure 2. A wire passes over a compass in this 1876 illustration of Ørsted’s experiment. When current flows in the wire, the needle deflects. Agustin Privat-Deschanel, Wikimedia Commons, public domain in the United States.

See also

Further reading

  • Ruth W. Chabay and Bruce A. Sherwood, Matter & Interactions, 4th ed., vol. 2, Wiley, 2015, p. 887.

External links

References

  1. ↑ National Institute of Standards and Technology, Ampere: History.