Sub topic 9
Using symmetry to pick a Gaussian surface
Gauss's law holds for every closed surface, but it only solves for the field when you choose the surface well. This chapter explains how to recognise the symmetry of a charge distribution and pick a surface that makes the flux integral easy. It assumes you know electric flux, the statement of Gauss's law, and basic vector components.
Why Gauss's law needs symmetry
Gauss's law says that the total flux through a closed surface equals the enclosed charge divided by ε₀:
∮ E · dA = q_enclosed / ε₀
The field E sits inside the integral. In general you cannot pull it out, so you cannot solve for it. If you can choose a surface where E has a constant magnitude and a known angle to dA, then the integral becomes E times an area, and you can solve for E directly.
The law is always true. Symmetry only decides whether it is useful for finding E.
What symmetry tells you about the field
Before choosing a surface, use the symmetry of the charges to predict the field. You need two facts:
- The direction of E at each point.
- Which coordinates E depends on.
The charge distribution looks the same after certain rotations or translations. The field must look the same too, because the field is fixed by the charges. That restricts both direction and magnitude.
| Symmetry | Charge example | E depends on | Direction of E | Gaussian surface |
|---|---|---|---|---|
| Spherical | Point charge, shell, solid sphere with ρ(r) | Distance r from the centre | Radial | Concentric sphere |
| Cylindrical | Infinite line, long cylinder | Distance s from the axis | Radially outward from the axis | Coaxial closed cylinder |
| Planar | Infinite sheet, large plate | Distance x from the plane | Perpendicular to the plane | Cylinder (pillbox) crossing the plane |
The two conditions a good surface must meet
On each part of the Gaussian surface, one of these must hold:
- E is perpendicular to the surface with constant magnitude, so the flux is E·A.
- E is parallel to the surface, so the flux is zero.
- E is zero on that part, so the flux is zero.
If every piece of the surface satisfies one of these, the integral reduces to a sum of simple terms. Also make sure the surface passes through the point where you want E. A surface that does not contain the field point tells you nothing about E there.
Worked example: line charge
An infinite line carries linear charge density λ. By symmetry, E points radially away from the line and depends only on the distance s from it. Why can E have no component along the line? For every charge element on one side of a point, an equal element lies on the other side, and their axial components cancel.
Take a coaxial cylinder of radius s and length L.
- On the curved surface, E is perpendicular to the surface and constant, so the flux is E(2πsL).
- On the two end caps, E is parallel to the surface, so the flux is zero.
- The enclosed charge is λL.
Setting the flux equal to q/ε₀:
E(2πsL) = λL / ε₀, so E = λ / (2πε₀ s)
The length L cancels, as it should.
A procedure you can reuse
- Identify the symmetry and state the direction of E.
- Choose a closed surface through the field point, with faces either perpendicular or parallel to E.
- Evaluate the flux face by face.
- Find q_enclosed. For a non-uniform density, integrate ρ dV over the enclosed region.
- Solve for E and check the direction and units.
Checking with code
The function below finds the field of an infinite line charge and of a charged long cylinder, using the coaxial surface. It also shows how the enclosed charge changes with the radius of the surface.
import math
EPS0 = 8.854e-12 # C^2 / (N m^2)
def field_uniform_cylinder(s, rho, R):
"""Radial field of a long, uniformly charged insulating cylinder.
rho is the volume charge density (C/m^3), R is the cylinder radius (m),
s is the distance from the axis (m).
"""
if s < R:
q_per_length = rho * math.pi * s**2 # charge inside radius s, per metre
else:
q_per_length = rho * math.pi * R**2 # all the charge, per metre
return q_per_length / (2 * math.pi * EPS0 * s)
rho, R = 1e-6, 0.05
for s in (0.02, 0.05, 0.10):
print(s, field_uniform_cylinder(s, rho, R))Inside, E grows linearly with s. Outside, E falls as 1/s. At s = R the two expressions agree, which is a quick consistency check.
Common errors
- Using a sphere for a finite or non-symmetric object. A cube, a short rod or a finite disc does not give a constant E on a sphere. The result looks tidy but is wrong.
- Forgetting the end caps. For a cylinder, the end caps contribute zero only because E is parallel to them. For a pillbox on a sheet, the curved side contributes zero for the same reason.
- Counting charge outside the surface. Only q_enclosed appears in the law. Outside charges still affect E, but they contribute zero net flux. In symmetric problems, their effect is already built into the symmetric E.
- Treating the infinite-sheet field as general. The result E = σ/(2ε₀) applies close to a large sheet, far from its edges.
- Using Gauss's law with a conductor's surface charge inside the cavity. Include the induced charge on the inner surface when it lies inside your surface.
Checking the symmetry argument
A short argument often settles the direction. Suppose E had a component pointing along the axis of an infinite line. Rotating the line by 180° about a perpendicular axis through the field point gives the same charge distribution, but reverses that component. The field cannot both reverse and stay the same, so that component must be zero. The same reasoning removes any tangential component for spherical and cylindrical symmetry.
Exercise
A long solid cylinder of radius R carries a uniform volume charge density ρ. Find the field at distance s < R from its axis, and state the Gaussian surface and the faces that give zero flux.
Show answer
Use a coaxial closed cylinder of radius s and length L. E is radial, so the end caps have zero flux, and the curved surface has flux E(2πsL). The enclosed charge is ρπs²L. Gauss's law gives E(2πsL) = ρπs²L/ε₀, so E = ρs/(2ε₀), directed radially outward for ρ > 0. It grows linearly with s.
Exercise
Why can you not use a sphere as a Gaussian surface to find the field of a finite uniformly charged rod at a point near its middle?
Show answer
The rod lacks spherical symmetry. The field magnitude differs at different points on a sphere centred on the rod, and its direction is not perpendicular to the sphere everywhere. So E cannot be taken out of the flux integral, and Gauss's law cannot be solved for E, although it still holds.