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 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
- Find the symmetry. Decide which coordinates can depend on and which direction it must point. A sphere of charge: . An infinite line or cylinder: . An infinite sheet or slab: .
- Choose the Gaussian surface to match: a sphere, a cylinder of length , a pillbox. On every part of it, is either normal with constant magnitude or tangential.
- Evaluate both sides: , and from the charge density.
- Solve for , then .
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 , density , total ). A sphere of radius gives :
The field grows linearly inside, peaks at the surface and falls as 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 and length around a line charge : only the curved side has flux, :
In a coaxial cable the outer conductor carries , 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 matters for voltage rating (Capacitance of Common Geometries).
Infinite sheet. A pillbox straddling the sheet, end caps of area : , so on each side, as found the hard way in the previous lesson.
Slab of charge (thickness , density , centred on ): a pillbox from to gives inside and 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 , as covered later), inner radius , outer radius , inner conductor charged to . Air breaks down near .
Find: at the inner and outer conductors, the field outside the cable, and the largest the air can hold.
Solve:
Check: , as the law requires. A second example: a sphere of radius with has at its surface and at , a quarter of that, as requires.
In Python
The function below applies Gauss's law numerically for any spherically symmetric : integrate the charge inside radius , then divide by . It reproduces the uniform sphere and handles a non-uniform one that has no simple formula.
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 high at : the trapezoid rule straddles the sharp edge of the charge at with one 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 fills the space, so in the formulas. Its capacitance per metre is (derived in Capacitance of Common Geometries). At the inner conductor holds , and the field at its surface is , well under of the tens of MV/m that polyethylene withstands.
Simulation. The point-charge configuration of the field-lines lab shows the spherical case. With and the probe at it reads (the exact with , shown rounded down by floating point); move it to and it reads , one quarter.
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 across of the cable (open at the far end) should read about (cables of this type are specified near ); with typical meter accuracy of and of length, a result within a few percent of the prediction confirms the geometry. Foamed dielectric reads lower, since is lower.
Hazards and safe setup. The LCR meter applies about ; the 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 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 in a filled cable. In a dielectric, .
Practice
- A spherical shell of radius carries . Find at and at .
- A long cylinder of radius has uniform . Find at and .
- In the worked-example cable, how does the maximum line charge change if is doubled (same )?
Answer
- Inside: . Outside: .
- Inside: . Outside: , at (the same value: inside equals here).
- It doubles, to : .
Test yourself
Inside a uniformly charged solid sphere, the field…
- is zero
- grows linearly with
- falls as
- is constant
Where is the electric field strongest in a coaxial cable?
- at the outer conductor
- at the surface of the inner conductor
- midway between the conductors
- outside the cable
Why is there no electric field outside an ideal coaxial cable?
- the jacket is an insulator
- a Gaussian cylinder outside encloses the inner and outer charges, which cancel
- the field is absorbed by the braid's resistance
- only magnetic fields exist outside
Which Gaussian surface fits an infinite uniformly charged sheet?
- a sphere centred on the sheet
- a pillbox straddling the sheet
- a cube with one face in the sheet
- a cone