Fields of Line, Surface and Volume Charges
Real charge does not sit on points. It spreads along a wire, over the plates of a capacitor, across the face of a printed-circuit trace or through the depletion region of a diode. This lesson replaces the sum of Coulomb's Law and the Electric Field by an integral, works out the classic shapes (finite and infinite line, ring, disk, infinite sheet) and checks each by chopping the charge into many small point charges in Python, which is exactly what numerical field solvers do.
Charge densities
| Distribution | Density | Unit | Element of charge |
|---|---|---|---|
| along a line (thin wire, edge) | |||
| over a surface (conductor surface, sheet) | |||
| through a volume (space charge, depletion region) |
Each small element is a point charge, so its field is , and the total is the integral over the source:
The integral is a vector integral: write in Cartesian components (whose unit vectors are constant) and integrate each component separately, as warned in Vectors and Coordinate Systems for Fields. Before integrating, use symmetry to see which components cancel.
Line charge
A straight line of charge from to , field point at distance from the midpoint. Elements at and give mirror-image contributions: their components cancel and their radial components add. Integrating the radial component,
The field of an infinite line falls as , not : far more slowly than a point charge. Near a long wire, "infinite" is a good approximation as long as you are much closer to the wire than to its ends. Far away () the finite line looks like a point charge .
Ring and disk
A ring of radius with total charge , on its axis at height : by symmetry only survives.
A disk of radius with surface density is a set of rings of radius , width and charge . Adding the rings:
The limit is the infinite sheet: a uniform field on each side, pointing away from a positive sheet, independent of distance. Two parallel sheets with and give between them and zero outside: the ideal parallel-plate capacitor of Capacitance of Common Geometries.
Volume charge works the same way with a triple integral; for spheres and cylinders of uniform charge, Gauss's law (Gauss's Law for Symmetric Charge Distributions) is far quicker than integrating.
Worked example
Given: (a) a straight wire long () carrying ; field point from its midpoint. (b) A disk of radius with ; field point on the axis at .
Find: in each case, and how far each is from the simple model (infinite line, infinite sheet, point charge).
Solve:
The disk's total charge is ; as a point charge it would give at , and as an infinite sheet .
Check: (a) the finite wire gives less than the infinite line, sensible since the ends are five times farther away than the field point. (b) Close to the disk () the answer must approach the sheet value, and far away () the point-charge value; at it is between the two models and far from both, so neither shortcut is safe there.
In Python: chop the charge into points
The code builds each distribution from many small point charges and sums their fields, the brute-force method that always works, then compares with the formulas.
import numpy as np
K = 8.988e9
eps0 = 8.854e-12
def E_points(q, pos, r):
R = np.asarray(r) - pos # (N, 3)
return K * np.sum(q[:, None] * R / np.linalg.norm(R, axis=1)[:, None]**3, axis=0)
# (a) finite line: 2000 segments along z from -0.5 to 0.5 m, 5 nC/m
N, L, rl, d = 2000, 0.5, 5e-9, 0.1
z = -L + (np.arange(N) + 0.5) * 2*L/N
pos = np.stack([np.zeros(N), np.zeros(N), z], axis=1)
E = E_points(np.full(N, rl*2*L/N), pos, (d, 0, 0))
exact = rl*L / (2*np.pi*eps0*d*np.sqrt(d**2 + L**2))
print(f"line: numerical {E[0]:.2f} V/m (E_z < 1e-9: {abs(E[2]) < 1e-9}), formula {exact:.2f} V/m, infinite {rl/(2*np.pi*eps0*d):.2f} V/m")
# (b) disk: 300 rings x 360 points, 10 nC/m^2, radius 0.1 m, field at z = 0.05 m
a, rs, zp = 0.1, 10e-9, 0.05
nr, nphi = 300, 360
rho = (np.arange(nr) + 0.5) * a/nr
phi = np.arange(nphi) * 2*np.pi/nphi
RHO, PHI = np.meshgrid(rho, phi, indexing='ij')
pos = np.stack([(RHO*np.cos(PHI)).ravel(), (RHO*np.sin(PHI)).ravel(), np.zeros(RHO.size)], axis=1)
q = (rs * RHO * (a/nr) * (2*np.pi/nphi)).ravel()
E = E_points(q, pos, (0, 0, zp))
exact = rs/(2*eps0) * (1 - zp/np.sqrt(zp**2 + a**2))
print(f"disk: numerical {E[2]:.2f} V/m, formula {exact:.2f} V/m, total charge {q.sum()*1e9:.4f} nC")
# the disk field along its axis against the two simple models
for zz in (0.005, 0.05, 0.5):
disk = rs/(2*eps0) * (1 - zz/np.sqrt(zz**2 + a**2))
point = K * rs*np.pi*a**2 / zz**2
print(f"z = {zz:5.3f} m: disk {disk:7.1f}, sheet {rs/(2*eps0):6.1f}, point {point:9.1f} V/m")line: numerical 881.35 V/m (E_z < 1e-9: True), formula 881.32 V/m, infinite 898.77 V/m
disk: numerical 312.18 V/m, formula 312.17 V/m, total charge 0.3142 nC
z = 0.005 m: disk 536.5, sheet 564.7, point 112946.5 V/m
z = 0.050 m: disk 312.2, sheet 564.7, point 1129.5 V/m
z = 0.500 m: disk 11.0, sheet 564.7, point 11.3 V/m
At the disk is within of the infinite sheet; at it is within of a point charge. The numerical sums reproduce the formulas to four or five figures (2,000 points for the line, 108,000 for the disk); the error comes from treating each piece as a point, and it grows sharply when the field point gets closer to the charge than the piece size.
Guided lab: the field of a line charge, on paper
Hand calculation. A line charge's potential varies as . In two dimensions, a small round electrode of radius at inside a ring electrode of radius at , painted on a uniform resistive sheet, produces exactly that field shape: . Predicted: at , at , at , and at , falling as .
Simulation. The plates configuration of the field-lines lab shows the other limit, two infinite sheets: a uniform field with straight, evenly spaced lines. With and the probe reads anywhere between the plates and outside them.
What you would measure. Paint or cut the two electrodes from conductive silver ink or copper tape on conductive (carbon) paper, connect a bench supply at with a limit, and read the voltage with a multimeter probe at radii of , , and in four directions. Expect the readings within about of the prediction; the spread between directions tells you how uniform the paper is (a few percent is typical) and how round your electrodes are. Plot against : a straight line confirms the field. Why a current-carrying sheet behaves like an electrostatic problem is explained in Resistance of Conductors of Any Shape.
Hazards and safe setup. , current-limited; nothing gets warm.
Pitfalls
- Integrating magnitudes. Adding instead of components gives a field that is too large; symmetry tells you which components survive.
- Infinite models out of range. The infinite line and sheet are only good when you are much closer to the charge than to its edges.
- Point-charge discretisation near the source. A sum of points is accurate only at distances several times the piece size.
- Forgetting the in when building a disk from rings.
Practice
- A ring of radius carries . Find on its axis at . At what is the axial field largest?
- An infinite line with : at what distance is ?
- Two infinite sheets at () and (), . Find between and outside them.
Answer
- . Setting gives .
- .
- Between: along ; outside: zero.
Test yourself
The field of an infinite straight line charge falls with distance as…
- it does not fall
The field near a large uniformly charged sheet, compared with the field twice as far away, is…
- four times larger
- twice as large
- the same
- half as large
On the axis of a uniformly charged ring, the field at the centre of the ring is…
- maximum
- zero
- infinite
A disk of radius with . On its axis at its field is closest to…
- the infinite-sheet value,
- the point-charge value
- zero
- twice the sheet value