Sub topic 10
Gauss's law and the choice of Gaussian surface
This chapter assumes you know electric flux (Φ = E·A cos θ), the electric field of a point charge, and how to take a dot product. It also assumes you are comfortable with the idea of integration as summation.
The statement of Gauss's law
Gauss's law relates the net electric flux through a closed surface to the charge inside it:
Φ = ∮ E · dA = q_enc / ε₀
- A Gaussian surface is an imaginary closed surface you choose. It does not need to be a real object.
- q_enc is the algebraic sum of the charges inside the surface, with signs.
- E is the total field at each point of the surface. It includes the field from charges inside and outside.
- ε₀ ≈ 8.85 × 10⁻¹² C²/(N·m²).
The law holds for any closed surface and any charge arrangement. It is a restatement of Coulomb's law, which works because the field of a point charge falls as 1/r² and the area of a sphere grows as r².
Why outside charges do not change the flux
A charge outside the surface sends field lines in through one part of the surface and out through another. The inward flux is negative and the outward flux is positive, and they cancel. So the net flux depends only on q_enc.
The field at the surface still depends on outside charges. Only the total flux ignores them. This is the most common source of confusion, so keep the two ideas separate.
Choosing a Gaussian surface
A good surface satisfies one of these conditions on every part of it:
- E is perpendicular to the surface and has the same magnitude everywhere on that part. Then E · dA = E dA, and the integral gives E times the area.
- E is parallel to the surface. Then E · dA = 0 and that part adds no flux.
- E is zero on that part.
Then ∮ E · dA reduces to E × (area where condition 1 holds), and you solve for E.
| Charge symmetry | Gaussian surface | Area where E is constant |
|---|---|---|
| Point charge, sphere, spherical shell | Concentric sphere | 4πr² |
| Infinite line charge | Coaxial cylinder of length l | 2πrl (curved side) |
| Infinite plane sheet | Cylinder ("pillbox") through the sheet | 2A (two flat ends) |
The chapters that follow use these three choices in detail. Here we build the method with a point charge.
Worked example: a point charge
Take a point charge q at the centre of a sphere of radius r.
- By symmetry, E points radially and has the same magnitude on the whole sphere.
- E and dA are parallel, so ∮ E · dA = E × 4πr².
- Gauss's law gives E × 4πr² = q/ε₀.
- So E = q / (4πε₀r²), which is Coulomb's field.
The same steps fail for a cube with a charge at its centre. The field is not uniform in magnitude over the faces, so E cannot be pulled out of the integral. Gauss's law is still true for the cube, and the total flux is still q/ε₀. It just does not give you E directly.
Using the law for total flux
Sometimes you only need the flux. Then no symmetry is needed. Just find q_enc.
EPS0 = 8.85e-12 # C^2 / (N m^2)
def net_flux(charges_inside):
"""Net flux in N m^2/C through a closed surface, given signed charges inside in coulombs."""
return sum(charges_inside) / EPS0
# +3 uC and -1 uC inside a closed surface; a +5 uC charge outside does not count
print(net_flux([3e-6, -1e-6])) # about 2.26e5 N m^2/CThe outside charge never appears in the function. That mirrors the physics: it contributes zero net flux.
Common errors
- Counting charges outside the surface in q_enc.
- Forgetting the sign of a charge when summing qenc. A net negative qenc gives negative (inward) flux.
- Using E = q_enc/(ε₀A) for a surface that does not match the symmetry.
- Treating the Gaussian surface as if it must lie on a real object. It can lie inside or outside matter.
- Using the wrong area. For a cylinder around a line charge, the end caps have E parallel to the surface, so only the curved side counts.
Exercise
A closed surface contains charges +4 µC and −6 µC. A +10 µC charge lies outside it. Find the net flux through the surface. Use ε₀ = 8.85 × 10⁻¹² C²/(N·m²).
Show answer
Only enclosed charges count: qenc = 4 µC − 6 µC = −2 µC = −2 × 10⁻⁶ C. Flux = qenc/ε₀ = −2 × 10⁻⁶ / 8.85 × 10⁻¹² ≈ −2.26 × 10⁵ N·m²/C. The negative sign means the net flux is inward. The outside charge adds nothing to the net flux.
Exercise
A point charge q sits at the centre of a cube. What is the flux through one face, and which property of the situation lets you find it without integrating?
Show answer
The total flux through the cube is q/ε₀. The cube has six identical faces, and the charge is at the centre, so symmetry makes the flux through each face equal. Each face gets q/(6ε₀).