AP Physics C: E&M · Unit 8 lecture · Part 10 of 11 · 10 min

8.6 Gauss's law: lines, sheets, shells and changing densityCylinders, pillboxes and nonuniform charge

Mr. Thompkins
Spheres are just one shape. The same law handles long wires and big sheets, and it handles charge densities that change with radius, which is where the calculus comes back in. Let's go one by one.

A long line of charge

For a long straight line with density λ, the field must point straight out from the line and depend only on the distance r. The matching Gaussian surface is a cylinder of radius r and length ℓ, coaxial with the line. On the curved side, E is perpendicular and constant: flux $E(2\pi r\ell)$. On the flat end caps, E runs along the surface: flux zero. The enclosed charge is $\lambda\ell$.

$$E(2\pi r\ell) = \frac{\lambda\ell}{\varepsilon_0} \quad\Rightarrow\quad E = \frac{\lambda}{2\pi\varepsilon_0 r} = \frac{2k\lambda}{r}$$

?Wait, what's the area of the curved side of a cylinder?
Unroll it: it's a rectangle with one side the circumference $2\pi r$ and the other the length ℓ, so the area is $2\pi r\ell$. The two end caps are circles of area $\pi r^2$ each.

A large flat sheet

For a large sheet with surface density σ, the field points straight away from the sheet on both sides. Use a pillbox (a short cylinder) that pokes through the sheet, with caps of area A. The curved side has zero flux; each cap has flux EA. The enclosed charge is σA. So $2EA = \sigma A/\varepsilon_0$ and $E = \frac{\sigma}{2\varepsilon_0}$: the same at any distance. That's why the field between two large parallel plates (each $\sigma/2\varepsilon_0$, adding between them and canceling outside) is the uniform $\sigma/\varepsilon_0$ we used for the electron.

long line: cylinderend caps: flux 0big sheet: pillboxcurved side: flux 0
Left: a coaxial cylinder around a long line charge. Right: a pillbox through a large sheet. On each, one part has zero flux and the rest has a constant perpendicular field.
Pause and think
A long line of charge produces a field E at a distance r. What is the field at a distance 2r? Compare with a point charge.
I thought about it. Show me
E/2, because $E \propto 1/r$ for a line. A point charge would drop to E/4. A line spreads its field over a cylinder whose area grows as r, not over a sphere whose area grows as r².

Thin shells

Inside a thin spherical shell of charge, a Gaussian sphere encloses no charge, so the field is zero everywhere inside. Not just at the center: everywhere. Outside, the shell acts like a point charge. If a shell surrounds a point charge, then inside the shell only the point charge counts; outside, both count.

Charge density that changes with r

If $\rho$ depends on r, you can't use "density times volume". Chop the volume into thin spherical shells of radius r', thickness dr', and volume $dV = 4\pi r'^2\,dr'$, and add up their charge: $q_{enc} = \int_0^r \rho(r')\,4\pi r'^2\,dr'$.

?Wait, why is a thin shell's volume 4πr² dr?
Its area is $4\pi r^2$ and its thickness is $dr$, like a peel. Area times thickness is volume. (It's also the derivative of $\tfrac{4}{3}\pi r^3$.)
Nonuniform ball
An insulating ball of radius R has charge density $\rho = \rho_0\frac{r}{R}$, where $\rho_0$ is a constant. Derive E for $r < R$ and for $r > R$, in terms of $\rho_0$, R, r and $\varepsilon_0$.
00.511.522.500.050.10.150.20.250.3$r/R$$E$ in units of $\rho_0 R/\varepsilon_0$inside: $\propto r^2$outside: $\propto 1/r^2$$\rho_0 R/(4\varepsilon_0)$
  1. Inside: Gaussian sphere of radius r. By spherical symmetry, flux $= E(4\pi r^2)$.
  2. $q_{enc} = \int_0^r \rho_0\frac{r'}{R}4\pi r'^2\,dr' = \frac{4\pi\rho_0}{R}\cdot\frac{r^4}{4} = \frac{\pi\rho_0r^4}{R}$.
    Why?
    The density changes with radius, so the enclosed charge must be an integral.
  3. $E(4\pi r^2) = \frac{\pi\rho_0r^4}{\varepsilon_0R}$, so $E = \frac{\rho_0r^2}{4\varepsilon_0R}$ for $r < R$.
  4. Total charge: set r = R: $Q = \pi\rho_0R^3$. Outside: $E(4\pi r^2) = \frac{\pi\rho_0R^3}{\varepsilon_0}$, so $E = \frac{\rho_0R^3}{4\varepsilon_0r^2}$ for $r > R$.
  5. Check continuity at r = R: both give $\frac{\rho_0R}{4\varepsilon_0}$.
    Why?
    No surface charge sits at r = R, so E must be continuous there. A quick check that catches algebra slips.

Answer: $E = \frac{\rho_0r^2}{4\varepsilon_0R}$ inside and $E = \frac{\rho_0R^3}{4\varepsilon_0r^2}$ outside, radially outward for positive $\rho_0$.

Stuck? Get a hint
  1. Write $q_{enc}$ as an integral of ρ(r′) 4πr′² dr′ from 0 to r.
  2. ρ₀/R is constant: integrate r′³ to get r⁴/4.
  3. For outside, the enclosed charge is the total, found by setting r = R.
Long line
A long, thin wire carries a uniform 3.0 nC/m. Find the field 5.0 cm from the wire.
  1. Gaussian cylinder of radius 0.050 m coaxial with the wire: $E(2\pi r\ell) = \lambda\ell/\varepsilon_0$.
  2. $E = \frac{2k\lambda}{r} = \frac{2(9.0 \times 10^9)(3.0 \times 10^{-9})}{0.050} = 1.1 \times 10^3$ N/C, pointing radially away from the wire.

Answer: About $1.1 \times 10^3$ N/C, radially outward.

Check yourself
A point charge $+q$ sits at the center of a thin spherical shell of radius R carrying $-3q$. What is the field at $r = 2R$?
  1. A$kq/(4R^2)$ outward
  2. B$kq/(2R^2)$ inward
  3. C$3kq/(4R^2)$ inward
  4. D0
Show the answer

B. At 2R both charges are enclosed: $q_{enc} = -2q$, so $E = \frac{k(2q)}{(2R)^2} = \frac{kq}{2R^2}$, pointing inward because the net charge is negative. The first choice forgets the shell.

Check yourself
How does the field depend on distance r outside a long, uniformly charged solid cylinder?
  1. A$E \propto r$
  2. B$E \propto 1/r$
  3. C$E \propto 1/r^2$
  4. DConstant
Show the answer

B. Outside, a Gaussian cylinder encloses a fixed charge per length, and its curved area grows as r, so $E \propto 1/r$. $E \propto r$ is the field inside a uniformly charged solid cylinder.

Exam tip from Mr. T

For a "derive" question with Gauss's law, write four things: the Gaussian surface and why (symmetry), the flux in terms of E, the enclosed charge (with an integral if ρ varies), and then solve. Only use the symbols the question lists.

  • Line: cylinder, $E = \lambda/(2\pi\varepsilon_0 r)$, so $E \propto 1/r$.
  • Large sheet: pillbox, $E = \sigma/(2\varepsilon_0)$, uniform. Two opposite plates: $\sigma/\varepsilon_0$ between, 0 outside.
  • Thin shell: E = 0 everywhere inside; point charge outside.
  • Changing density: $q_{enc} = \int\rho\,dV$ with $dV = 4\pi r^2\,dr$ (sphere) or $2\pi r\ell\,dr$ (cylinder).
  • E is continuous across a boundary with no surface charge.