Gauss’s law · boundary condition

Gaussian pillbox

Vacuum · z = 0
Caps & normals n̂Curved sideField E · y = 0 sliceCharge: pink + / cyan −

Flux of ε₀E

nC
Infinite sheet · λ = 4 m · k = 2π/λ
A = πR² = m²   ·   Qenc = A η̄ = nC

Upper cap · n̂ = +ẑ

Φ+ = ∫cap ε₀Ez(x, h/2) dA

Lower cap · n̂ = −ẑ

Φ− = −∫cap ε₀Ez(x, −h/2) dA

Curved side · n̂ = r̂

Φside = ∫∫ ε₀E · r̂ R dθ dz

Total outward flux

Φ+ + Φ− + Φside = Qenc

Boundary condition

ε₀[Ez(x, 0⁺) − Ez(x, 0⁻)] = η(x)
Cap flux / A, now nC/m²
Disk average η̄ · h → 0 limit nC/m²
Center density η(x₀) nC/m²

Finite R averages η over the disk; R → 0 gives η(x₀).

Flux vs. height

← h → 0
Φcaps = nCΦside = nCΦtotal = nC
Model & exact integrals

Prescribed charge on an infinite plane in vacuum, with no external field or volume charge. Height uses a logarithmic slider; its left endpoint is the analytic h → 0 limit.

η(x) = η₀ [1 + a cos(kx)]
Ex = η₀ a sin(kx) e−k|z| / (2ε₀)
Ey = 0
Ez = sgn(z) η₀ [1 + a cos(kx) e−k|z|] / (2ε₀)
C = cos(kx₀) 2J₁(kR)/(kR),   η̄ = η₀(1 + aC)
Φ+ = Φ− = Aη₀ [1 + aC e−kh/2] / 2
Φside = Aη₀ aC [1 − e−kh/2]
Φtotal = Aη₀(1 + aC)

For the sinusoidal sheet, J₁ is the first-order Bessel function. The side expression follows by integrating ε₀Excosθ over the cylindrical wall. For bounded E, its flux vanishes with h because the wall area is 2πRh. The cap area stays fixed. At h = 0 the displayed values are limits of the closed surfaces; the collapsed disk is not itself a closed Gaussian surface.

For a uniform sheet (a = 0), the field is normal everywhere: side flux is already zero at any height. For a varying sheet, side flux can be positive or negative depending on where the cylinder is centered. The arrows show field direction with compressed lengths for visibility; all geometry uses a common spatial scale. ε₀ = 8.8541878128 × 10⁻¹² F/m.