Calculus 4Applications

Gauss's Law and Electric Flux

Flux through a closed surface counts the charge inside.

Not started Jump to practice

An electric charge $q$ at the origin produces the field $$\mathbf{E} = \frac{q}{4\pi\varepsilon_0}\,\frac{\mathbf{r}}{|\mathbf{r}|^3},$$ an inverse-square field like gravity, where $\varepsilon_0$ is a physical constant. You computed in using the divergence theorem that $\frac{\mathbf{r}}{|\mathbf{r}|^3}$ has flux ${}4\pi$ through every closed surface around the origin. Multiply by $\frac{q}{4\pi\varepsilon_0}$: the electric flux is $q/\varepsilon_0$, whatever the surface. That is Gauss's law.

Key idea

Gauss's law. For any closed surface $S$ (outward normal) enclosing total charge $Q_{\text{enc}}$: $$\iint_S \mathbf{E} \cdot d\mathbf{S} = \frac{Q_{\text{enc}}}{\varepsilon_0}.$$ Charges outside $S$ contribute nothing to the net flux. Differential form, for a charge density $\rho$: $\nabla \cdot \mathbf{E} = \dfrac{\rho}{\varepsilon_0}$.

Why it works

One charge: on a sphere of radius $r$ around it, $\mathbf{E} \cdot \mathbf{n} = \frac{q}{4\pi\varepsilon_0 r^2}$, and the area is ${}4\pi r^2$: the flux is $\frac{q}{\varepsilon_0}$. The $r^2$ in the area cancels the $r^2$ in the field. Any other closed surface around the charge has the same flux, because $\nabla \cdot \mathbf{E} = 0$ away from the charge (divergence theorem on the region between). A charge outside gives zero net flux: its field is smooth and divergence-free inside $S$.
Many charges: fields add, so fluxes add.
Differential form: $$\iiint_E \nabla \cdot \mathbf{E}\,dV = \iint_S \mathbf{E} \cdot d\mathbf{S} = \frac{1}{\varepsilon_0}\iiint_E \rho\,dV$$ for every region $E$, so the integrands agree.
A cross-section of three long charged wires (the plane version of Gauss's law: each wire's field falls off like ${}1/r$ in the plane). The flux through the loop counts only the wires inside it, however the loop is shaped or placed.

Worked examples

Worked example: Counting charges

Charges ${}3\,\mu$C at the origin, $-1\,\mu$C at $(0, 0, 1)$ and ${}5\,\mu$C at $(4, 0, 0)$. Find the electric flux through the sphere $x^2 + y^2 + z^2 = 4$.
  1. Inside (distance less than ${}2$): the first two. Outside: the third.
  2. Flux $= \frac{3 - 1}{\varepsilon_0} = \frac{2\,\mu\text{C}}{\varepsilon_0}$.

Answer: ${}2\,\mu\text{C}/\varepsilon_0$

Worked example: A charged ball

A ball of radius $R$ carries charge $Q$ spread uniformly through its volume. Find the field strength at distance $r$ from the center.
  1. By symmetry $\mathbf{E}$ points radially with size $E(r)$, so the flux through the sphere of radius $r$ is $E \cdot 4\pi r^2$.
  2. Outside ($r > R$): all of $Q$ is enclosed, so $E = \frac{Q}{4\pi\varepsilon_0 r^2}$, as if the charge sat at the center.
  3. Inside ($r < R$): the enclosed charge is $Q\frac{r^3}{R^3}$, so $E = \frac{Q r}{4\pi\varepsilon_0 R^3}$, growing linearly from ${}0$ at the center.

Answer: $\frac{Qr}{4\pi\varepsilon_0 R^3}$ inside, $\frac{Q}{4\pi\varepsilon_0 r^2}$ outside

Worked example: A charged wire

A long straight wire carries charge $\lambda$ per unit length. Find the field at distance $r$.
  1. Use a closed cylinder of radius $r$ and length $\ell$ around the wire. The field points straight out, so the end caps have zero flux and the side has $E \cdot 2\pi r\ell$.
  2. Gauss: $E \cdot 2\pi r\ell = \frac{\lambda\ell}{\varepsilon_0}$, so $E = \frac{\lambda}{2\pi\varepsilon_0 r}$.

Answer: $\frac{\lambda}{2\pi\varepsilon_0 r}$

Common mistake

Expecting the shape or size to matter. A bigger sphere around the same charge does not catch more flux: the field weakens like ${}1/r^2$ exactly as the area grows like $r^2$. Any closed surface, of any shape, around the same charges has the same flux. What does change with the surface is which charges are inside.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax University Physics Volume 2, 6.2 Explaining Gauss's Law
  • OpenStax University Physics Volume 2, 6.3 Applying Gauss's Law
  • OpenStax Calculus Volume 3, 6.8 The Divergence Theorem
@teddyrookbook GitHub