Electric Flux Density and Gauss's Law
Coulomb's law gives the field of any charge distribution, but the integrals get heavy fast. Gauss's law states the same physics in a form that is often one line long: the electric flux leaving any closed surface equals the charge inside it. It is the first of Maxwell's equations, it gives the fields of symmetric conductors (cables, spheres, plates) almost without calculation in the next lesson, and in point form it is the equation every electrostatic field solver discretises.
Electric flux density
Define the electric flux density (also called the electric displacement)
and the electric flux through a surface, , in coulombs. In free space is just a rescaled . Its value shows in materials: Dielectrics, Polarisation and Breakdown shows that depends only on the free charge you put on conductors, while also feels the bound charge of the material. For a point charge, : the charge spread over the area of a sphere. That picture, a fixed amount of flux spreading out from a charge, is the whole idea.
Gauss's law
For any closed surface (a Gaussian surface) enclosing a total free charge :
Why it holds for any shape: the flux of a point charge through a small patch of surface depends only on the solid angle the patch subtends at the charge, . A closed surface around the charge subtends the full steradians, whatever its shape, so . A charge outside the surface sends its flux in through one part and out through another, with equal solid angles, so its net contribution is zero. Superposition then extends the result to any number of charges. In the field-lines picture: lines start on positive charge and end on negative charge, so the number of lines crossing a closed surface outward, minus inward, counts the charge inside.
Applying the divergence theorem of Line, Surface and Volume Integrals; the Divergence and Stokes Theorems to the left side, for every small volume:
This point form says the divergence of is the local charge density: zero in empty space, positive where field lines begin.
Gauss's law is always true, but it gives you the field only when symmetry lets you pull out of the integral: the next lesson. For an unsymmetric problem, it is a check on the total flux, not a way to find the field.
Worked example
Given: a point charge and a cube of side .
Find: the flux through the whole cube and through one face (a) with the charge at the cube's centre; (b) with the charge at one corner of the cube; (c) with the charge outside the centre of one face.
Solve:
Check: in (b) the field is radial from the corner, so on the three faces meeting at the corner it is parallel to the face and gives no flux; all the flux leaves through the three far faces, equally by symmetry. In (c) the flux through the near face is negative (in) and the other five faces carry the same amount out.
In Python: integrate the flux face by face
dblquad integrates over each face of the cube for a charge at any position, so the law can be tested where symmetry gives no shortcut: a charge off-centre inside the cube, and one outside.
import numpy as np
from scipy import integrate
Q = 12e-9 # C
s = 2.0 # cube side, m, from (0,0,0) to (2,2,2)
def D(r, rq):
R = np.asarray(r) - np.asarray(rq)
return Q * R / (4*np.pi*np.linalg.norm(R)**3)
def face_fluxes(rq):
out = []
for axis in range(3):
for side, sign in ((s, 1), (0.0, -1)):
def f(v, u):
p = [0.0, 0.0, 0.0]
others = [k for k in range(3) if k != axis]
p[axis], p[others[0]], p[others[1]] = side, u, v
return sign * D(p, rq)[axis]
val, _ = integrate.dblquad(f, 0, s, 0, s, epsabs=1e-16, epsrel=1e-9)
out.append(val)
return np.array(out)
for label, rq in (("centre", (1, 1, 1)), ("off-centre", (0.4, 1.5, 0.7)),
("near a corner", (0.05, 0.05, 0.05)), ("outside", (3, 1, 1))):
fl = face_fluxes(rq)
print(f"{label:14s} faces (nC): {np.round(fl*1e9, 3)} total {round(fl.sum()*1e9, 3) + 0.0:7.3f} nC")centre faces (nC): [2. 2. 2. 2. 2. 2.] total 12.000 nC
off-centre faces (nC): [0.986 3.591 3.003 1.041 1.183 2.196] total 12.000 nC
near a corner faces (nC): [0.535 3.465 0.535 3.465 0.535 3.465] total 12.000 nC
outside faces (nC): [-2. 0.383 0.404 0.404 0.404 0.404] total 0.000 nC
The faces are listed in the order , , , , , (metres). The face fluxes change a lot with the charge's position, but the total is whenever the charge is inside and zero when it is outside. Near the corner, the three faces touching it share most of the flux, because the charge is not exactly at the corner: move it there and their share drops to zero, and the cube holds only one eighth.
Guided lab: Faraday's ice pail
Hand calculation. A charged object held inside a closed metal can induces an equal and opposite charge on the can's inner wall and an equal charge on its outer surface, wherever it is held inside, because a Gaussian surface inside the metal (where , see Conductors in Electrostatic Fields) must enclose zero net charge. Connect the can to a capacitor and a typical rubbed plastic strip carrying appears as .
Simulation. Gauss's law is the counting rule behind the field-lines lab: each charge there starts or ends 16 lines. Any closed curve you imagine around the dipole's two charges is crossed by as many lines going out as coming in (net charge zero); around the charge alone, 16 lines go out. Look at the dipole configuration in Gradient, Divergence, Curl and the Laplacian and count.
What you would measure. A food can on an insulating plastic block, its wall connected to one side of a film capacitor, the other side and the meter's COM to a grounded sheet. Read the capacitor with a multimeter ( input: the reading decays with a time constant of , so read it within the first second). Lower a plastic strip rubbed with a dry cloth into the can without touching it: expect a few to a few tens of millivolts, the same whether the strip is near the bottom or the middle, falling only when you lift it near the rim, where some of its flux escapes the can. The reading returns to zero when you take the strip out: the can's charge was only induced. Uncertainty is dominated by the decay and by stray charge on your hand, roughly ; the shape of the result (no dependence on position inside) is the point.
Hazards and safe setup. Rubbed plastic carries a few nanocoulombs at a few kilovolts with microjoules of energy: harmless to you, but keep it away from the multimeter's inputs and from loose electronics (ESD). No power supply is used: never charge the strip or the can from a high-voltage supply, an induction machine or a Van de Graaff generator, whose stored energy is far larger.
Pitfalls
- "Gauss's law only works for symmetric problems." It always holds; symmetry is only needed to extract the field from it.
- Charge outside affects the field, not the flux. Charges outside a Gaussian surface change on the surface, but their net flux through it is zero.
- Charge on the surface. A charge sitting exactly on the Gaussian surface is ambiguous; move the surface slightly.
- versus . Gauss's law in the form counts all charge, including bound charge in dielectrics; the form counts free charge only.
Practice
- A charge sits at the centre of one face of a cube. What flux leaves the cube?
- In a region, (metres). Find at and the charge in the cube .
- The flux leaving a closed surface is . What can you say about the charge inside?
Answer
- : two such cubes, back to back, would surround it.
- at . Charge: .
- The net charge enclosed is ; it could be any mix of charges that adds to that.
Test yourself
A point charge of sits at the centre of a cube. The flux through one face is…
The point form of Gauss's law is…
A charge sits outside a closed surface. Its contribution to the net flux through the surface is…
- positive
- negative
- zero
- proportional to its distance
In free space, the unit of is…