TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Fields of Line, Surface and Volume Charges

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) ρℓ\rho_\ell C/m\text{C/m} dQ=ρℓ dl′dQ = \rho_\ell\,dl'
over a surface (conductor surface, sheet) ρs\rho_s C/m2\text{C/m}^2 dQ=ρs dS′dQ = \rho_s\,dS'
through a volume (space charge, depletion region) ρv\rho_v C/m3\text{C/m}^3 dQ=ρv dv′dQ = \rho_v\,dv'

Each small element dQdQ is a point charge, so its field is dE=dQ R4πε0R3d\mathbf{E} = \frac{dQ\,\mathbf{R}}{4\pi\varepsilon_0 R^3}, and the total is the integral over the source:

E(r)=14πε0∫ρ (r−r′)∣r−r′∣3 d(line, area or volume)′\mathbf{E}(\mathbf{r}) = \frac{1}{4\pi\varepsilon_0}\int \frac{\rho\,(\mathbf{r} - \mathbf{r}')}{\lvert \mathbf{r} - \mathbf{r}' \rvert^3}\,d(\text{line, area or volume})'

The integral is a vector integral: write R\mathbf{R} 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

+ + + + + + + + + + + + z = +Lz = -L rho_l dz at zdz at -z d R dE from z dE from -z sum: radial P

A straight line of charge ρℓ\rho_\ell from z=−Lz = -L to z=Lz = L, field point at distance dd from the midpoint. Elements at +z+z and −z-z give mirror-image contributions: their zz components cancel and their radial components add. Integrating the radial component,

Eρ=ρℓ4πε0∫−LLd dz′(d2+z′2)3/2=ρℓ L2πε0 dd2+L2  →L→∞  ρℓ2πε0 dE_\rho = \frac{\rho_\ell}{4\pi\varepsilon_0}\int_{-L}^{L}\frac{d\,dz'}{(d^2 + z'^2)^{3/2}} = \frac{\rho_\ell\,L}{2\pi\varepsilon_0\,d\sqrt{d^2 + L^2}} \;\xrightarrow{L \to \infty}\; \frac{\rho_\ell}{2\pi\varepsilon_0\,d}

The field of an infinite line falls as 1/d1/d, not 1/d21/d^2: 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 (d≫Ld \gg L) the finite line looks like a point charge 2ρℓL2\rho_\ell L.

Ring and disk

A ring of radius aa with total charge QQ, on its axis at height zz: by symmetry only EzE_z survives.

Ez=Q z4πε0 (z2+a2)3/2E_z = \frac{Q\,z}{4\pi\varepsilon_0\,(z^2 + a^2)^{3/2}}

A disk of radius aa with surface density ρs\rho_s is a set of rings of radius ρ′\rho', width dρ′d\rho' and charge ρs 2πρ′ dρ′\rho_s\,2\pi\rho'\,d\rho'. Adding the rings:

Ez=ρs2ε0(1−zz2+a2)  →a→∞  ρs2ε0E_z = \frac{\rho_s}{2\varepsilon_0}\left(1 - \frac{z}{\sqrt{z^2 + a^2}}\right) \;\xrightarrow{a \to \infty}\; \frac{\rho_s}{2\varepsilon_0}

The limit is the infinite sheet: a uniform field ρs/(2ε0)\rho_s/(2\varepsilon_0) on each side, pointing away from a positive sheet, independent of distance. Two parallel sheets with +ρs+\rho_s and −ρs-\rho_s give ρs/ε0\rho_s/\varepsilon_0 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 1 m1\ \text{m} long (L=0.5 mL = 0.5\ \text{m}) carrying ρℓ=5 nC/m\rho_\ell = 5\ \text{nC/m}; field point d=0.1 md = 0.1\ \text{m} from its midpoint. (b) A disk of radius a=0.1 ma = 0.1\ \text{m} with ρs=10 nC/m2\rho_s = 10\ \text{nC/m}^2; field point on the axis at z=0.05 mz = 0.05\ \text{m}.

Find: EE in each case, and how far each is from the simple model (infinite line, infinite sheet, point charge).

Solve:

(a)Eρ=5×10−9⋅0.52π⋅8.854×10−12⋅0.1⋅0.01+0.25=881.3 V/m;infinite line: 5×10−92πε0⋅0.1=898.8 V/m(b)Ez=10×10−92⋅8.854×10−12(1−0.050.0025+0.01)=564.7⋅0.5528=312.2 V/m\begin{aligned} \text{(a)}\quad E_\rho &= \frac{5 \times 10^{-9} \cdot 0.5}{2\pi \cdot 8.854 \times 10^{-12} \cdot 0.1 \cdot \sqrt{0.01 + 0.25}} = 881.3\ \text{V/m}; \qquad \text{infinite line: } \frac{5 \times 10^{-9}}{2\pi\varepsilon_0 \cdot 0.1} = 898.8\ \text{V/m} \\ \text{(b)}\quad E_z &= \frac{10 \times 10^{-9}}{2 \cdot 8.854 \times 10^{-12}}\left(1 - \frac{0.05}{\sqrt{0.0025 + 0.01}}\right) = 564.7 \cdot 0.5528 = 312.2\ \text{V/m} \end{aligned}

The disk's total charge is ρsπa2=0.314 nC\rho_s\pi a^2 = 0.314\ \text{nC}; as a point charge it would give 1129 V/m1129\ \text{V/m} at 5 cm5\ \text{cm}, and as an infinite sheet 564.7 V/m564.7\ \text{V/m}.

Check: (a) the finite wire gives 1.9 %1.9\ \% less than the infinite line, sensible since the ends are five times farther away than the field point. (b) Close to the disk (z≪az \ll a) the answer must approach the sheet value, and far away (z≫az \gg a) the point-charge value; at z=a/2z = a/2 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.

python · try it yourself
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 5 mm5\ \text{mm} the disk is within 5 %5\ \% of the infinite sheet; at 0.5 m0.5\ \text{m} it is within 3 %3\ \% 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 1/ρ1/\rho field of a line charge, on paper

Hand calculation. A line charge's potential varies as ln⁡ρ\ln \rho. In two dimensions, a small round electrode of radius a=2 mma = 2\ \text{mm} at 10 V10\ \text{V} inside a ring electrode of radius b=50 mmb = 50\ \text{mm} at 0 V0\ \text{V}, painted on a uniform resistive sheet, produces exactly that field shape: V(ρ)=10 V⋅ln⁡(b/ρ)/ln⁡(b/a)V(\rho) = 10\ \text{V} \cdot \ln(b/\rho)/\ln(b/a). Predicted: 7.15 V7.15\ \text{V} at 5 mm5\ \text{mm}, 5.00 V5.00\ \text{V} at 10 mm10\ \text{mm}, 2.85 V2.85\ \text{V} at 20 mm20\ \text{mm}, and E=10/(ρln⁡25)=311 V/mE = 10/(\rho\ln 25) = 311\ \text{V/m} at 10 mm10\ \text{mm}, falling as 1/ρ1/\rho.

Simulation. The plates configuration of the field-lines lab shows the other limit, two infinite sheets: a uniform field U/dU/d with straight, evenly spaced lines. With U=200 VU = 200\ \text{V} and d=8 cmd = 8\ \text{cm} the probe reads 2.50×103 V/m2.50 \times 10^3\ \text{V/m} anywhere between the plates and 00 outside them.

+−+−+−+−+−+−uniform field E = U/d, d = 8 cmideal plates: no field outside, edge effects not drawnE+q₀

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 10 V10\ \text{V} with a 20 mA20\ \text{mA} limit, and read the voltage with a multimeter probe at radii of 55, 1010, 2020 and 40 mm40\ \text{mm} in four directions. Expect the readings within about ±0.2 V\pm 0.2\ \text{V} 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 VV against ln⁡ρ\ln \rho: a straight line confirms the 1/ρ1/\rho field. Why a current-carrying sheet behaves like an electrostatic problem is explained in Resistance of Conductors of Any Shape.

Hazards and safe setup. 10 V10\ \text{V}, current-limited; nothing gets warm.

Pitfalls

  • Integrating magnitudes. Adding ∣dE∣\lvert d\mathbf{E} \rvert 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 ρ′\rho' in dS′=ρ′ dρ′ dϕ′dS' = \rho'\,d\rho'\,d\phi' when building a disk from rings.

Practice

  1. A ring of radius 5 cm5\ \text{cm} carries 2 nC2\ \text{nC}. Find EE on its axis at z=5 cmz = 5\ \text{cm}. At what zz is the axial field largest?
  2. An infinite line with ρℓ=1 nC/m\rho_\ell = 1\ \text{nC/m}: at what distance is E=100 V/mE = 100\ \text{V/m}?
  3. Two infinite sheets at z=0z = 0 (+ρs+\rho_s) and z=1 cmz = 1\ \text{cm} (−ρs-\rho_s), ρs=1 μC/m2\rho_s = 1\ \mu\text{C/m}^2. Find EE between and outside them.
Answer
  1. E=8.988×109⋅2×10−9⋅0.05(0.0025+0.0025)3/2=2542 V/mE = \frac{8.988 \times 10^9 \cdot 2 \times 10^{-9} \cdot 0.05}{(0.0025 + 0.0025)^{3/2}} = 2542\ \text{V/m}. Setting dEz/dz=0dE_z/dz = 0 gives z=a/2=3.54 cmz = a/\sqrt{2} = 3.54\ \text{cm}.
  2. d=ρℓ/(2πε0E)=10−9/(2π⋅8.854×10−12⋅100)=0.180 md = \rho_\ell/(2\pi\varepsilon_0 E) = 10^{-9}/(2\pi \cdot 8.854 \times 10^{-12} \cdot 100) = 0.180\ \text{m}.
  3. Between: ρs/ε0=1.13×105 V/m\rho_s/\varepsilon_0 = 1.13 \times 10^5\ \text{V/m} along +z+z; outside: zero.

Test yourself

The field of an infinite straight line charge falls with distance as…

  1. 1/d21/d^2
  2. 1/d1/d
  3. 1/d31/d^3
  4. it does not fall

The field near a large uniformly charged sheet, compared with the field twice as far away, is…

  1. four times larger
  2. twice as large
  3. the same
  4. half as large

On the axis of a uniformly charged ring, the field at the centre of the ring is…

  1. maximum
  2. zero
  3. Q/(4πε0a2)Q/(4\pi\varepsilon_0 a^2)
  4. infinite

A disk of radius 0.1 m0.1\ \text{m} with ρs=10 nC/m2\rho_s = 10\ \text{nC/m}^2. On its axis at 5 mm5\ \text{mm} its field is closest to…

  1. the infinite-sheet value, 565 V/m565\ \text{V/m}
  2. the point-charge value
  3. zero
  4. twice the sheet value