Course note. This guide is for the calculus-based Physics C: Electricity and Magnetism course, Topic 8.6. Gauss’s law is not part of the algebra-based Physics 2 course. You will need to set up and evaluate integrals here.
Constant used throughout: ε₀ = 8.85 × 10⁻¹² C²/(N·m²), so 1/(4πε₀) = 8.99 × 10⁹ N·m²/C².
From flux to Gauss’s law
In Topic 8.5 you met electric flux, Φ_E. For a small patch of surface with area vector dA, the flux through it is E·dA. The total flux through a surface is the surface integral:
Φ_E = ∫ E·dA
For a closed surface, dA always points outward. Field lines leaving the surface give positive flux; lines entering give negative flux.
Now put a point charge q at the centre of a sphere of radius r. On the sphere, E is radial with constant magnitude q/(4πε₀r²), and it is parallel to dA everywhere. So:
Φ_E = E × (area) = [q/(4πε₀r²)] × 4πr² = q/ε₀
The r cancels. The flux does not depend on the size of the sphere. This is because E falls as 1/r² while the area grows as r². The same field lines cross every closed surface around the charge, whatever its size or shape. That idea gives Gauss’s law:
Φ_E = ∮ E·dA = q_enc / ε₀
- The circle on the integral means the surface is closed (a Gaussian surface is a 3D closed surface).
- q_enc is the net charge inside the surface. Charges outside add nothing to the net flux.
- If q_enc stays the same, the flux stays the same when you enlarge or reshape the surface.
Gauss’s law is the first of Maxwell’s equations, so it is true for every closed surface. It is only useful for finding E when symmetry lets you take E out of the integral.
Choosing a Gaussian surface
Choose the surface so that, on each part of it, E is either:
- perpendicular to the surface (parallel to dA) with constant magnitude, so E·dA = E dA and the integral becomes E × area; or
- parallel to the surface (perpendicular to dA), so E·dA = 0 there.
| Symmetry of the charge | Gaussian surface | ∮E·dA becomes |
|---|---|---|
| Spherical (point, sphere, shell) | concentric sphere, radius r | E(4πr²) |
| Cylindrical (long line, long cylinder) | coaxial cylinder, radius r, length L | E(2πrL); the end caps give zero |
| Planar (large sheet or slab) | “pillbox” cylinder through the sheet, end area A | 2EA for a thin sheet; the curved side gives zero |
The course expects you to apply Gauss’s law quantitatively only to point charges and to distributions with spherical, cylindrical or planar symmetry. For a cube or a finite rod, the law is still true but E is not constant over any simple surface.
Standard results
Uniformly charged solid sphere (insulator), total charge Q, radius R, density ρ = Q / [(4/3)πR³].
- Outside (r ≥ R): q_enc = Q, so E(4πr²) = Q/ε₀ and E = Q/(4πε₀r²). It looks exactly like a point charge at the centre.
- Inside (r < R): only the charge within radius r counts: q_enc = ρ(4/3)πr³ = Q r³/R³. Then E(4πr²) = Q r³/(ε₀R³), so E = Q r /(4πε₀R³) = ρr/(3ε₀). E grows linearly from zero at the centre.
Infinite line charge, charge per length λ. A coaxial cylinder of length L encloses λL. Only the curved side has flux: E(2πrL) = λL/ε₀, so E = λ/(2πε₀r).
Infinite sheet, charge per area σ. A pillbox with end area A encloses σA. Field lines leave through both ends: 2EA = σA/ε₀, so E = σ/(2ε₀), the same at every distance.
Non-uniform charge density
If the density changes with r, you cannot multiply ρ by a volume. Instead, split the charge into thin shells. A spherical shell of radius r′ and thickness dr′ has volume dV = 4πr′² dr′ and charge dq = ρ(r′) 4πr′² dr′. Then:
q_enc(r) = ∫₀ʳ ρ(r′) 4πr′² dr′
Use dV = 2πr′L dr′ for a cylinder, and dA = 2πr′ dr′ for a flat disc with surface density σ(r′). The Gaussian surface step is unchanged: E(4πr²) = q_enc(r)/ε₀.
Worked example 1: uniform sphere, inside and outside
Question. An insulating sphere of radius R = 0.10 m carries a charge Q = 4.0 × 10⁻⁹ C spread uniformly through its volume. Find E at r = 0.050 m, at the surface and at r = 0.20 m.
- Inside (r = 0.050 m): E = Qr/(4πε₀R³) = (8.99 × 10⁹)(4.0 × 10⁻⁹ C)(0.050 m) ÷ (0.10 m)³ = 1798 N/C.
- Surface (r = R): E = Q/(4πε₀R²) = (8.99 × 10⁹)(4.0 × 10⁻⁹) ÷ (0.10)² = 3596 N/C. The inside formula with r = R gives the same value.
- Outside (r = 0.20 m): E = Q/(4πε₀r²) = (8.99 × 10⁹)(4.0 × 10⁻⁹) ÷ (0.20)² = 899 N/C.
Answer. 1.8 × 10³ N/C, 3.6 × 10³ N/C and 9.0 × 10² N/C, all directed radially outward (2 significant figures, matching the data).
Check. Halving r inside halves E (E ∝ r). Doubling r outside quarters E (E ∝ 1/r²). The two formulas agree at r = R, so E is continuous, as it must be for a volume charge with no surface layer.
Worked example 2: a non-uniform sphere, ρ = ρ₀ r/R
Question. A sphere of radius R has charge density ρ(r) = ρ₀ r/R for r ≤ R, where ρ₀ is a positive constant. (a) Find the total charge. (b) Find E inside and outside. (c) Check the limits. (d) Evaluate E(R) for ρ₀ = 2.0 × 10⁻⁶ C/m³ and R = 0.30 m.
(a) Enclosed charge. Use thin shells:
q_enc(r) = ∫₀ʳ (ρ₀ r′/R) 4πr′² dr′ = (4πρ₀/R) ∫₀ʳ r′³ dr′ = (4πρ₀/R)(r⁴/4) = πρ₀r⁴/R
At r = R this gives the total charge Q = πρ₀R³.
(b) Field. Use a concentric spherical Gaussian surface of radius r. By symmetry E is radial and has the same size everywhere on it, so ∮E·dA = E(4πr²).
- Inside: E(4πr²) = πρ₀r⁴/(Rε₀), so E = ρ₀r²/(4ε₀R).
- Outside: E(4πr²) = πρ₀R³/ε₀, so E = ρ₀R³/(4ε₀r²).
(c) Limiting cases.
- At r = R: inside gives ρ₀R²/(4ε₀R) = ρ₀R/(4ε₀); outside gives ρ₀R³/(4ε₀R²) = ρ₀R/(4ε₀). They match, so E is continuous.
- At the centre, r → 0: E → 0, as symmetry requires.
- For large r: ρ₀R³/(4ε₀r²) = (πρ₀R³)/(4πε₀r²) = Q/(4πε₀r²), the field of a point charge Q.
- At r = R/2: q_enc is (1/2)⁴ = 1/16 of Q, so E = (1/16) × 4 = 1/4 of E(R). Compare E ∝ r for a uniform sphere, where the ratio would be 1/2.
(d) Numbers. E(R) = ρ₀R/(4ε₀) = (2.0 × 10⁻⁶ C/m³)(0.30 m) ÷ (4 × 8.85 × 10⁻¹² C²/(N·m²)) = 1.69 × 10⁴ N/C. The total charge is Q = π(2.0 × 10⁻⁶)(0.30)³ = 1.70 × 10⁻⁷ C.
Interpretation. Most of the charge sits near the surface, so the field stays small deep inside and rises steeply (as r²) near r = R. Figure 1 shows this as the dashed curve.
Conductors: a pointer to Unit 10
Gauss’s law also explains why the field inside a conductor in electrostatic equilibrium is zero, why excess charge sits on its surface and how a closed conducting shell shields its inside from outside fields. Those ideas belong to Topic 10.1, Electrostatics with Conductors, and are not needed for this topic’s questions.
Common misconceptions
- “Zero flux means zero field.” Zero net flux means zero enclosed charge. Outside charges still produce a field on the surface.
- “Charges outside the surface do not affect E.” They do not affect the net flux, but they do change E at each point. That is why symmetry is essential before you write ∮E·dA = E × area.
- Using Q instead of q_enc inside a body. Inside a sphere only the charge within radius r counts.
- Multiplying ρ by a volume when ρ varies. For ρ(r) you must integrate ρ dV.
- Counting the cylinder’s end caps for a line charge. E is parallel to the end caps, so their flux is zero.
- Using σ/ε₀ for an isolated sheet. A thin sheet sends flux out of both faces of the pillbox: E = σ/(2ε₀).
- “The sheet’s field weakens with distance.” For an infinite sheet, E does not depend on distance. It is a good model only close to a large sheet.
- Using Gauss’s law on shapes without symmetry. The law is true for a cube of charge, but you cannot pull E out of the integral.
Where this leads
Gauss’s law is the first of Maxwell’s equations. Next you will integrate these fields to find electric potential (Unit 9), use Gauss’s law to analyse conductors and capacitors (Unit 10), and meet its magnetic partner, Ampère’s law (Topic 12.4), which uses the same symmetry thinking. Practise now with the practice questions, then use the revision notes and the topic checklist.
Quick questions
Is Gauss's law part of Physics 2?
No. Gauss's law is in the calculus-based Physics C: Electricity and Magnetism course (Topic 8.6). The algebra-based Physics 2 course covers electric fields without Gauss's law.
If the net flux is zero, is the field zero on the surface?
Not necessarily. Zero net flux means zero enclosed charge. A charge outside the surface still creates a field on it; its field lines enter and leave, so their contributions to the flux cancel.