Gauss's Law in Differential Form
The integral form of Gauss's law is a magnificent instrument with a strange blind spot: it talks about bags. Draw a closed surface, and the law reports the total charge inside — but "inside a bag" is a statement about a whole region, and physics since Faraday has been driving toward statements about points. What does the field do right here? What does the charge right here force it to do? This article shrinks the bag until it answers: divide the flux out of a tiny box by the box's volume, send the volume to zero, and the ratio becomes the divergence — the flux-per-volume machine built back in the vector-calculus tier. Gauss's law then collapses into three symbols and a source:
This is the same physics as the integral form — the two are exactly interconvertible through the divergence theorem — but it is a profoundly different kind of statement. It holds point by point, ties the field's local geometry to the charge density at that very spot, and asks nothing about surfaces, symmetry, or the rest of the universe. It is the form in which Gauss's law joins Maxwell's equations, the form field theory quantizes, and the form every numerical solver enforces cell by cell. It is also where two of your E0 investments pay their dividends at once: the divergence theorem powers the conversion, and the three-dimensional delta function absorbs the point charge's infinity without flinching. The chapter closes here with electrostatics' first local law. One more local statement — the vanishing curl, next article — and the Helmholtz theorem will certify that you know everything a static field can do.
- The differential form of Gauss's law: — the divergence of the field at a point equals the charge density at that same point, over .
- It follows from the integral form by the arbitrary-volume argument: if for every volume, the integrand vanishes identically.
- The two forms are one law: divergence theorem left, charge-density integral right — convert freely, choose by problem.
- Direct verification from Coulomb's law runs through the E0 delta identity : the divergence integral sifts the density at the field point.
- In empty space : field lines are conserved locally — even the visibly "spreading" field has zero divergence away from its source.
- Point charges appear as delta functions, ; surface charges make jump and are handled by boundary conditions, not by differentiating across the sheet.
- Divergence alone does not determine the field: statics needs the curl equation too — the Helmholtz theorem's two questionnaires.
- Key idea: shrink the Gaussian bag to a point and Gauss's law becomes local — the field's out-spreading per unit volume, at each point, is the charge density sitting there.
Gauss's law in differential form, , states that the divergence of the electrostatic field at each point equals the local charge density over — the local, point-by-point expression of flux–charge accounting, exactly equivalent to the integral form via the divergence theorem.
Where this lives today
The differential form is the version of Gauss's law that machines enforce. Every finite-difference and finite-element electrostatics solver imposes (usually via the potential, as Poisson's equation — the very next tier) on each of millions of mesh cells; the Yee algorithm underlying FDTD electromagnetic simulation is celebrated precisely because its staggered grid conserves the discrete divergence exactly, so charge never leaks numerically. Plasma "divergence cleaning" and constrained-transport schemes in astrophysical MHD codes exist to police the magnetic twin — a whole algorithmic literature devoted to keeping a divergence honest. In fundamental physics, the local law's status keeps rising: in quantum electrodynamics it survives as the Gauss constraint, an operator equation selecting the physical states of the theory, and lattice gauge theorists enforce it configuration by configuration when they compute the proton's mass from first principles. And gravitational-lensing maps of dark matter are, at bottom, divergence X-rays: measure the field (light deflection), differentiate, and read off the invisible density — worked example 2 at galaxy-cluster scale.
The physical picture
The integral law audits bags; the differential law audits points. Recall what divergence is — the E0 balloon test: enclose a point in a tiny box, measure the net flux escaping, divide by the box's volume, shrink. The limit is , the field's local faucet-density. Now run Gauss's law on the shrinking box: the flux out is always , and as the box closes on the point. Flux-per-volume on the left, charge-per-volume-over- on the right — the differential law is nothing but Gauss's law read through a microscope. Where there is positive charge, the field is locally a faucet; where negative, a drain; where vacuum, sealed pipework, however violently the field may vary.
Hold two calibrating pictures. First, the point charge: its field visibly fans outward everywhere, yet at every point except the charge itself — the E0 balloon test on found the weakening magnitude exactly cancelling the geometric spreading. All of the divergence is concentrated in one infinitely dense spike at the origin, and the E0 delta-function article gave that spike its legal name: . The differential Gauss law is that identity, dressed for electrostatics: charge density is the delta spike, scaled by . Second, the uniformly charged sphere of the previous article. Inside, the field ramps linearly — and a linear radial field has constant divergence, matching the constant filling the ball. Outside, the tail has zero divergence, matching the vacuum. The kink at the surface is precisely where switches off. The differential law reads that profile like an X-ray: wherever the field's local out-spreading is nonzero, charge is present, in exact proportion — worked example 1 runs the numbers.
The law, localized
Start from the integral form, which the previous article established for arbitrary surfaces, and write its right side as a volume integral of the density:
where: is the boundary of an arbitrary volume . The left side is flux through a closed surface — exactly the shape the divergence theorem converts. Applying it (the E0 theorem: flux through the skin equals the volume integral of the divergence) turns (1) into a statement comparing two volume integrals over the same arbitrary region, and the arbitrariness is then lethal to any disagreement between the integrands. The result:
where: everything is evaluated at a single point — the divergence of the total field here, the charge density here. No surface, no symmetry, no rest-of-universe. Equation (2) is Maxwell's first equation in the form he wrote it, and the first derivation below walks the conversion with the care the "arbitrary volume" step deserves. For a point charge at , the density is the delta spike , and (2) reduces to the E0 identity — the second derivation closes that loop from the Coulomb side. The two forms are strictly interconvertible, and fluency means switching without ceremony:
| you have | reach for | because |
|---|---|---|
| symmetric source, want at finite distance | integral form + Gaussian surface | the solver mode of the last article |
| field formula, want the charge that made it | differential form: compute | an X-ray for sources — worked example 2 |
| point-by-point law for theory building | differential form | locality; the form PDEs, relativity and QFT use |
| conservation statement over a region | integral form | global bookkeeping, no derivatives needed |
| surface charge layer | neither naively — boundary conditions | is a delta sheet; jumps by |
We convert the integral law into the differential law with full logical care. The two working parts: the divergence theorem (E0), which rewrites the flux as a volume integral, and the observation — subtler than it looks — that an equation holding for every volume forces the integrands to agree point by point. The second part is where hands get waved in lesser treatments; we wave nothing. The payoff is not just equation (2) but the template: every "integral law ⇒ local law" conversion in physics (mass conservation, energy conservation, all of Maxwell) runs on exactly this argument.
Step 1. Rewrite the flux side. For any volume with boundary , the divergence theorem gives
Why is this legal here? The theorem requires continuously differentiable in . For smooth charge distributions it is; for point and surface charges, see Step 4 — the delta-function formalism is exactly the license extension.
Step 2. Set the two volume integrals against each other. Substituting into (1) and gathering:
Step 3. Kill the integrand. Suppose the bracket were positive at some point . By continuity it stays positive in a small ball around ; choose to be that ball, and the integral over it would be strictly positive — contradiction. Same argument, mirrored, for negative. Hence the bracket vanishes everywhere:
Why can't the integrand oscillate its way to zero? Over some particular volume it could — positive patches cancelling negative ones. The force of the argument is the word "every": the volumes themselves hunt down any nonzero patch. One equation per volume, infinitely many volumes, is enough to pin a function.
Step 4. Patrol the edge cases. At a point charge, is not differentiable and Step 1's hypothesis fails classically — but the delta-function calculus of E0 repairs it: with admitted as a distributional identity, the theorem and the conclusion survive with containing delta spikes. At a surface charge, is a delta sheet and jumps; the differential law there is read as the boundary condition — the pillbox-limit statement, formalized in the next tier.
Go deeper · Derivation B · 2 minThe hard direction — computing the divergence of the Coulomb field directly
The first derivation assumed the integral law and localized it. This one earns equation (2) from the ground up: start from the superposition integral for the field of an arbitrary charge distribution — Coulomb's law in continuum form — and compute its divergence honestly. Classically the computation looks doomed ( of an integral whose integrand is singular), but the E0 delta identity converts the doom into a one-line sift. This is the calculation that makes the E0 investment in pay off in full, and it is the standard route by which field theory verifies that a proposed field law has the right sources. Track carefully which coordinates each operator touches — the vs hygiene of the continuous-distributions article is load-bearing here.
Step 1. Write the field of an arbitrary static distribution (the continuous-distributions master formula), with :
Step 2. Take the divergence at the field point, and slide under the integral:
Why may pass ? Because differentiates with respect to (the field point) while the integration and the density live on (the source point) — different variables entirely. This is exactly the step that dies if the prime hygiene has been sloppy.
Step 3. Deploy the delta identity. The divergence of the inverse-square unit field with respect to the field point is the E0 result:
Why a delta and not zero? Away from the balloon test gives exactly zero (spreading cancels weakening); the entire divergence hides in the singular point, and the E0 pincer/regularization proofs measured its weight: . This one identity is the whole difficulty of the calculation, and it was paid for in advance.
Step 4. Sift. The delta collapses the integral at :
The field's divergence at knows only the charge density at : every other source element contributed a divergence-free fan. Locality was hiding inside Coulomb's law all along; the delta function is the scalpel that exposes it. Dimensional check: ✓ — the correct units for the divergence of a field.
Limiting cases
| case | result | meaning |
|---|---|---|
| vacuum () | lines locally conserved — sealed pipework, however curved | |
| point charge | all divergence in one spike of weight | |
| uniform ball interior | , constant | the linear ramp's constant out-spreading |
| surface charge | jumps by across the sheet | differential law becomes a boundary condition |
| integrate (2) over any | integral form recovered | divergence theorem run backwards — no information lost |
| add (next article) | field fully determined (with decay) | Helmholtz: divergence + curl + boundary = everything |
Worked examples
1 · X-raying the charged sphere (confidence builder)
The previous article found, for a uniform ball of charge ( nC, cm): inside and outside. Verify that the differential law reads back the correct source, with numbers.
Step 1. The tool: for a radial field, — the spherical divergence formula from the curvilinear-coordinates article.
Step 2. Inside: , so — constant, as a uniform density demands. Numerically: .
Step 3. Check against : the ball's density is , so . ✓ (The two agree identically: since .)
Step 4. Outside: , a constant, so — vacuum, correctly reported, even though the field there visibly fans outward. The X-ray sees charge only where charge is; the kink in at the surface is the divergence switching off.
Answer: inside, exactly; outside, zero — the differential law reads the sphere's anatomy straight off the field profile.
2 · From field to source (exam level)
Measurements in a spherical region find a radial field with (and no angular components). Find the charge density producing it, and the total charge within cm — by two independent routes.
Step 1. Apply the X-ray: . So
— a density growing linearly from zero at the centre. At cm: .
Step 2. Route one for the total charge — integrate the density over the ball:
Step 3. Route two — the integral law on the bounding sphere: V·m, and C. ✓
Step 4. Read the agreement: the two routes are the divergence theorem run in both directions — differentiate the field and integrate the density, or skip both and read the flux. Their forced agreement, for any radius, is the content of the theorem; their numerical agreement here ( pC) is your arithmetic passing its audit.
Answer: ; total charge inside 10 cm is pC, confirmed identically by density integration and by flux.
Origins · 1 minJames Clerk Maxwell and how this was discovered
Maxwell's deepest allegiance was to locality — the conviction, inherited from Faraday, that physics happens point by point in the field, not by ledger entries across finite gaps. The differential form of Gauss's law is that conviction made syntax: where the integral form audits a whole bag at once, says what space is doing here, now, with no reference to anywhere else. In the 1873 Treatise, and in the 1864 dynamical theory before it, Maxwell assembled electromagnetic physics entirely from such local statements — a set his followers (Heaviside above all, compressing twenty quaternion equations into the four vector ones) polished into the Maxwell equations of every modern textbook, with this article's law standing first. The wager on locality paid beyond anything Maxwell lived to see: relativity requires local laws (instantaneous bag-audits don't transform), and quantum field theory promoted his first equation into an operator constraint that holds in every quantum state. The microscope that shrank the bag never stopped zooming.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §2.2.1–2.2.2 · Jackson, Classical Electrodynamics, 3rd ed., §1.3–1.4 · Purcell & Morin, Electricity and Magnetism, 3rd ed., §2.9–2.11 · Zangwill, Modern Electrodynamics, §3.3–3.4 · Feynman Lectures on Physics, Vol. II, Ch. 4–5 Key numerical anchors for this article: the sphere X-ray gives for nC, cm; the example yields , , and C confirmed by both routes; the operative tool for radial fields is the spherical divergence formula ; the boundary-condition jump across a surface charge is (pillbox limit, formalized in the next tier). Constant used throughout: F/m.
Builds on: Gauss's Law in Integral Form · The Divergence (Gauss) Theorem · The Dirac Delta in Three Dimensions · Continuous Charge Distributions Leads to: The Curl of the Electrostatic Field · Poisson's Equation · Applications of Gauss's Law and Symmetry · Electrostatic Potential
If the two forms are exactly equivalent, why does physics bother keeping both?
Because equivalence of content is not equivalence of usability, in either direction. The integral form is the practical solver (symmetric sources, finite regions, no derivatives of possibly-rough fields) and the natural language of conservation ("what left the box"). The differential form is the theory-builder: it is local — the property relativity demands, since "flux through a bag now" is not even well-defined across reference frames — it composes into PDEs with the other Maxwell equations, and it quantizes. The professional pattern: derive and reason in differential form, compute specific symmetric answers in integral form, and cross the divergence-theorem bridge without noticing you did. Every conservation law in physics (charge, energy, momentum, probability) maintains the same two dialects for the same reasons.
How can the divergence be zero in vacuum when field lines are so obviously diverging?
Vocabulary is the culprit: "diverging" in everyday speech means directions fanning apart; the operator weighs net flux per volume, where fanning directions can be exactly refunded by weakening magnitude. Run the honest balloon test on a field at a vacuum point: the outer face of a small box has weaker field but is farther out along a widening cone; the books balance to zero — the E0 divergence article computed this and the flux article's projection argument is the same fact globally. What zero vacuum divergence asserts is field-line conservation between sources, which the "spreading" picture never contradicted: the lines spread, but none are born. If the arrows-versus-operator tension ever resurfaces, recompute; the operator has never lost.
What does the differential law even mean at a point charge, where E blows up?
Classically, nothing — the field is not differentiable there, and both sides of (2) are meaningless as ordinary functions. The delta-function formalism is the repair, and it is exact rather than hand-wavy: treat as a statement about integrals (both sides give against any test volume containing the origin — the E0 proofs), and the law holds with . The mathematics is Schwartz's distribution theory, built decades after Maxwell precisely to make such equations honest. Physically, the message is tidy: a "point charge" is the idealization of density concentrated below any resolution — and the delta is the bookkeeping symbol for exactly that idealization.
How does the differential form handle a charged sheet, where the field jumps?
By confessing that a derivative across the jump does not exist and taking the pillbox limit instead. An idealized surface charge is a delta sheet in ; correspondingly the perpendicular field component jumps by exactly across it (integrate the law over a vanishing pillbox straddling the sheet — the volume term keeps only the sheet's charge). The resulting statement, , is called a boundary condition, and it is the differential law's official representative wherever fields are discontinuous. The next tiers use it constantly — conductor surfaces, dielectric interfaces — so file the principle now: smooth regions get the PDE, interfaces get its pillbox shadow.
Given ρ everywhere, does ∇·E = ρ/ε₀ determine E?
No — and the counterexample is one line: add to any solution a constant field (or any curl of anything); the divergence is unchanged. A vector field has three components; one scalar equation cannot pin them. The missing information is exactly what the Helmholtz theorem itemized in tier E0: you need the curl as well (statics supplies , the next article's business) plus decay or boundary conditions. Then — and only then — the field is unique, and equals the Coulomb superposition integral. This is why "the two local laws of electrostatics" travel as a pair, and why the potential formulation (which builds the zero curl in automatically) is about to take over the subject.
Which form should I reach for on an exam?
Decision tree, honestly ranked. Field from symmetric charge → integral form, Gaussian surface, two lines. Charge from a given field formula → differential form: one divergence computation X-rays the source (worked example 2), massively faster than inverting any integral. Conceptual questions about what fields can do ("could this field exist in vacuum?") → differential form: compute (and, soon, ); nonzero divergence in a stated vacuum is an instant contradiction. Flux through a specified surface → integral form, possibly via solid angles. The single most examinable subtlety spans both: zero divergence in a region does not mean zero field there — it means no sources there, and the field may be passing through on business from elsewhere.
Is there a differential form for the magnetic field too?
Yes, and the pair is the deepest short poem in physics: — always, everywhere, with no known exceptions. The zero on the right is the statement that magnetic charge does not exist: no magnetic faucets, no drains, every magnetic field line closes on itself or runs forever. Cut a bar magnet and you get two dipoles, never a north and a south in isolation. Whether that zero is fundamental or merely unbroken is a live experimental question — Dirac showed in 1931 that even one magnetic monopole anywhere would explain electric charge quantization, and searches (MoEDAL at the LHC among them) continue. Until one turns up, Gauss's electric law has a source and his magnetic law has a silence, and the asymmetry shapes all of electromagnetism.