Differential Gauss's Law via the Divergence Theorem
Statement
Starting from the integral form of Gauss's law, that the outward electric flux through any closed surface S equals the enclosed charge divided by ε0, and applying the divergence theorem together with the definition of charge density as the volume integral of ρ, we derive the local (differential) statement ∇·E = ρ/ε0, valid at every point of a region where E is continuously differentiable.
Why it matters
The integral law relates a surface flux to a total enclosed charge; it is global and says nothing directly about what happens at a single point. The differential form is a pointwise partial differential equation: it is the first of Maxwell's equations and is what one actually solves (with boundary conditions) for field configurations. It converts "charge inside a region sources net flux out of it" into "charge density is the local source of the divergence of E."
It also isolates the physical content of Gauss's law from the choice of surface. Because the identity holds for every volume, the integrands themselves must match, which is a far stronger constraint than any single flux evaluation and is the form that couples to the other field equations.
Assumptions
Derivation
Result
Reading. At each point, the divergence of the electric field — the local net outflow of field lines per unit volume — equals the local charge density scaled by 1/ε0. Charge density is the source (or sink, if negative) of the field's divergence; where ρ = 0 the field is divergence-free even though it may be strong and varying.
Units check. In SI, ∇·E has units (V·m−1)/m = V·m−2. The right side: ρ is C·m−3 and ε0 is C2·N−1·m−2 = C·V−1·m−1, so ρ/ε0 = (C·m−3)/(C·V−1·m−1) = V·m−2. Both sides match.
Limiting cases
- Charge-free region (ρ = 0): reduces to ∇·E = 0, so E is solenoidal; combined with electrostatics (∇×E = 0) the potential obeys Laplace's equation ∇2φ = 0.
- Uniform density in a ball: gives constant ∇·E = ρ/ε0, reproducing the linear-in-r interior field of a uniformly charged sphere.
- Potential form: writing E = −∇φ yields Poisson's equation ∇2φ = −ρ/ε0, the electrostatic workhorse.
- Recovering the integral law: integrating over any V and applying the divergence theorem in reverse returns ∮E·dA = Qenc/ε0; the two forms are equivalent for C1 fields.
Breaks when
- At idealised point/line/surface charges. The density is a Dirac delta, E diverges or jumps, and ∇·E is not a classical function. E.g. for a point charge ∇·(r/r3) = 4πδ3(r) — valid only distributionally.
- Across material or charge-layer boundaries. A surface charge makes the normal component of E discontinuous; the local PDE is replaced by the jump condition (E2 − E1)·n̂ = σ/ε0.
- Inside linear dielectrics if written with E and free charge. Bound charge contributes; the clean source form uses ∇·D = ρfree instead, with D = ε0E + P.
- Where E fails to be differentiable (edges, cusps, non-smooth field data): the divergence is undefined and the localisation lemma does not apply.
Failure modes
- Cancelling the integrals too early: going from ∭A dV = ∭B dV straight to A = B without invoking "for all volumes" plus continuity — the step is only legal because V is arbitrary.
- Confusing divergence with magnitude: assuming a large or fast-varying E implies large ∇·E. A uniform field has zero divergence; divergence measures net outflow, not strength.
- Applying the local form at a point charge: writing ∇·E = 0 "everywhere except the charge" and forgetting the delta — then miscounting the enclosed charge.
- Using free charge with the E-form in a dielectric: omitting bound (polarisation) charge and getting the wrong source term.
- Sign/normal slips: using an inward-pointing area element in the divergence theorem, flipping the sign of the flux and hence of ρ.
- Dimensional confusion of ε0: treating ε0 as dimensionless and mis-checking units.
Discussion
The derivation is a template for how every Maxwell equation is localised: an experimentally motivated integral law over an arbitrary domain, plus an integral theorem (divergence theorem for flux laws, Stokes' theorem for circulation laws), plus the arbitrariness of the domain, yields a pointwise field equation. The physics lives in Step 1; Steps 4–7 are the mathematics of localisation. Recognising this separation clarifies what is empirical (Coulomb/Gauss) and what is geometry (the theorems).
Physically, divergence is a per-point flux density: ∇·E(r) = limV→0 (1/V) ∮∂V E·dA. The differential Gauss law says this limiting flux-per-volume is set entirely by the local charge density — the field's tendency to "spread out" is created by charge sitting exactly there, with no action at a distance in this equation. Distant charges shape E itself, but not its divergence.
The result is the seed of electrostatic boundary-value theory: combined with E = −∇φ it gives Poisson's equation, whose uniqueness theorem underlies image charges, capacitance, and numerical field solvers. It also fixes the meaning of ε0 as the constant of proportionality between charge density and field divergence, the same constant that sets the speed of light via c = 1/√(μ0ε0).
At sharper rigour, the "for all volumes ⇒ equal integrands" step is exactly the fundamental lemma of the calculus of variations, and it requires continuity of the integrand. When ρ includes idealised singular sources, the clean statement is that ∇·E = ρ/ε0 holds as an equality of distributions (Schwartz distributions), with ∇·(r̂/r2) = 4πδ3(r) as the canonical example — which is also why the surface integral over any shell enclosing the origin gives the same 4π regardless of radius.
Common misconceptions. (i) "Zero divergence means zero field" — false; it means zero net local source. (ii) "The differential form is more fundamental than the integral form" — they are mathematically equivalent for smooth fields; the integral form is actually more general because it survives at surfaces and singularities. (iii) "ρ here is total charge" — it is a density (per unit volume) at the point, not a total.
Worked examples
Reading. The interior field grows linearly from the centre, exactly the result the integral law gives via a Gaussian sphere — here obtained purely from the pointwise equation plus symmetry and regularity.
Reading. A field whose components rise linearly with position has constant nonzero divergence, so it is sourced by a uniform charge density — the differential law reads the source directly off the field with no integration required.
Problems
- Show that E = (0, 0, E0) (a uniform field) corresponds to zero charge density everywhere. Comment on why this is consistent with Gauss's law.
Solution
∇·E = ∂x0 + ∂y0 + ∂zE0 = 0 since E0 is constant. Hence ρ = ε0∇·E = 0. Consistent: flux into any closed surface equals flux out (uniform field), so net enclosed charge is zero. - A field is measured to be E = k r2 r̂ (spherical). Find ρ(r) and evaluate it at r = 0.20 m for k = 3.0×103 V·m−3.
Solution
Spherical divergence: ∇·E = (1/r2)d(r2·k r2)/dr = (1/r2)d(k r4)/dr = (1/r2)(4k r3) = 4k r. So ρ = ε0·4k r. At r=0.20: ρ = 8.854×10−12 × 4 × 3.0×103 × 0.20 = 2.1×10−8 C·m−3. - Show explicitly that integrating ∇·E = ρ/ε0 over a sphere of radius R containing uniform density ρ reproduces Qenc/ε0.
Solution
∭V∇·E dV = (1/ε0)∭Vρ dV = (1/ε0)ρ·(4/3)πR3. Since Qenc = ρ(4/3)πR3, the right side is Qenc/ε0. By the divergence theorem the left side is ∮E·dA, so ∮E·dA = Qenc/ε0 — the integral law. - The field E = A(xx̂ − yŷ) is proposed for a charge-free region. Is it admissible? Determine ρ.
Solution
∇·E = ∂x(Ax) + ∂y(−Ay) = A − A = 0. So ρ = 0 — yes, admissible in a charge-free region. (It is a valid vacuum electrostatic field; one can check ∇×E = 0 too.) - Using the distributional identity ∇·(r̂/r2) = 4πδ3(r), show that the point-charge field E = qr̂/(4πε0r2) satisfies differential Gauss's law with ρ = qδ3(r).
Solution
∇·E = q/(4πε0) · ∇·(r̂/r2) = q/(4πε0) · 4πδ3(r) = (q/ε0)δ3(r). This equals ρ/ε0 with ρ = qδ3(r) — a point charge q at the origin, as required. The identity is essential: naively ∇·(r̂/r2) = 0 for r ≠ 0, but the singularity at the origin carries all the charge.