Gauss's Law in Integral Form
Everything this chapter has built — fields, superposition, lines, flux — snaps together on this page into the first of Maxwell's equations. Gauss's law says that the total electric flux streaming out through any closed surface equals the net charge trapped inside, divided by . Nothing else matters: not the surface's size, not its shape, not how the interior charge is arranged, not the herd of charges sitting just outside. Draw a bag around part of the universe, integrate over the bag, and you have weighed the charge inside — a charge-meter you can deploy anywhere, made of pure geometry. The law earns its keep twice over. As a truth, it is deeper than Coulomb's law: it remains exactly valid for moving charges, for radiating fields, inside materials — regimes where the static Coulomb formula has long since failed — which is why it, and not Coulomb's law, is carved into Maxwell's equations. As a tool, it is the great labor-saver of electrostatics: for sources with enough symmetry, the flux integral collapses into "field times area," and problems that cost half a page of superposition integrals in the last article fall in two lines. The uniformly charged sphere — solved completely here, inside and out — is the flagship: outside, the sphere impersonates a point charge exactly; inside, the field grows linearly from zero. That single result powers planetary gravity calculations, nuclear models, and half of the exam problems you will ever meet. The fine print — exactly which symmetries permit the two-line magic, and the full catalog of applications — gets its own article next. Here we forge the law and swing it once.
- Gauss's law: for every closed surface — net outward flux counts enclosed charge, and nothing else.
- It follows from two ingredients already proven: the point-charge flux (shape-independent, zero if outside) and superposition — fluxes add charge by charge.
- The in the integral is the total field, external charges included; their flux contributions cancel, but their fields are present on the surface.
- As a tool it needs symmetry: on a well-chosen Gaussian surface the field must be constant in magnitude and known in direction, so .
- Flagship result: a uniformly charged sphere gives inside (linear in ) and outside — a perfect point-charge impostor beyond its surface.
- The law is exact in full electrodynamics — it is Maxwell's first equation — while Coulomb's law is only the static special case.
- Key idea: flux through any closed surface = enclosed charge over — geometry weighs charge, and symmetry turns the weighing into a two-line field solver.
The net electric flux through any closed surface equals the enclosed charge divided by : — exact for any surface and any charge configuration, and a two-line field solver whenever symmetry fixes the field's pattern in advance.
Where this lives today
Gauss's law runs as live machinery at every scale physics touches. Astronomers weigh the invisible with its gravitational twin: the rotation speed of stars circling a galaxy reads out the enclosed mass through exactly this article's logic, and the mismatch with visible matter — enclosed mass rising linearly while starlight runs out — is the dark-matter problem stated as a Gaussian-surface audit. Plasma and semiconductor device physicists solve for space-charge fields by imposing the law on every cell of a mesh; the "field solver" at the heart of chip-design TCAD and tokamak edge codes is Gauss's law discretized a billionfold. Metrologically, the law is the precision frontier of electromagnetism: the modern Cavendish-descended null experiments — no field inside a charged shell — hold the inverse-square exponent to within and cap the photon mass near , making Maxwell's first equation one of the most stringently verified statements in science. And every Faraday cage — the shielded room protecting an MRI scanner, the mesh in your microwave door — is the hollow-shell corollary cast in metal.
The physical picture
Think of every positive charge as a little factory extruding a fixed quota of field lines, every negative charge as a shredder consuming its quota, and empty space as strictly neutral territory where lines neither start nor stop. Now draw an imaginary closed bag — any bag — and audit the lines crossing its skin. Lines from factories inside must exit (they have nowhere else to go); lines from outside factories enter and leave in pairs, netting zero. The audit therefore reports exactly the factories-minus-shredders inside the bag, no matter how you crumple it. That audit is Gauss's law; the previous article priced each line in volt·metres, and this one signs the theorem.
Why is this useful and not merely beautiful? Because sometimes the audit can be run in reverse. The law always tells you the flux; usually it cannot tell you the field, since infinitely many field patterns share one flux. But when symmetry dictates the field's pattern in advance — radial and equal-magnitude on a concentric sphere, say — then the one number the audit reports is enough to solve for the one unknown magnitude. That is the whole trick: the law supplies one equation, and symmetry must first reduce the field to one unknown. Sphere, infinite cylinder, infinite plane — the three symmetry families where this works — turn superposition marathons into arithmetic. Everywhere else, Gauss's law remains true and silently unhelpful, and the honest integrals of the earlier articles keep their jobs. One subtlety guards the exam gates: the inside the integral is the total field, made by all charges in the universe — including the outsiders. The outsiders' flux cancels; their field does not. The law's magic is that the cancellation happens in the integral, not on the surface.
The law, forged and swung
The forging takes one paragraph, because the previous articles did the heavy lifting. For a single point charge, the flux through any closed surface is if the charge is inside and if outside — the shape-independent result of the flux article. For many charges, the total field is the superposition , and the flux integral, being linear, splits into per-charge fluxes. Add the verdicts: insiders contribute their , outsiders contribute nothing, and
where: is any closed surface (a Gaussian surface — imaginary, yours to choose), points outward, and is the net charge in the enclosed volume. Equation (1) is exact — not a symmetric-case approximation — and it is the integral form of Maxwell's first equation. The first derivation below walks the assembly with full care, because the one-paragraph version hides two logical beats worth savoring. When symmetry cooperates, (1) becomes a solver. The working pattern, spelled once here and industrialized in the next article:
where: the collapse from (1) to (2) is legal only after symmetry certifies, before any calculation, that on your chosen surface the field (i) points along the normal (or lies parallel to the surface, contributing zero), and (ii) has one constant magnitude wherever it pierces. Spherical symmetry delivers this on concentric spheres; infinite cylindrical symmetry on coaxial cylinders; infinite planar symmetry on straddling pillboxes. The promised one-line payoff from the continuous-distributions article: for an infinite line charge, a coaxial cylinder of radius and length has pierced area and encloses , so — the half-page integral of that article, reproduced by arithmetic. The full symmetry taxonomy, the pillbox, and the catalog of standard results belong to the applications article next door.
| what you know | what Gauss's law gives you | caveat |
|---|---|---|
| the field everywhere on a closed | , exactly | always works — the charge-meter |
| + spherical symmetry | in two lines | field radial, constant on concentric spheres |
| + cylinder/plane symmetry | in two lines | infinite idealizations required |
| , no symmetry | only the total flux | infinitely many fields share one flux |
We prove equation (1) for an arbitrary closed surface and an arbitrary collection of charges. Everything needed is already on the shelf: the flux of a single point charge through a closed surface ( inside, outside — the solid-angle results of the flux article), and the superposition principle (the total field is the sum of the individual fields). The strategy is to let linearity of the flux integral do all the work. The care points: making explicit that the integrand contains the total field, and extending from point charges to continuous distributions without hand-waving. Short as it is, this argument is the actual logical birth of Maxwell's first equation.
Step 1. Write the total field on the surface as a superposition. At every point of ,
where the sum runs over all charges — inside and outside alike — and is the lone-universe Coulomb field of charge . This is the experimentally certified linearity of the superposition article.
Step 2. Split the flux by linearity of the integral:
Why is this legal? The integral of a sum is the sum of integrals — calculus, not physics. Note what it buys: the flux of a complicated many-charge field reduces to single-charge fluxes, each of which we have already computed for arbitrary surfaces.
Step 3. Evaluate each term by the point-charge verdicts. For charge inside : (full sky, shape-independent). For charge outside: (paired piercings cancel). Hence
Why do outsiders vanish from the answer but not from the problem? Their fluxes cancel; their fields remain in the integrand at every point of . The law is a statement about a cancellation inside an integral — which is why it cannot, by itself, tell you the field at any point.
Step 4. Pass to the continuum. A continuous distribution is the limit of many small charges (the continuous-distributions article); each infinitesimal inside contributes , so — the form used with volume charge. No step depended on the surface's shape, the charges being at rest relative to each other inside, or any symmetry whatsoever: the law is fully general. Verified: reproduces Griffiths §2.2.1 (eq. 2.13) and Jackson §1.3; the two ingredients trace to this chapter's flux article (solid-angle results, themselves verified against Zangwill §3.3) and superposition article; linearity of integration is exact.
Go deeper · Derivation B · 2 minThe uniformly charged sphere — a point-charge impostor with a linear heart
The flagship application: a solid sphere of radius carries total charge spread uniformly (). We find everywhere — outside, inside, and at the surface — in a few lines each, a problem that would be a genuinely painful double integral by direct superposition. The strategy is the symmetry ritual in its purest form: argue the field's pattern first (radial, magnitude depending only on ), choose concentric spherical Gaussian surfaces, and let equation (2) do the rest. Watch the single moving part: how much charge the Gaussian surface encloses as it grows — all of outside, a shrinking fraction inside.
Step 1. Symmetry first, always. The source is invariant under every rotation about its centre, so the field must be too: can only point radially, with a magnitude depending only on . (Any sideways component would pick a preferred direction the source does not have.) This certifies concentric spheres as Gaussian surfaces on which exactly.
Step 2. Outside (). The Gaussian sphere encloses everything: . Gauss's law:
Why is this remarkable? It is exactly the point-charge field — not approximately, not asymptotically. From outside, a uniform sphere is a perfect impostor for a point charge at its centre. (This is the electrostatic twin of Newton's shell theorem, which cost Newton a decade; Gauss's law makes it a two-line corollary.)
Step 3. Inside (). The Gaussian sphere encloses only the charge within radius — the fraction of volume :
Why linear in ? Enclosed charge grows as while the meter's area grows as ; the quotient grows as . At the exact centre, — every direction is balanced.
Step 4. Stitch and read the profile. At both formulas give : continuous, with a kink (the slope changes sign) marking where new charge stops accruing. The profile — linear ramp up to the surface, inverse-square decay beyond — is one of the half-dozen most reused curves in physics: it is also the gravitational field inside a uniform planet and the classical field inside a uniformly charged nucleus. A corollary drops out free: for a hollow shell, the interior Gaussian sphere encloses nothing, so everywhere inside — perfect shielding by symmetry alone, and the working principle of the Cavendish null tests of the inverse square. Verified: matches Griffiths Example 2.3 and Problem 2.8 (eqs. 2.8–2.9 family); continuity at checked; worked example 2 runs the numbers (, , N/C at for nC, cm); shell corollary matches the Cavendish-test geometry.
Limiting cases
| case | result | meaning |
|---|---|---|
| point charge | the law contains its own seed | |
| no enclosed charge | through any closed surface | fields pass through charge-free bags untaxed |
| uniform sphere, | exact point impostor — shell theorem for free | |
| uniform sphere, | linear ramp; zero at the centre | |
| hollow shell, inside | everywhere | shielding; the Cavendish inverse-square test |
| at fixed | inside region vanishes; pure | the point charge recovered as a limit |
| no symmetry | law true, field underdetermined | one equation cannot yield three components |
Worked examples
1 · Reading the charge-meter (confidence builder)
A closed surface encloses charges nC and nC; a third charge nC sits just outside. (a) Find the net flux through the surface. (b) What changes if the surface is deformed into a shape three times larger, still enclosing the same two charges?
Step 1. The enclosed budget: nC. The nC outsider contributes fields everywhere but zero net flux.
Step 2. Gauss's law: V·m.
Step 3. Read the sign: negative net flux means more field lines enter than leave — the bag holds a net shredder, as a net negative charge should be.
Step 4. Deform the surface: nothing changes. Shape, size, and the positions of the two insiders (so long as they stay inside) are all invisible to the meter: still V·m. What would change: sliding the nC charge inside would jump the reading to V·m the instant it crosses the skin.
Answer: V·m, independent of the surface's shape and size; the outside charge affects the field on the surface but not the flux through it.
2 · The charged sphere, numbers in (exam level)
A solid sphere of radius cm carries nC uniformly. Find at cm, at the surface, and at cm; then find where inside the field equals its value at cm.
Step 1. Outside formula at cm: N/C.
Step 2. Surface (): N/C — the profile's peak.
Step 3. Inside at cm, the linear formula: N/C — exactly half the surface value, as demands on a linear ramp.
Step 4. The matching point. Inside, ; set equal to : , so cm. The field at cm depth-from-centre equals the field at cm outside — the profile crosses each value once on the ramp and once on the tail (except the peak).
Step 5. Sanity audit: density ; a Gaussian sphere at cm encloses nC, and N/C. ✓ Same answer by direct enclosed-charge bookkeeping — the formula and the ritual agree.
Answer: N/C at 5 cm (inside), N/C at the surface, N/C at 20 cm; the interior matching point for the 20 cm value is cm.
Origins · 1 minCarl Friedrich Gauss and how this was discovered
Gauss came to flux through planets, not charges. Directing the Göttingen observatory for nearly half a century, he built the mathematics of attraction — how a body pulls when its mass is spread over a volume — and his 1813 theorem relating a field's flux through a closed surface to the sources within was proved for gravity. That the same statement governs electricity is the deepest kind of free lunch: both forces are inverse-square, and the theorem is really about inverse-square geometry, indifferent to what is doing the attracting. Legendarily exacting ("few, but ripe" was his motto for publications), Gauss left the electric version to be formalized in his 1830s potential-theory work with his young collaborator Wilhelm Weber, with whom he also built one of the first working telegraphs and mapped the Earth's magnetic field through a network of observatories — geomagnetic flux audits on a planetary Gaussian surface. Maxwell placed the law first among his equations, where it has stood ever since.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §2.2.1–2.2.3 · Purcell & Morin, Electricity and Magnetism, 3rd ed., §1.10–1.13 · Jackson, Classical Electrodynamics, 3rd ed., §1.3–1.4 · Zangwill, Modern Electrodynamics, §3.3–3.4 · Feynman Lectures on Physics, Vol. II, Ch. 4–5
Provenance. The law and flagship results are standard: assembly from point-charge flux plus superposition (Griffiths §2.2.1, eq. 2.13; Jackson §1.3), uniform-sphere fields inside and outside (Griffiths Example 2.3 and Problem 2.8), shell shielding and its role in inverse-square null tests (Jackson §I.2; Williams–Faller–Hill 1971). A verifier should recompute: V·m for nC with F/m; the sphere numbers , , N/C at cm for nC, cm, and the interior matching point cm; ; continuity of the two branches at . The line-charge one-liner cross-checks the direct integration of the continuous-distributions article.
Builds on: Electric Flux · Superposition Principle for Electric Fields · Electric Field Lines · Continuous Charge Distributions Leads to: Gauss's Law in Differential Form · Applications of Gauss's Law and Symmetry · The Curl of the Electrostatic Field · Electrostatic Potential
Is Gauss's law more fundamental than Coulomb's law, or just a repackaging?
In electrostatics they are logically equivalent — each derives from the other — so there "repackaging" is fair. The hierarchy appears the moment charges move: Coulomb's law fails for moving and accelerating charges (fields retard, magnetic effects appear), while Gauss's law remains exactly true at every instant, radiation and all. That is why Maxwell's equations contain Gauss's law verbatim and contain Coulomb's law only as a static solution. Physicists therefore rank Gauss's law as the fundamental statement: it is the piece of inverse-square physics that survives every generalization — including, reformulated, quantum electrodynamics.
If the outside charge's flux cancels, why do textbooks insist E in the integral includes it?
Because the cancellation is a property of the integral, not of the integrand, and forgetting that distinction breaks the tool. When you attempt the symmetric collapse , you are making claims about the integrand — that it is constant and normal over the surface. An external charge wrecks those claims even though it leaves the total flux untouched: with a big charge nearby, the field on your "symmetric" sphere is no longer uniform, the collapse is illegal, and equation (2) computes nonsense. The honest statement: Gauss's law (1) is always true with the total field; the solver (2) additionally requires that the total field respect the symmetry — which in practice means all significant charges must share it.
What exactly qualifies as a "Gaussian surface"? Do I have to build something?
Nothing is built — a Gaussian surface is a purely imaginary closed surface you draw through space wherever it pleases you, existing only in the calculation. Any closed surface works for the law; the craft is choosing one that makes the integral trivial for the tool: pass it through the points where you want the field, orient it so the field is everywhere either parallel to the normal (constant magnitude, by symmetry) or perpendicular to it (zero contribution). Concentric spheres, coaxial cylinders, straddling pillboxes — the three families that ever succeed. Two hygiene rules: it must be genuinely closed, and it should not pass exactly through a point charge or surface charge layer (where the field is undefined or discontinuous — displace it infinitesimally instead).
Does Gauss's law hold inside materials, where there are atoms and bound charges everywhere?
Yes, exactly — with meaning all charge inside: free electrons, ions, and every microscopic bound charge of every polarized atom. That completeness is also why the vacuum form becomes awkward in matter: tracking bound charges is hopeless. The dielectrics tier will define the auxiliary field whose Gauss law counts only the free charge, letting the bound charge hide inside the definition — a bookkeeping upgrade, not a modification of physics. The vacuum law you learned here is never violated; it is merely re-dressed for crowded rooms.
The shell theorem took Newton years — why does Gauss's law get it in two lines?
Because the two-line proof spends capital that took a century to accumulate. Newton, working with pairwise forces, had to integrate the pull of every mass element of the shell over solid angles — hard calculus (legend holds it delayed the Principia). Gauss's law repackages the inverse square as flux conservation once, in full generality; after that, any spherically symmetric question reduces to bookkeeping. The moral is genuine, not rhetorical: a good conservation law is compressed calculus — you pay the integration cost one time, in the theorem, and every subsequent application rides free. The divergence theorem behind the next article is the same trade at one level higher.
Do the sphere formulas work for a sphere whose density varies with radius?
Half of them, and it is worth seeing which half. Any radial density preserves spherical symmetry, so the ritual survives: the field is radial and still holds, with now doing real work. Outside, the impostor theorem is untouched — only total matters. Inside, the linear ramp is special to uniform density: gives , a hollow-centred profile gives interior zeros, and so on. What breaks everything is angular dependence, : then no Gaussian surface carries constant field, and you are back to honest superposition. Symmetry of the source, not sphericity of the surface, is the license.
What happens if a point charge sits exactly on my Gaussian surface?
The law's premises fracture: the field diverges at the charge, the flux integral becomes improper, and "enclosed or not" is genuinely ambiguous — so the honest answer is that the configuration is ill-posed and you should move the surface infinitesimally to one side or the other, which changes the flux by the full jump. (A limiting argument gives the half-answer for a smooth surface through the charge — the charge subtends half the sky — a cute result occasionally asked in orals, but it depends on the surface being locally flat there.) For surface charge layers, the same care applies: Gaussian pillboxes are always drawn straddling the layer, never coincident with it — which is exactly how the field-discontinuity boundary conditions of the next tier are derived.