TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Gauss's Law for Symmetric Charge Distributions

Gauss's Law for Symmetric Charge Distributions

Where would a coaxial cable break down first, at its inner or its outer conductor? How strong is the field inside a charged sphere? With enough symmetry, Electric Flux Density and Gauss's Law answers questions like these in two lines: choose a closed surface on which D\mathbf{D} is constant in size and either perpendicular or parallel to the surface, and the flux integral becomes a multiplication. This lesson does it for the four shapes that cover most engineering structures: sphere, line (and coaxial cable), sheet and slab.

The recipe

  1. Find the symmetry. Decide which coordinates D\mathbf{D} can depend on and which direction it must point. A sphere of charge: D=Dr(r) r^\mathbf{D} = D_r(r)\,\hat{\mathbf{r}}. An infinite line or cylinder: D=Dρ(ρ) ρ^\mathbf{D} = D_\rho(\rho)\,\hat{\boldsymbol{\rho}}. An infinite sheet or slab: D=Dz(z) z^\mathbf{D} = D_z(z)\,\hat{\mathbf{z}}.
  2. Choose the Gaussian surface to match: a sphere, a cylinder of length LL, a pillbox. On every part of it, D\mathbf{D} is either normal with constant magnitude or tangential.
  3. Evaluate both sides: ∮D⋅dS=D×(area where D is normal)\oint \mathbf{D} \cdot d\mathbf{S} = D \times (\text{area where } \mathbf{D} \text{ is normal}), and QencQ_\text{enc} from the charge density.
  4. Solve for DD, then E=D/ε\mathbf{E} = \mathbf{D}/\varepsilon.

If step 1 fails (a finite cylinder, a square plate, a charge near a corner), Gauss's law still holds but cannot give the field; use superposition (Fields of Line, Surface and Volume Charges) or a numerical solver (Finite Differences for Laplace and Poisson).

Four results

Uniformly charged sphere (radius aa, density ρv\rho_v, total Q=43πa3ρvQ = \frac{4}{3}\pi a^3\rho_v). A sphere of radius rr gives Dr⋅4πr2=QencD_r \cdot 4\pi r^2 = Q_\text{enc}:

Er=ρv r3ε0(r≤a),Er=Q4πε0r2(r≥a)E_r = \frac{\rho_v\,r}{3\varepsilon_0} \quad (r \le a), \qquad E_r = \frac{Q}{4\pi\varepsilon_0 r^2} \quad (r \ge a)

The field grows linearly inside, peaks at the surface and falls as 1/r21/r^2 outside, exactly like a point charge. A thin spherical shell has no field at all inside it.

Infinite line and coaxial cable. A cylinder of radius ρ\rho and length LL around a line charge ρℓ\rho_\ell: only the curved side has flux, Dρ⋅2πρL=ρℓLD_\rho \cdot 2\pi\rho L = \rho_\ell L:

Eρ=ρℓ2πε ρ(a<ρ<b),E=0(ρ>b in a coaxial cable)E_\rho = \frac{\rho_\ell}{2\pi\varepsilon\,\rho} \quad (a < \rho < b), \qquad E = 0 \quad (\rho > b \text{ in a coaxial cable})
+ a rho b inner +rho_l, outer -rho_l per metre D through the side length L; caps carry no flux

In a coaxial cable the outer conductor carries −ρℓ-\rho_\ell, so a Gaussian cylinder outside both conductors encloses zero charge: no field leaks out. Inside, the field is strongest at the surface of the inner conductor, which is where a cable breaks down and why the ratio b/ab/a matters for voltage rating (Capacitance of Common Geometries).

Infinite sheet. A pillbox straddling the sheet, end caps of area AA: 2DA=ρsA2DA = \rho_s A, so E=ρs/(2ε0)E = \rho_s/(2\varepsilon_0) on each side, as found the hard way in the previous lesson.

Slab of charge (thickness 2w2w, density ρv\rho_v, centred on z=0z = 0): a pillbox from −z-z to zz gives Ez=ρvz/ε0E_z = \rho_v z/\varepsilon_0 inside and ρvw/ε0\rho_v w/\varepsilon_0 outside. This is the first step of the depletion-region model of a PN junction, where opposite slabs of charge sit side by side and the field is triangular (The PN Junction).

Worked example

Given: a coaxial cable with air between the conductors (a dielectric changes ε\varepsilon, as covered later), inner radius a=0.45 mma = 0.45\ \text{mm}, outer radius b=1.475 mmb = 1.475\ \text{mm}, inner conductor charged to ρℓ=1 nC/m\rho_\ell = 1\ \text{nC/m}. Air breaks down near 3 MV/m3\ \text{MV/m}.

Find: EE at the inner and outer conductors, the field outside the cable, and the largest ρℓ\rho_\ell the air can hold.

Solve:

E(a)=10−92π⋅8.854×10−12⋅0.45×10−3=39.9 kV/m,E(b)=10−92π⋅8.854×10−12⋅1.475×10−3=12.2 kV/mE(ρ>b)=0(Qenc=ρℓL−ρℓL=0)ρℓ,max⁡=2πε0 a Ebd=2π⋅8.854×10−12⋅0.45×10−3⋅3×106=75 nC/m\begin{aligned} E(a) &= \frac{10^{-9}}{2\pi \cdot 8.854 \times 10^{-12} \cdot 0.45 \times 10^{-3}} = 39.9\ \text{kV/m}, \qquad E(b) = \frac{10^{-9}}{2\pi \cdot 8.854 \times 10^{-12} \cdot 1.475 \times 10^{-3}} = 12.2\ \text{kV/m} \\ E(\rho > b) &= 0 \quad (Q_\text{enc} = \rho_\ell L - \rho_\ell L = 0) \\ \rho_{\ell,\max} &= 2\pi\varepsilon_0\,a\,E_\text{bd} = 2\pi \cdot 8.854 \times 10^{-12} \cdot 0.45 \times 10^{-3} \cdot 3 \times 10^6 = 75\ \text{nC/m} \end{aligned}

Check: E(a)/E(b)=b/a=3.28E(a)/E(b) = b/a = 3.28, as the 1/ρ1/\rho law requires. A second example: a sphere of radius 5 cm5\ \text{cm} with ρv=1 μC/m3\rho_v = 1\ \mu\text{C/m}^3 has E=ρva/(3ε0)=1882 V/mE = \rho_v a/(3\varepsilon_0) = 1882\ \text{V/m} at its surface and 470.6 V/m470.6\ \text{V/m} at r=10 cmr = 10\ \text{cm}, a quarter of that, as 1/r21/r^2 requires.

In Python

The function below applies Gauss's law numerically for any spherically symmetric ρv(r)\rho_v(r): integrate the charge inside radius rr, then divide by 4πε0r24\pi\varepsilon_0 r^2. It reproduces the uniform sphere and handles a non-uniform one that has no simple formula.

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import cumulative_trapezoid

eps0 = 8.854e-12

def E_spherical(rho_v, r):
    """Gauss: Q_enc(r) = integral of rho_v * 4 pi r^2 dr; E = Q_enc / (4 pi eps0 r^2)."""
    q = cumulative_trapezoid(rho_v(r) * 4*np.pi*r**2, r, initial=0.0)
    with np.errstate(divide='ignore', invalid='ignore'):
        return np.where(r > 0, q / (4*np.pi*eps0*r**2), 0.0)

a, rv0 = 0.05, 1e-6
r = np.linspace(0, 0.15, 3001)
uniform = lambda r: np.where(r <= a, rv0, 0.0)
peaked = lambda r: np.where(r <= a, 2.5*rv0*(1 - (r/a)**2), 0.0)   # same total charge
E_u = E_spherical(uniform, r)
E_p = E_spherical(peaked, r)
for rr in (0.025, 0.05, 0.10):
    i = int(round(rr / (r[1] - r[0])))
    exact = rv0*rr/(3*eps0) if rr <= a else rv0*a**3/(3*eps0*rr**2)
    print(f"r = {rr*100:4.1f} cm: uniform {E_u[i]:7.1f} V/m (formula {exact:7.1f}), peaked {E_p[i]:7.1f} V/m")
print(f"peak field of the peaked sphere: {E_p.max():.1f} V/m at r = {r[np.argmax(E_p)]*100:.2f} cm")

# coax: E between the conductors and the air breakdown limit
a_c, b_c = 0.45e-3, 1.475e-3
for rho in (a_c, b_c):
    print(f"coax, 1 nC/m: E at {rho*1e3:.3f} mm = {1e-9/(2*np.pi*eps0*rho)/1e3:.1f} kV/m")
print(f"max line charge before air breaks down: {3e6*2*np.pi*eps0*a_c*1e9:.0f} nC/m")

plt.plot(r*100, E_u, label="uniform")
plt.plot(r*100, E_p, label="peaked at the centre")
plt.axvline(a*100, ls=":", c="gray")
plt.xlabel("r (cm)"); plt.ylabel("E (V/m)"); plt.legend(); plt.title("Charged spheres, same total charge")
plt.show()
r =  2.5 cm: uniform   941.2 V/m (formula   941.2), peaked  2000.0 V/m
r =  5.0 cm: uniform  1882.4 V/m (formula  1882.4), peaked  1882.4 V/m
r = 10.0 cm: uniform   471.3 V/m (formula   470.6), peaked   470.6 V/m
peak field of the peaked sphere: 2338.4 V/m at r = 3.72 cm
coax, 1 nC/m: E at 0.450 mm = 39.9 kV/m
coax, 1 nC/m: E at 1.475 mm = 12.2 kV/m
max line charge before air breaks down: 75 nC/m

Outside the sphere both profiles give the same field: only the enclosed charge matters, not how it is arranged. Inside, the centre-heavy sphere has a stronger field closer in. The uniform sphere comes out 0.15 %0.15\ \% high at 10 cm10\ \text{cm}: the trapezoid rule straddles the sharp edge of the charge at r=ar = a with one 50 μm50\ \mu\text{m} step. The peaked profile falls to zero smoothly at the edge and has no such error, a first taste of why field solvers need fine meshes at material boundaries.

Guided lab: the field inside a real coaxial cable

Hand calculation. For the cable of Vectors and Coordinate Systems for Fields, solid polyethylene with εr≈2.25\varepsilon_r \approx 2.25 fills the space, so ε=εrε0\varepsilon = \varepsilon_r\varepsilon_0 in the formulas. Its capacitance per metre is C′=2πε/ln⁡(b/a)=105 pF/mC' = 2\pi\varepsilon/\ln(b/a) = 105\ \text{pF/m} (derived in Capacitance of Common Geometries). At 24 V24\ \text{V} the inner conductor holds ρℓ=C′V=2.5 nC/m\rho_\ell = C'V = 2.5\ \text{nC/m}, and the field at its surface is V/(aln⁡(b/a))=44.9 kV/mV/(a\ln(b/a)) = 44.9\ \text{kV/m}, well under 1 %1\ \% of the tens of MV/m that polyethylene withstands.

Simulation. The point-charge configuration of the field-lines lab shows the spherical case. With q=2 nCq = 2\ \text{nC} and the probe at 4 cm4\ \text{cm} it reads 1.12×104 N/C1.12 \times 10^4\ \text{N/C} (the exact 11 250 N/C11\,250\ \text{N/C} with k=9.0×109k = 9.0 \times 10^9, shown rounded down by floating point); move it to 8 cm8\ \text{cm} and it reads 2.81×103 N/C2.81 \times 10^3\ \text{N/C}, one quarter.

+lines point away from +, out to infinityE+q₀

What you would measure. You cannot put a probe inside a cable, but you can measure the charge that sets the field: an LCR meter at 1 kHz1\ \text{kHz} across 1.00 m1.00\ \text{m} of the cable (open at the far end) should read about 100 pF100\ \text{pF} (cables of this type are specified near 100 pF/m100\ \text{pF/m}); with typical meter accuracy of ±1 %\pm 1\ \% and ±1 cm\pm 1\ \text{cm} of length, a result within a few percent of the prediction confirms the ln⁡(b/a)\ln(b/a) geometry. Foamed dielectric reads lower, since εr\varepsilon_r is lower.

Hazards and safe setup. The LCR meter applies about 1 V1\ \text{V}; the 24 V24\ \text{V} is a calculation. Never test a cable's voltage rating yourself: insulation tests use kilovolt testers in dedicated setups.

Pitfalls

  • Using Gauss where symmetry is broken. A finite cylinder or a square plate does not have constant DD on any simple surface.
  • Forgetting the outer conductor. In a coaxial cable the field outside is zero only because the outer conductor carries the opposite charge.
  • Inside vs outside formulas. For a solid sphere, use the enclosed charge, not the total, inside.
  • Using ε0\varepsilon_0 in a filled cable. In a dielectric, E=D/(εrε0)E = D/(\varepsilon_r\varepsilon_0).

Practice

  1. A spherical shell of radius 10 cm10\ \text{cm} carries 5 nC5\ \text{nC}. Find EE at 5 cm5\ \text{cm} and at 20 cm20\ \text{cm}.
  2. A long cylinder of radius 1 cm1\ \text{cm} has uniform ρv=2 μC/m3\rho_v = 2\ \mu\text{C/m}^3. Find EE at 0.5 cm0.5\ \text{cm} and 2 cm2\ \text{cm}.
  3. In the worked-example cable, how does the maximum line charge change if aa is doubled (same bb)?
Answer
  1. Inside: 00. Outside: 8.988×109⋅5×10−9/0.04=1124 V/m8.988 \times 10^9 \cdot 5 \times 10^{-9}/0.04 = 1124\ \text{V/m}.
  2. Inside: E=ρvρ/(2ε0)=2×10−6⋅0.005/(2⋅8.854×10−12)=565 V/mE = \rho_v\rho/(2\varepsilon_0) = 2 \times 10^{-6} \cdot 0.005/(2 \cdot 8.854 \times 10^{-12}) = 565\ \text{V/m}. Outside: ρℓ=ρvπa2=6.28×10−10 C/m\rho_\ell = \rho_v\pi a^2 = 6.28 \times 10^{-10}\ \text{C/m}, E=ρva2/(2ε0ρ)=565 V/mE = \rho_v a^2/(2\varepsilon_0\rho) = 565\ \text{V/m} at 2 cm2\ \text{cm} (the same value: ρ/2\rho/2 inside equals a2/(2ρ)a^2/(2\rho) here).
  3. It doubles, to 150 nC/m150\ \text{nC/m}: ρℓ,max⁡∝a\rho_{\ell,\max} \propto a.

Test yourself

Inside a uniformly charged solid sphere, the field…

  1. is zero
  2. grows linearly with rr
  3. falls as 1/r21/r^2
  4. is constant

Where is the electric field strongest in a coaxial cable?

  1. at the outer conductor
  2. at the surface of the inner conductor
  3. midway between the conductors
  4. outside the cable

Why is there no electric field outside an ideal coaxial cable?

  1. the jacket is an insulator
  2. a Gaussian cylinder outside encloses the inner and outer charges, which cancel
  3. the field is absorbed by the braid's resistance
  4. only magnetic fields exist outside

Which Gaussian surface fits an infinite uniformly charged sheet?

  1. a sphere centred on the sheet
  2. a pillbox straddling the sheet
  3. a cube with one face in the sheet
  4. a cone