← Back to course

Physics — Mechina

Flux and Gauss's law

Summary

Flux measures how many “field lines” pass through a surface. Gauss's law says the flux through a closed surface depends only on the charge inside it. With symmetry (sphere, cylinder, plane) it gives the field in one line.

Φ=∮E⃗⋅dA⃗=Qinε0,ε0=8.85⋅10−12\Phi=\oint\vec E\cdot d\vec A=\frac{Q_{\text{in}}}{\varepsilon_0},\qquad \varepsilon_0=8.85\cdot10^{-12}

Symbols in the formulas

Φ\Phi
The electric flux — how many "field lines" exit the closed surface (outgoing — positive)N⋅m2/C\text{N}\cdot\text{m}^2/\text{C}
E⃗\vec E
The electric field on the surfaceN/C\text{N/C}
dA⃗d\vec A
A small area element of the surface, in the outward normal directionm2\text{m}^2
QinQ_{\text{in}}
The total charge inside the closed surface (only what is inside!)C\text{C}
ε0\varepsilon_0
The permittivity of vacuum; related to kk through k=14πε0k=\frac{1}{4\pi\varepsilon_0}C2/(N⋅m2)\text{C}^2/(\text{N}\cdot\text{m}^2)

How to use the law: when there is symmetry, choose a surface on which EE is constant and perpendicular to the surface — then the integral becomes simple, Φ=E⋅A\Phi=E\cdot A, and EE is easy to extract. For example for a sphere: E⋅4πr2=Qε0E\cdot4\pi r^2=\frac{Q}{\varepsilon_0}, hence E=Q4πε0r2=kQr2E=\frac{Q}{4\pi\varepsilon_0r^2}=\frac{kQ}{r^2} — exactly the formula we already know.

sphere: E=kQr2,wire/cylinder: E=λ2πε0r,plane: E=σ2ε0\text{sphere: }E=\frac{kQ}{r^2},\quad \text{wire/cylinder: }E=\frac{\lambda}{2\pi\varepsilon_0 r},\quad \text{plane: }E=\frac{\sigma}{2\varepsilon_0}

Symbols in the formulas

EE
The magnitude of the field at a distance rr from the center (or from the axis)N/C\text{N/C}
rr
The distance from the center of the sphere, or from the axis of the wire and the cylinderm\text{m}
QQ
The total charge of the sphereC\text{C}
λ\lambda
Linear charge density — charge per unit length of a wireC/m\text{C/m}
σ\sigma
Surface charge density — charge per unit area of a planeC/m2\text{C/m}^2
ρ\rho
Volume charge density — charge per unit volumeC/m3\text{C/m}^3
RR
The radius of the sphere or cylinderm\text{m}
  • Choose a Gaussian surface on which EE is constant and perpendicular (or parallel) to the surface.
  • A solid cylinder with density ρ\rho: inside E=ρr2ε0E=\frac{\rho r}{2\varepsilon_0}, outside E=ρR22ε0rE=\frac{\rho R^2}{2\varepsilon_0 r}.
  • A charge at a vertex of a cube: 18\frac18 of the flux passes through the cube; at the centre of a face — 12\frac12.
0.511.522.533.540.10.20.30.40.50.60.70.80.911.11.2xyE(r)(1, 1)
A solid cylinder of radius R=1R=1: inside E∝rE\propto r, outside E∝1rE\propto\frac1r. The maximum is at the surface.

Question types

1

Flux through a cube

A charge at the centre, on a face or at a vertex of a cube.

Worked example

A charge qq at the centre of a cube. What is the flux through one face?

Solution

IdeaSymmetry: 6 equal faces.
  1. Gauss's law for a closed surface (the cube): Φtotal=Qinε0\Phi_{\text{total}}=\frac{Q_{\text{in}}}{\varepsilon_0}.
  2. Substitute Qin=qQ_{\text{in}}=q: Φtotal=qε0\Phi_{\text{total}}=\frac q{\varepsilon_0}.
  3. The charge is at the center, so by symmetry the flux splits equally among the 66 faces.
  4. Divide by 66: Φface=Φtotal6\Phi_{\text{face}}=\frac{\Phi_{\text{total}}}{6}.
  5. Substitute: Φface=q6ε0\Phi_{\text{face}}=\frac{q}{6\varepsilon_0}.
Check6⋅16=16\cdot\frac16=1 ✓.
Common mistakeqε0\frac{q}{\varepsilon_0} through every face.
+qΦ = ?
  • Field

Variants of this type · 1

1.1A charge at a vertex

Worked example

qq at a vertex. The flux through the cube?

Solution

Idea8 cubes around the vertex.
  1. q8ε0\frac{q}{8\varepsilon_0}.
Check✓.
Common mistakeqε0\frac q{\varepsilon_0}.
2

Gauss's law for a cylinder

A long wire, a solid or a hollow cylinder.

Worked example

A cylinder of radius RR with density ρ\rho. Find E(r)E(r) inside and outside.

Solution

IdeaGaussian surface — a cylinder of length LL.
  1. Choose a Gaussian surface — a coaxial cylinder of radius r<Rr<R and length LL. The field is radial and constant on the side surface: Φ=E⋅2πrL\Phi=E\cdot2\pi rL.
  2. The enclosed charge — density times volume: Qin=ρ⋅πr2LQ_{\text{in}}=\rho\cdot\pi r^2L.
  3. Gauss's law: E⋅2πrL=ρπr2Lε0E\cdot2\pi rL=\frac{\rho\pi r^2L}{\varepsilon_0}.
  4. Cancel π\pi, rr and LL: 2E=ρrε02E=\frac{\rho r}{\varepsilon_0}.
  5. Divide by 22: E=ρr2ε0E=\frac{\rho r}{2\varepsilon_0} inside.
  6. Outside the cylinder (r>Rr>R) the enclosed charge is the entire charge: Qin=ρπR2LQ_{\text{in}}=\rho\pi R^2L.
  7. Gauss's law: E⋅2πrL=ρπR2Lε0E\cdot2\pi rL=\frac{\rho\pi R^2L}{\varepsilon_0}.
  8. Cancel and isolate: E=ρR22ε0rE=\frac{\rho R^2}{2\varepsilon_0r} outside.
CheckContinuous at r=Rr=R ✓.
Common mistaker2r^2 outside (as for a sphere).
Rr < Rρr > RE(r) = ?
  • Field

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice