1.8.6 · D3Electromagnetism

Worked examples — Gauss's law — integral form, choosing Gaussian surfaces

3,156 words14 min readBack to topic

This page is the exercise gym for the parent Gauss's law note. We don't teach new theory here — we grind through every kind of situation the law can hand you, so that when an exam invents a "new" problem, you recognise which cell of the matrix it lives in.

Everything below rests on the one boxed law:

If any symbol here feels unfamiliar, pause and reread the parent — this page assumes you already met Electric flux (the "how many field lines poke out" quantity), Coulomb's law (the field of a point charge), and the symmetry-matching rule for picking surfaces.


The scenario matrix

Before working examples, let's name every case class this topic can produce. Each cell is a distinct kind of trap. The examples that follow are labelled by the cell(s) they cover.

# Case class What's different about it Covered by
A Positive point charge (baseline sphere) field points outward, flux Ex 1
B Negative charge / sign flip field points inward, flux Ex 2
C Charge outside the surface (degenerate: ) flux is exactly zero though Ex 2
D Line symmetry, field far vs near , caps give zero Ex 3
E Planar symmetry, factor-2 trap constant, both faces leak Ex 4
F Solid sphere, two regions ( and ) limiting values, continuity at Ex 5
G Spherical shell / cavity (degenerate: empty inside) inside, jump outside Ex 6
H Conductor vs insulated sheet ( vs ) which geometry gives which factor Ex 7
I Real-world word problem translate SI numbers, get a real force Ex 8
J Exam twist — off-centre / non-uniform law valid but not solvable; reasoning-only Ex 9

We hit every row. Let's go.


Example 1 — Positive point charge (cell A)

Forecast: Guess before reading — will the flux depend on the radius you pick? Will it be positive or negative?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s01 — A positive charge (coral dot) at the centre of a dashed Gaussian sphere of radius ; lavender arrows show pointing radially outward, all equal in length on the circle.

  1. Pick a concentric sphere of radius . Why this step? The charge has spherical symmetry, so can only depend on and must point radially (look at the lavender arrows in the figure — all the same length on the dashed circle). This is the only surface on which is constant and parallel to .
  2. Write flux . Why this step? Because everywhere (, so ) and is constant, , where is the whole area of .
  3. Set equal to and solve. Why this step? is the Coulomb constant — we just recovered Coulomb's law.
  4. Total flux . Why this step? The total flux is the right-hand side of Gauss's law read directly: the whole surface integral just equals , so we don't even need — the flux depends only on the trapped charge.
Recall Verify Example 1

Units of : ✓. The flux answer contains no — pick any radius, same flux. Forecast check: flux is (charge positive), independent of . ✓


Example 2 — Negative charge, and a charge outside (cells B & C)

Forecast: Which of these gives zero flux? Which gives negative flux?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s02 — Left: negative charge (lavender) with coral arrows pointing inward, so net flux is negative. Right: a positive charge sits outside a dashed surface ; mint field lines pass straight through, entering and leaving, for zero net flux.

Part (a):

  1. Flux . Why? Gauss's law doesn't care about sign — plug the signed charge straight in.
  2. Interpret the minus. Why this step? Negative flux means field lines point into the surface — the coral inward arrows in the figure. A negative charge swallows field lines.

Part (b):

  1. Identify . Why? Gauss counts only charge inside the closed surface . The nC is outside, so .
  2. Conclude . Why this step? Look at the right panel: each field line that enters the surface on one side leaves on the other. Enter , leave , they cancel in pairs. The field on the surface is not zero — but the net flux is.
Recall Verify Example 2

(a) Sign matches: negative charge → negative flux ✓. (b) exactly, even though pointwise — this is the classic degenerate case C. ✓


Example 3 — Infinite line charge, near and far (cell D)

Forecast: Doubling the distance — does drop by a factor of 2, or 4?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s03 — A coral line charge along the axis, wrapped by a dashed coaxial cylinder of radius and length ; mint arrows show pointing radially outward through the curved wall, while the flat end caps face along the axis and catch no flux.

  1. Coaxial cylinder, radius , length . Why? Line symmetry: depends only on distance from the wire and points straight out (mint arrows). A cylinder shares that symmetry.
  2. Curved wall: flux . Why? On the wall and constant; here the wall area is .
  3. End caps: flux . Why? On the flat caps (radial) is perpendicular to (axial). .
  4. Solve with : Why cancels? Both the trapped charge and the wall area grow with .
  5. Plug numbers:
Recall Verify Example 3

Ratio . Because (not ), doubling halves — forecast answer is factor 2. ✓


Example 4 — Infinite charged sheet, the factor-2 trap (cell E)

Forecast: Will the field be weaker at 10 cm than just above?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s04 — A coral charged sheet with a dashed pillbox straddling it; butter arrows show leaving both flat caps (each of area ) perpendicular to the sheet, while the side wall is parallel to the field and catches no flux.

  1. Pillbox straddling the sheet, cap area . Why? Planar symmetry: field is perpendicular to the sheet, same on both sides. A symmetric box captures that. Here is the area of one flat cap of the box.
  2. Two caps leak, side wall gives zero. Why? Field exits both faces (butter arrows point away on each side) → total cap flux . The wall is parallel to → zero.
  3. Solve with : Why does vanish? It multiplies both sides — the answer can't depend on the size of box we imagined.
  4. At 10 cm: still N/C. Why unchanged? No in the answer — an infinite plane gives a uniform field.
Recall Verify Example 4

Answer contains no distance → same at 0 cm and 10 cm. Forecast answer: no, it stays the same ✓. Note the factor 2 from two faces.


Example 5 — Solid sphere: inside and outside (cell F, limiting values)

Forecast: Does grow or shrink as you move outward from the centre, inside the ball?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s05 — A lavender solid charged ball of radius , with a coral dashed Gaussian sphere inside () enclosing only part of the charge, and a mint dashed sphere outside () enclosing all of it; mint arrows show the external field.

  1. Inside (): . Why? Uniform volume density → enclosed charge scales with enclosed volume , so the fraction inside radius is . At :
  2. Outside (): (all of it). At :
  3. Check continuity at . Why? Because the charge is purely volumetric — there is no thin shell of surface charge sitting on the boundary — no extra appears exactly at , and the field cannot jump. (A surface charge would cause a jump; here there is none.) Evaluate both formulas at and compare the actual numbers: The two give the same N/C, so the field is continuous at the surface.
Recall Verify Example 5

Inside → grows linearly from at centre (forecast: grows). N/C — no jump. ✓


Example 6 — Charged spherical shell / cavity (cell G, degenerate empty inside)

Forecast: What is the field inside a hollow charged shell?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s06 — A hollow coral shell of radius carrying all the charge; the lavender cavity inside is labelled , an inner dashed Gaussian sphere encloses no charge, and mint arrows show the external field beyond the shell.

  1. Inside (): . Why? All charge lives on the shell at radius ; a Gaussian sphere of smaller radius encloses nothing. Why exactly zero everywhere inside? Symmetry forces radial and constant on the inner sphere; zero flux + constant . The cavity is field-free (lavender region in the figure).
  2. Outside (): . Why the same form as a point charge? From outside, a shell looks identical to a point charge at its centre.
Recall Verify Example 6

Inside: (forecast answer: zero — this is the shielding of a cavity, foundational to Electric field of conductors). Outside behaves like a point . ✓


Example 7 — Conductor surface vs insulated sheet (cell H)

Forecast: Same — same field? Or does one double the other?

Figure — Gauss's law — integral form, choosing Gaussian surfaces
Figure s07 — Left: an insulated sheet with butter arrows leaving both faces (field on both sides → ). Right: a conductor (lavender block, inside) with butter arrows on the outer side only (one face leaks → ).

  1. Insulated sheet: pillbox leaks from both faces. Why? Field exists on both sides, so (with = area of one cap):
  2. Conductor surface: pillbox leaks from one face only. Why? Inside a conductor (charges rearrange until it is), so the inner cap catches no flux. Only the outer cap leaks: :
  3. Compare. The conductor field is exactly twice the sheet field for the same .
Recall Verify Example 7

exactly — the factor comes purely from how many faces leak (one vs two), not from any new physics. Forecast answer: conductor doubles it.


Example 8 — Real-world word problem (cell I)

Forecast: A negative speck near a positive wire — pulled in or pushed out?

  1. Field of the line at that radius. Why start here? Force needs the field the speck sits in; use the line-charge result from Example 3.
  2. Force magnitude . Why the absolute value ? We first compute only the size of the force; (the magnitude of the charge, ignoring its sign) times gives a positive number of newtons. We handle the direction separately in the next step, so we deliberately strip the sign here to avoid double-counting it.
  3. Direction. Why? points away from the positive wire, but , so (with the sign restored) points toward the wire — the speck is pulled in. That's exactly how toner is attracted to the drum.
Recall Verify Example 8

Units: ✓. Sign of flips the force inward. Forecast answer: pulled in.


Example 9 — Exam twist: valid but not solvable (cell J)

Forecast: Does the off-centre position change the flux? Does it change your ability to solve for ?

  1. Net flux (part a). Why unchanged? Gauss counts only enclosed charge, not its position. As long as is inside the closed surface :
  2. Finding (part b). Why not solvable? The charge being off-centre breaks spherical symmetry: now varies from point to point on the surface (stronger on the near side, weaker on the far side). Because is no longer constant over , you cannot pull it out of the integral . The equation stays true, but it is one number balancing infinitely many unknown values of across the surface — so Gauss's law alone cannot give you here.
  3. What to do instead. Why switch tools? Since symmetry is gone, use Coulomb's law / superposition directly for ; keep Gauss only for the total flux. Conclusion: flux is fixed at , but the field is not obtainable by Gauss's law without symmetry.
Recall Verify Example 9

Flux regardless of position (validity). Symmetry broken ⇒ not solvable for (usability). Forecast: flux unchanged, but not obtainable by Gauss.


Recap of the matrix coverage

Recall Which example hit which cell?

A→Ex1, B & C→Ex2, D→Ex3, E→Ex4, F→Ex5, G→Ex6, H→Ex7, I→Ex8, J→Ex9. Every cell filled.

Validity vs solvability
Gauss's law is always valid; it's only solvable for when symmetry lets you pull out of .
What does mean in ?
The closed (sealed) surface you draw yourself — imaginary, no holes or edges.
Flux of a charge outside the surface
Zero (lines enter and leave equally), even though on the surface.
Field inside a hollow charged shell
Exactly zero — the enclosed charge is zero.
Insulated sheet vs conductor surface field
(two faces leak) vs (one face; inside metal ).
Field inside a uniform solid sphere
, grows linearly from the centre.
Does off-centre charge change the enclosed flux?
No — flux is regardless of position, but becomes unsolvable by symmetry.

Related: Divergence theorem converts this integral law to the local form in Maxwell's equations; the shielding in Ex 6 underlies Electric field of conductors.