Sub topic 8
Field Inside and Outside a Thick Cylindrical Conductor
This chapter assumes you know Ampère's circuital law, the field of a long straight wire, and how to pick an Amperian loop from symmetry. It also assumes you can integrate simple polynomials. Here you apply those tools to a wire with real thickness, where the current is spread over a cross-section and the field depends on how much current the loop encloses.
Why thickness matters
The thin-wire result B = μ0 I / (2π d) treats all the current as lying on the axis. A real conductor has radius R. At a point outside it, the thin-wire result still holds. At a point inside, only part of the current lies within your loop, and the field is different.
Ampère's law is
∮ B · dl = μ0 I_enc
where I_enc is the current passing through the surface bounded by the loop. For a long straight cylinder carrying current along its axis, the symmetry is cylindrical. The field lines are circles around the axis, and |B| depends only on the distance s from the axis. Choose a circular Amperian loop of radius s centred on the axis. Then B is tangent to the loop and constant on it, so
∮ B · dl = B (2π s) = μ0 I_enc
and therefore B = μ0 I_enc / (2π s).
Everything now depends on I_enc, which depends on how the current is distributed.
Uniform current density
Suppose a solid cylinder of radius R carries total current I spread uniformly over its cross-section. The current density is
J = I / (π R²)
Outside the cylinder (s ≥ R)
The loop encloses all the current, so I_enc = I:
B = μ0 I / (2π s)
The field is identical to that of a thin wire carrying the same current on the axis. It falls as 1/s.
Inside the cylinder (s < R)
The loop encloses only the current through a disc of radius s:
I_enc = J π s² = I s² / R²
So
B = μ0 I s / (2π R²)
The field grows linearly with s from zero on the axis.
Continuity at the surface
At s = R, the inside formula gives μ0 I / (2π R) and the outside formula gives the same value. The field is continuous, with its maximum at the surface. This is a useful check on any answer.
Worked example in code
The function below returns B at any distance for a solid cylinder with uniform current. It uses the two formulas above.
import math
MU0 = 4e-7 * math.pi
def solid_cylinder_field(I, R, s):
"""Field magnitude at distance s from the axis of a solid cylinder."""
if s < 0 or R <= 0:
raise ValueError("s must be >= 0 and R > 0")
if s == 0:
return 0.0
if s < R:
return MU0 * I * s / (2 * math.pi * R**2)
return MU0 * I / (2 * math.pi * s)
I, R = 50.0, 0.02 # 50 A in a wire of radius 2 cm
for s in (0.005, 0.01, 0.02, 0.04):
print(f"s = {s:.3f} m B = {solid_cylinder_field(I, R, s):.3e} T")At s = 0.01 m (half the radius) the field is 2.5×10⁻⁴ T. At the surface it is 5×10⁻⁴ T. At s = 0.04 m it drops to 2.5×10⁻⁴ T.
Hollow cylinder (a thin tube)
A long hollow conducting tube of radius R carries current I along its surface or through a thin wall.
- For s < R, the loop encloses no current, so B = 0.
- For s ≥ R, I_enc = I, so B = μ0 I / (2π s).
The field jumps from zero to its maximum value μ0 I / (2π R) across the surface. For an ideal surface current this discontinuity is real. It is not a contradiction, because a surface current is an idealisation of a very thin layer in which the field rises steeply.
Non-uniform current density
JEE problems sometimes give a current density that varies with s, for example J = k s. Then I_enc cannot be found by multiplying by an area. You integrate over thin rings. A ring of radius r and width dr has area 2π r dr, so
I_enc(s) = ∫₀ˢ J(r) 2π r dr
For J = k s, with k a constant:
I_enc = ∫₀ˢ k r · 2π r dr = 2π k s³ / 3
Inside, B = μ0 I_enc / (2π s) = μ0 k s² / 3.
The total current is I = 2π k R³ / 3. Outside, B = μ0 I / (2π s) = μ0 k R³ / (3 s).
The inside field grows as s² here, not s, because more current is concentrated near the surface. Check continuity: at s = R both expressions give μ0 k R² / 3.
import math
MU0 = 4e-7 * math.pi
def graded_cylinder_field(k, R, s):
"""Cylinder with J = k * r. Returns B at distance s from the axis."""
if s <= R:
return MU0 * k * s**2 / 3
return MU0 * k * R**3 / (3 * s)
k, R = 1.0e6, 0.02 # J = k r, in A/m^2 when r is in metres
print(graded_cylinder_field(k, R, R)) # inside formula at the surface
print(graded_cylinder_field(k, R, R * 1.0000001)) # outside formula just beyondBoth lines print nearly the same value, which confirms continuity.
Cylinder with a cavity
A common JEE problem is a cylinder of radius R with a cylindrical hole of radius a, whose axis is displaced by a vector d from the main axis. The current density J is uniform in the material. The standard method is superposition:
- Treat the full solid cylinder carrying current density +J.
- Add a cylinder filling the hole carrying current density −J.
- The sum has zero current in the hole and J in the material, which is the real conductor.
Inside the hole, the field of the full cylinder at position vector r (measured from the main axis) is
B₁ = (μ0 / 2) J × r
where J points along the axis. The filler cylinder, whose axis is at d, gives
B₂ = −(μ0 / 2) J × (r − d)
The sum is
B = (μ0 / 2) J × d
This is uniform, with magnitude μ0 J d / 2, and it points perpendicular to both J and d. The result does not depend on where you are inside the hole.
The vector form of the inside field, B = (μ0/2) J × r, follows from the magnitude μ0 J s / 2 and the circular direction given by the right-hand rule.
import numpy as np
MU0 = 4e-7 * np.pi
def cavity_field(J, d):
"""Uniform field in the hole. J and d are 3-vectors in A/m^2 and m."""
return 0.5 * MU0 * np.cross(J, d)
J = np.array([0.0, 0.0, 2.0e6]) # current density along +z
d = np.array([0.01, 0.0, 0.0]) # hole axis displaced along +x
print(cavity_field(J, d)) # field points along +yThe result is [0, 1.2566e-2, 0] T, a uniform field along +y of magnitude μ0 J d / 2.
Common errors
| Error | Correction |
|---|---|
| Using the full current I for s < R | Use I_enc = I s² / R² for uniform J |
| Saying B is largest at the axis | B is zero on the axis and largest at the surface for uniform J |
| Taking B = 0 inside a solid wire | Only a hollow tube has zero field inside |
| Using the wire's length in the loop | The Amperian loop is a circle of radius s; the wire is assumed very long |
| Forgetting the field is the same outside for any radial distribution | Outside, any cylindrically symmetric distribution gives μ0 I / (2π s) |
Limits of the method
Ampère's law gives B only when symmetry lets you pull B out of the integral. This requires a long cylinder (length much greater than R) and current density that depends only on s. Near the ends of a finite wire, or when the current is not axially uniform, you must use the Biot-Savart law instead.
Exercise
A long solid cylinder of radius 4 cm carries 30 A uniformly over its cross-section. Find the field at distances 2 cm and 8 cm from the axis.
Show answer
At 2 cm, Ienc = 30 × (2/4)² = 7.5 A, so B = μ0 Ienc / (2π s) = (2×10⁻⁷ × 7.5) / 0.02 = 7.5×10⁻⁵ T. At 8 cm all 30 A is enclosed, so B = (2×10⁻⁷ × 30) / 0.08 = 7.5×10⁻⁵ T. Both are 7.5×10⁻⁵ T.
Exercise
A long cylinder of radius R carries current density J = k s along its axis. At what distance inside the cylinder does B equal half of its surface value?
Show answer
Inside, B = μ0 k s² / 3, which is proportional to s². The surface value is at s = R. Half of it needs s² = R² / 2, so s = R / √2 ≈ 0.707 R.
Exercise
A long cylinder of radius 10 cm carries uniform current density 5×10⁵ A/m² along its axis. A cylindrical hole of radius 2 cm is drilled parallel to the axis, with its axis 4 cm from the main axis. Find the field inside the hole.
Show answer
B = μ0 J d / 2 = (4π×10⁻⁷ × 5×10⁵ × 0.04) / 2 = 4π×10⁻⁷ × 10⁴ = 1.257×10⁻² T, uniform across the hole and perpendicular to both J and the line joining the axes.