Part 2 · Chapter 5

Electric Flux Density and Gauss's Law

Counting how much field pierces a closed surface turns out to depend on nothing but the charge trapped inside. That single idea — Gauss's law — collapses the laborious integrals of Chapter 4 into one elegant line, and becomes the first of Maxwell's four equations.

Electromagnetic Field Theory Prof. Mithun Mondal Reading time ≈ 55 min
i What you'll learn
  • The electric flux density \(\vec{D}\) and why it is independent of the medium.
  • Electric flux \(\Psi\) as the surface integral of \(\vec{D}\).
  • Gauss's law in integral form — flux out equals charge enclosed.
  • The point (differential) form \(\nabla\cdot\vec{D} = \rho_v\), the first Maxwell equation, via the divergence theorem.
  • How to choose a Gaussian surface that matches a problem's symmetry.
  • One-line derivations for the point charge, line, sheet, coaxial cable and charged sphere.
Section 5-1

Electric Flux Density D

The field \(\vec{E}\) depends on the medium through \(\varepsilon_0\). It is often cleaner to work with a quantity that depends only on the charge, not the material: the electric flux density \(\vec{D}\), also called the electric displacement. In free space it is simply \(\vec{E}\) scaled by the permittivity:

Flux density (free space)
\[ \vec{D} = \varepsilon_0 \vec{E} \quad (\text{C/m}^2) \]

For a point charge, this gives \(\vec{D} = \dfrac{Q}{4\pi R^2}\hat{a}_R\) — notice \(\varepsilon_0\) has vanished. \(\vec{D}\) measures charge per unit area, and its field lines (called displacement or flux lines) begin and end only on charge, regardless of what medium fills the space between. This is exactly why \(\vec{D}\) is the natural object for Gauss's law.

Section 5-2

Electric Flux

Electric flux \(\Psi\) measures the amount of \(\vec{D}\)-field passing through a surface — the surface integral met in Chapter 3. For a small patch \(d\vec{S}\), only the component of \(\vec{D}\) normal to the patch contributes, which the dot product handles automatically:

Electric flux through a surface
\[ \Psi = \int_S \vec{D}\cdot d\vec{S} \quad (\text{C}) \]
dS D
Flux is the field's normal component times area, summed over the surface
Section 5-3

Gauss's Law

Gauss's law states that the total electric flux out of any closed surface equals the total charge enclosed by that surface — no more, no less. Charge outside the surface contributes nothing, because whatever flux it sends in, it takes back out.

Gauss's law (integral form)
\[ \Psi = \oint_S \vec{D}\cdot d\vec{S} = Q_{\text{enc}} = \int_v \rho_v\,dv \]
🔑
The surface only "sees" the charge inside it
\[ \oint_S \vec{D}\cdot d\vec{S} = Q_{\text{enc}} \]

The shape of the closed surface is irrelevant to the total flux — only the enclosed charge matters. The art is choosing a surface whose shape lets you pull \(\vec{D}\) outside the integral, which is what makes the law so powerful.

Section 5-4

The Point Form

Gauss's law as written relates a surface to a volume. Applying the divergence theorem from Chapter 3 to the left side converts that surface integral into a volume integral of \(\nabla\cdot\vec{D}\):

Applying the divergence theorem
\[ \oint_S \vec{D}\cdot d\vec{S} = \int_v (\nabla\cdot\vec{D})\,dv = \int_v \rho_v\,dv \]

Since this holds for any volume, the integrands must match everywhere. That gives the point (or differential) form — the first of Maxwell's equations:

Gauss's law (point form) — Maxwell's first equation
\[ \nabla\cdot\vec{D} = \rho_v \]
Two faces of one law. The integral form is for computing fields when symmetry is high; the point form is a local statement — charge density is the source (divergence) of \(\vec{D}\) at every point. They are the same physics seen globally and locally, linked by the divergence theorem. Every Maxwell equation will come in exactly this matched pair.
Section 5-5

Choosing a Gaussian Surface

Gauss's law is always true, but only useful for finding \(\vec{E}\) when you can choose a closed surface — a Gaussian surface — on which \(\vec{D}\) is either constant and normal, or zero. The right surface mirrors the symmetry of the charge, so that \(\oint \vec{D}\cdot d\vec{S}\) simplifies to \(D\) times an area.

SymmetryGaussian surfaceCoordinate
Point / sphericalConcentric sphereSpherical \(r\)
Line / cylindricalCoaxial cylinderCylindrical \(\rho\)
Sheet / planarPillbox (box straddling sheet)Cartesian
🔑
The three conditions for a good Gaussian surface
\(\vec{D}\) constant in magnitude, and either parallel or perpendicular to \(d\vec{S}\) everywhere

On faces where \(\vec{D}\perp d\vec{S}\) the flux is zero; on faces where \(\vec{D}\parallel d\vec{S}\) with constant \(D\), the integral becomes \(D\times(\text{area})\). Match those conditions and the field falls out in one step.

Section 5-6

Standard Applications

The power of Gauss's law is that the same three lines — enclose the charge, evaluate the flux as \(D\times\text{area}\), solve for \(\vec{D}\) — reproduce every result of Chapter 4 instantly, and adds new ones like the coaxial cable.

+Q D Gaussian sphere
A sphere of radius r enclosing Q: D is constant and radial over the whole surface
Point charge — Gaussian sphere
\[ D\,(4\pi r^2) = Q \;\Rightarrow\; \vec{D} = \frac{Q}{4\pi r^2}\,\hat{a}_r, \qquad \vec{E} = \frac{Q}{4\pi\varepsilon_0 r^2}\,\hat{a}_r \]
Coaxial cable — Gaussian cylinder of length L
\[ D\,(2\pi\rho L) = \rho_L L \;\Rightarrow\; \vec{D} = \frac{\rho_L}{2\pi\rho}\,\hat{a}_\rho \quad (a<\rho

Outside the outer conductor of a coaxial cable the enclosed charge is zero, so \(\vec{D}=0\) — the cable confines its field entirely between the conductors. This shielding property is exactly why coaxial cable carries signals cleanly, a point we return to in Part 6.

Section 5-7

Worked Examples

1 D from E

Problem. In free space \(\vec{E} = 6\,\hat{a}_x\ \text{V/m}\). Find \(\vec{D}\).

Solution. Multiply by \(\varepsilon_0\):

Working
\[ \vec{D} = \varepsilon_0\vec{E} = 6\,(8.854\times10^{-12})\,\hat{a}_x = 53.1\,\hat{a}_x\ \text{pC/m}^2 \]
2 Flux through a sphere

Problem. A \(+8\ \text{nC}\) charge sits at the centre of a sphere. Find the total flux \(\Psi\) leaving it.

Solution. By Gauss's law, flux equals enclosed charge, independent of radius:

Working
\[ \Psi = Q_{\text{enc}} = 8\ \text{nC} \]
3 Infinite line by Gauss

Problem. Re-derive the field of an infinite line charge \(\rho_L\) using a Gaussian cylinder.

Solution. Flux leaves only through the curved side, area \(2\pi\rho L\):

Working
\[ D\,(2\pi\rho L) = \rho_L L \;\Rightarrow\; \vec{E} = \frac{\rho_L}{2\pi\varepsilon_0\rho}\,\hat{a}_\rho \]

Same answer as Chapter 4 — but in three lines instead of an integral.

4 Uniformly charged sphere (inside)

Problem. A sphere of radius \(a\) has uniform \(\rho_v\). Find \(\vec{E}\) for \(r

Solution. The Gaussian sphere of radius \(r\) encloses only the charge within it:

Working
\[ D\,(4\pi r^2) = \rho_v\,\tfrac{4}{3}\pi r^3 \;\Rightarrow\; \vec{E} = \frac{\rho_v\,r}{3\varepsilon_0}\,\hat{a}_r \]

Inside, the field grows linearly with \(r\); outside it falls as \(1/r^2\).

5 Point form check

Problem. Given \(\vec{D} = 3x\,\hat{a}_x + 2y\,\hat{a}_y\ \text{C/m}^2\), find the volume charge density \(\rho_v\).

Solution. Take the divergence, \(\rho_v = \nabla\cdot\vec{D}\):

Working
\[ \rho_v = \frac{\partial(3x)}{\partial x} + \frac{\partial(2y)}{\partial y} = 3 + 2 = 5\ \text{C/m}^3 \]
6 Charge from a cube's flux

Problem. If \(\vec{D} = x\,\hat{a}_x\ \text{C/m}^2\), find the charge enclosed by the unit cube \(0\le x,y,z\le 1\).

Solution. Use the point form and integrate, or note flux leaves only the \(x=1\) face:

Working
\[ Q = \int_v (\nabla\cdot\vec{D})\,dv = \int_v 1\,dv = 1\ \text{C} \]
Review

Chapter Summary

Flux density

\(\vec{D}=\varepsilon_0\vec{E}\) in free space; measured in C/m²; independent of medium; lines end on charge.

Electric flux

\(\Psi=\int_S\vec{D}\cdot d\vec{S}\); only the normal component of \(\vec{D}\) counts.

Gauss (integral)

\(\oint_S\vec{D}\cdot d\vec{S}=Q_{\text{enc}}\); outside charge contributes nothing.

Gauss (point)

\(\nabla\cdot\vec{D}=\rho_v\) — Maxwell's first equation, via the divergence theorem.

Gaussian surface

Match the symmetry so \(\vec{D}\) is constant-normal or zero; sphere, cylinder, or pillbox.

Results

Point, line, sheet recovered in three lines each; coaxial field lives only between conductors.

Practice

Problems

For each item, first identify the symmetry and pick a Gaussian surface, then apply Gauss's law or its point form. Difficulty rises down the list.

  1. Convert \(\vec{E} = 10\,\hat{a}_r\ \text{V/m}\) (free space) to \(\vec{D}\).
  2. A \(+5\ \mu\text{C}\) charge is enclosed by a cube. State the total flux through the cube and through one face.
  3. Use Gauss's law to find \(\vec{E}\) of an infinite sheet \(\rho_S = 4\ \text{nC/m}^2\).
  4. For \(\vec{D} = 2x^2\,\hat{a}_x + 3y\,\hat{a}_y\), find \(\rho_v\) at \((1,1,0)\).
  5. A coaxial cable has \(\rho_L = 6\ \text{nC/m}\) on the inner conductor. Find \(\vec{E}\) at \(\rho = 2\ \text{mm}\) (between conductors).
  6. A uniformly charged sphere of radius \(a\) carries total charge \(Q\). Find \(\vec{E}\) both inside and outside, and sketch \(E\) versus \(r\).
  7. A spherical shell carries surface charge \(\rho_S\). Show the field is zero inside and \(1/r^2\) outside.
  8. Given \(\vec{D} = \dfrac{5r^2}{4}\,\hat{a}_r\ \text{C/m}^2\) (spherical), find \(\rho_v\) using the spherical divergence.
  9. Two concentric spheres carry \(+Q\) (inner) and \(-Q\) (outer). Find \(\vec{E}\) in all three regions.
  10. A slab of thickness \(2d\) carries uniform \(\rho_v\). Find \(\vec{E}\) inside and outside the slab.
  11. Verify the divergence theorem for \(\vec{D} = r\,\hat{a}_r\) over a sphere of radius \(a\), confirming both sides equal the enclosed charge.
  12. Explain why Gauss's law, though always true, fails to give \(\vec{E}\) for an off-centre or asymmetric charge unless combined with superposition.
Tip: Gauss's law trades a hard integral for a symmetry argument — but only when the symmetry exists. Ask yourself: can I draw a surface on which \(\vec{D}\) is constant and either pierces straight through or grazes along? If yes, the answer is three lines away. If no, fall back on the superposition integrals of Chapter 4. Knowing which tool the problem rewards is the real skill.