BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Gauss's law

The electric flux through a surface counts the field lines crossing it: Φ = EA cos θ for a flat surface in a uniform field, and the surface integral of E · dA in general. Gauss's law, the first of Maxwell's equations, says that the flux out of any closed surface is the enclosed charge divided by ε₀. For a point charge it follows from the 1/r² law, because a surface's flux depends only on the solid angle it covers. With symmetry it gives fields quickly: a concentric sphere for spherical charge (a shell has no field inside; a uniform ball has E ∝ r inside and k_eQ/r² outside), a coaxial cylinder for a line (E = λ/2πε₀r) and a pillbox for a plane (E = σ/2ε₀).

You need this first

Full reading path (56 pages)
  1. Vectors (8.01)
  2. Position and velocity in one dimension (8.01)
  3. Acceleration in one dimension (8.01)
  4. Motion in two dimensions and projectiles (8.01)
  5. Newton's laws of motion (8.01)
  6. The universal law of gravitation (8.01)
  7. Vectors and the dot product (18.02)
  8. Determinants and the cross product (18.02)
  9. Planes through three points, and matrices (18.02)
  10. Equations of planes and square systems (18.02)
  11. Parametric equations of lines and the cycloid (18.02)
  12. Velocity, acceleration and Kepler's second law (18.02)
  13. Functions of two variables and partial derivatives (18.02)
  14. Tangent planes, critical points and least squares (18.02)
  15. The second derivative test (18.02)
  16. Differentials and the chain rule (18.02)
  17. The gradient and directional derivatives (18.02)
  18. Lagrange multipliers (18.02)
  19. Non-independent variables (18.02)
  20. Double integrals (18.02)
  21. Double integrals in polar coordinates, and their uses (18.02)
  22. Change of variables in double integrals (18.02)
  23. Vector fields and line integrals (18.02)
  24. Fields: scalar, vector, gravitational and electric (8.02)
  25. Field lines, charging and electric dipoles (8.02)
  26. Electric fields of continuous charge distributions (8.02)
  27. Contact forces: the normal force and friction (8.01)
  28. Tension in ropes and the spring force (8.01)
  29. Momentum and impulse (8.01)
  30. The derivative: slope of the tangent line and rate of change (18.01)
  31. Limits and continuity (18.01)
  32. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  33. The chain rule and higher derivatives (18.01)
  34. Implicit differentiation and the derivatives of inverse functions (18.01)
  35. Exponentials and logarithms: the number e and its derivatives (18.01)
  36. Linear and quadratic approximations (18.01)
  37. Curve sketching with the first and second derivative (18.01)
  38. Sketching strategy and maximum–minimum problems (18.01)
  39. More max–min, and related rates (18.01)
  40. A ring on a string, and Newton's method (18.01)
  41. The mean value theorem and inequalities (18.01)
  42. Differentials and antiderivatives (18.01)
  43. Kinetic energy and work in one dimension (8.01)
  44. Work and kinetic energy in two and three dimensions (8.01)
  45. Conservative and non-conservative forces (8.01)
  46. Potential energy (8.01)
  47. Electric potential and potential energy (8.02)
  48. Gradient fields and path independence (18.02)
  49. Testing for gradient fields, potentials and curl (18.02)
  50. Green's theorem (18.02)
  51. Flux and the normal form of Green's theorem (18.02)
  52. Simply connected regions (18.02)
  53. Triple integrals and cylindrical coordinates (18.02)
  54. Spherical coordinates and gravitational attraction (18.02)
  55. Vector fields in space and flux through surfaces (18.02)
  56. Flux through graphs and the divergence theorem (18.02)
On this page · 7 sections
  1. Electric flux
  2. Gauss's law
  3. Using Gauss's law
  4. Spherical symmetry
  5. Cylindrical and planar symmetry
  6. Potential from the field
  7. Summary

Session 5 is one long look at Gauss's law: the first of Maxwell's equations, and a quick way to find fields when there is symmetry (slides 1–7). It is the physics of the divergence theorem of 18.02. The idea: field lines start and end on charges, so the number of lines crossing any closed surface depends only on the charge inside it (slide 8).

Electric flux#

The flux ΦE\Phi_E through a surface counts the field lines crossing it (course notes, Section 4.1, p. 1). For a flat surface of area AA with unit normal n^\hat n, in a uniform field at angle θ\theta to n^\hat n (Section 4.1, p. 1; slides 11–12):

Flux through a flat surface
ΦE=E⃗⋅A⃗=EAcos⁡θ=EnA\Phi_E = \vec E \cdot \vec A = EA\cos\theta = E_n A
In words

capital phi sub E equals vector capital E dot vector capital A equals capital E capital A cos theta equals capital E sub n capital A

where EnE_n is the component of E⃗\vec E along the normal. In general the field varies and the surface curves: cut it into small pieces dA⃗=n^ dAd\vec A = \hat n\,dA and add (Section 4.1, p. 2; slide 17):

Flux through a closed surface
ΦE=∮SE⃗⋅dA⃗\Phi_E = \oint_S \vec E \cdot d\vec A
In words

capital phi sub E equals the loop integral of _ capital S vector capital E dot d vector capital A

A closed surface, such as a sphere, encloses a volume; an open one, such as a rectangle, does not (slide 15). On a closed surface dA⃗d\vec A points outwards, so the flux is positive where the field leaves and negative where it enters (Section 4.1, p. 2; slide 16).

Gauss's law#

Put a point charge QQ at the centre of a sphere of radius rr. The field Q/(4πε0r2)Q/(4\pi\varepsilon_0 r^2) is radial and the same size everywhere on the sphere, whose area is 4πr24\pi r^2, so the flux is Q/ε0Q/\varepsilon_0, whatever the radius (course notes, Section 4.2, pp. 2–4; slide 21). The same holds for any closed surface around the charge (Section 4.2, p. 4; slide 22). With several charges the fluxes add, and a charge outside the surface contributes nothing, since every field line of it that enters also leaves (the page's own remark). So:

Gauss's law
ΦE=∮SE⃗⋅dA⃗=qinε0\Phi_E = \oint_S \vec E \cdot d\vec A = \frac{q_{\text{in}}}{\varepsilon_0}
In words

capital phi sub E equals the loop integral of _ capital S vector capital E dot d vector capital A equals q in over epsilon nought

where qinq_{\text{in}} is the net charge inside SS.

Why any surface? Through the solid angle. A small area ΔA\Delta A at distance rr, facing the charge, covers the solid angle ΔΩ=ΔA/r2\Delta\Omega = \Delta A/r^2 (in steradians; a whole sphere is 4π4\pi). Tilt it by θ\theta and the solid angle is ΔAcos⁡θ/r2\Delta A\cos\theta/r^2 (Section 4.2, pp. 4–5). The field falls as 1/r21/r^2 while the area for a given solid angle grows as r2r^2, so each solid angle carries the same flux, whatever the surface's shape or tilt (Section 4.2, pp. 5–6). Summed over all directions, any closed surface around the charge gets Q/ε0Q/\varepsilon_0. This only works because Coulomb's law is exactly inverse-square.

Using Gauss's law#

The law always holds, but gives the field only when symmetry makes E⃗\vec E simple on a well-chosen Gaussian surface (course notes, Section 4.2, p. 6; slides 23–25):

  1. Find the symmetry and the direction of E⃗\vec E.
  2. Choose a closed surface where E⃗\vec E is either perpendicular to the surface and constant (flux ±EA\pm EA) or parallel to it (flux zero).
  3. For each region, find the enclosed charge qinq_{\text{in}}.
  4. Compute the flux, set it equal to qin/ε0q_{\text{in}}/\varepsilon_0, and solve for EE.
SymmetryExampleGaussian surface
sphericalball, spherical shellconcentric sphere
cylindricalinfinite rodcoaxial cylinder
planarinfinite plane"pillbox" across the plane

Spherical symmetry#

A uniform ball. Charge QQ is spread evenly through a solid sphere of radius aa (course notes, Section 4.2, Example 4.4, pp. 13–14; slides 27–31). The field is radial, so take a concentric Gaussian sphere of radius rr; its flux is E⋅4πr2E \cdot 4\pi r^2. Outside (r>ar > a) it encloses all of QQ; inside it encloses the fraction r3/a3r^3/a^3:

Field of a uniform ball
E=Q4πε0r2  (r>a),E=Qr4πε0a3  (r<a)E = \frac{Q}{4\pi\varepsilon_0 r^2}\ \ (r > a), \qquad E = \frac{Qr}{4\pi\varepsilon_0 a^3}\ \ (r < a)
In words

capital E equals capital Q over the quantity 4 pi epsilon nought r squared, times (r greater than a), capital E equals capital Q r over the quantity 4 pi epsilon nought a cubed, times (r less than a)

Source: 8.02T Session 5 presentation slides, slides 30–31

Outside, the ball acts as if all its charge sat at the centre (p. 14).

A thin shell. For charge QQ on a shell of radius aa, a Gaussian sphere inside encloses nothing, so E=0E = 0 everywhere inside; outside, E=keQ/r2E = k_e Q/r^2. The field jumps by σ/ε0\sigma/\varepsilon_0 across the shell, with σ=Q/4πa2\sigma = Q/4\pi a^2 (Section 4.2, Example 4.3, pp. 11–12).

Field of a uniform ball and of a thin shell with the same charge, in units of kₑQ/a², computed from Gauss's law: inside the ball E grows as r, inside the shell it is zero (not drawn), and outside both fall as 1/r², on the same curve.

Cylindrical and planar symmetry#

An infinite line of charge per unit length λ\lambda (Section 4.2, Example 4.1, pp. 7–8; slides 33–35): take a coaxial cylinder of radius rr and length ℓ\ell. The field is radial, so no flux crosses the end caps, and the side gives E⋅2πrℓ=λℓ/ε0E \cdot 2\pi r\ell = \lambda\ell/\varepsilon_0:

Infinite line of charge
E=λ2πε0rE = \frac{\lambda}{2\pi\varepsilon_0 r}
In words

capital E equals lambda over the quantity 2 pi epsilon nought r

The length ℓ\ell divides out, as it should, and the result matches the long-rod limit found by integration (p. 8).

An infinite plane with density σ\sigma (Section 4.2, Example 4.2, pp. 9–10; slides 36–38): take a pillbox with end caps of area AA on either side. Only the caps carry flux, 2EA=σA/ε02EA = \sigma A/\varepsilon_0:

Infinite plane of charge
E=σ2ε0E = \frac{\sigma}{2\varepsilon_0}
In words

capital E equals sigma over the quantity 2 epsilon nought

pointing away from the plane on both sides (for σ>0\sigma > 0), again as found before, now with almost no work. The slides' group problems, a thick charged slab (slides 40 and 46) and two concentric shells with opposite charges (slide 47), are left for the problem pages.

Potential from the field#

Knowing E⃗\vec E, the potential follows from VB−VA=−∫ABE⃗⋅ds⃗V_B - V_A = -\int_A^B \vec E \cdot d\vec s (slides 42–45). For the uniform ball, with V=0V = 0 at infinity: outside, V=keQ/rV = k_e Q/r, as for a point charge; inside, integrating the outside field down to aa and then the inside field down to rr gives (slide 44):

Potential inside a uniform ball
V(r)=Q8πε0a(3−r2a2)V(r) = \frac{Q}{8\pi\varepsilon_0 a}\left(3 - \frac{r^2}{a^2}\right)
In words

V(r) equals capital Q over the quantity 8 pi epsilon nought a, times the quantity 3 minus r squared over a squared

Worked example

A charged ball and a charged wire

(a) A ball of radius 5 cm holds 3 nC spread evenly. Find the field at 2 cm, 5 cm and 10 cm from its centre. (b) A long straight wire carries 2 nC per metre. Find the field 10 cm from it.

(a) The ball

keQ=(8.99×109)(3×10−9)=26.97k_e Q = (8.99 \times 10^9)(3 \times 10^{-9}) = 26.97 V m. Inside, at 2 cm: keQr/a3=26.97×0.02/0.053≈4.32×103k_e Qr/a^3 = 26.97 \times 0.02/0.05^3 \approx 4.32 \times 10^3 N/C. At the surface: 26.97/0.052≈1.08×10426.97/0.05^2 \approx 1.08 \times 10^4 N/C, the largest value. At 10 cm: 26.97/0.12≈2.70×10326.97/0.1^2 \approx 2.70 \times 10^3 N/C, a quarter of the surface value.

(b) The wire

E=λ/(2πε0r)=2keλ/r=2(8.99×109)(2×10−9)/0.1≈360E = \lambda/(2\pi\varepsilon_0 r) = 2k_e\lambda/r = 2(8.99 \times 10^9)(2 \times 10^{-9})/0.1 \approx 360 N/C.

Summary#

  • Flux ΦE=∮E⃗⋅dA⃗\Phi_E = \oint \vec E \cdot d\vec A, with dA⃗d\vec A outwards on a closed surface.
  • Gauss's law: ΦE=qin/ε0\Phi_E = q_{\text{in}}/\varepsilon_0 for any closed surface; it rests on the inverse-square law and the solid angle.
  • With symmetry: sphere, cylinder or pillbox where EE is constant or parallel.
  • Ball: keQr/a3k_e Qr/a^3 inside, keQ/r2k_e Q/r^2 outside; shell: zero inside; line: λ/2πε0r\lambda/2\pi\varepsilon_0 r; plane: σ/2ε0\sigma/2\varepsilon_0.

Symbols on this page

Show the 38 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
ε\varepsilon epsilon.
Written ε₀: the electric constant. Say it: “epsilon”.
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
λ\lambda lambda.
The charge per unit length of a line. Unit: C/m. Say it: “lambda”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
σ\sigma sigma.
The surface charge density of a plane or shell. Unit: C/m². Say it: “sigma”.
Ω\Omega capital omega.
The density parameter Ω = ρ/ρ_c. Subscripts pick one ingredient: Ω_m matter, Ω_vac (or Ω_Λ) vacuum energy, Ω_r radiation, Ω_k curvature. Say it: “capital omega”.
ℓ\ell script l.
A length or distance; ℓ_p is a physical distance and ℓ_c a comoving one. Unit: m (a comoving ℓ_c is in notches, Guth's units). Say it: “ell”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
∮\oint loop integral.
An integral around a closed loop. Say it: “the loop integral of”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
aa a.
The radius of the ball or shell. Unit: m. Say it: “a”.
GG G.
Newton's gravitational constant, G ≈ 6.674 × 10⁻¹¹ m³ kg⁻¹ s⁻². Unit: m³/(kg·s²). Say it: “capital G”.
Φ\Phi capital phi.
Written Φ_E: the electric flux. Say it: “capital phi”.
dd d.
The d of dA, ds, dr. Say it: “d”.
gg g.
The gravitational field. Unit: m/s². Say it: “g”.
rr r.
The distance from the centre (or, for a line, from the axis). Unit: m. Say it: “r”.
QQ Q.
The total charge of a ball, shell or point charge. Unit: C. Say it: “capital Q”.
AA A.
An area; on a pillbox, the area of each end cap. Unit: m². Say it: “capital A”.
BB B.
The end point of a path. Say it: “B”.
qq q.
A point charge. Unit: C. Say it: “q”.
ss s.
Position along a path; ds is a small step. Unit: m. Say it: “s”.
SS S.
A closed (Gaussian) surface. Say it: “capital S”.
EE E.
The electric field. Unit: N/C. Say it: “capital E”.
VV V.
The electric potential. Unit: V. Say it: “V”.
n^\hat{n} n hat.
The outward unit normal to a surface. Say it: “n hat”.
EnE_{n} E n.
The component of the field along the surface's normal. Unit: N/C. Say it: “capital E sub n”.
ε0\varepsilon_{0} epsilon nought.
The electric constant (vacuum permittivity). Unit: F/m. Say it: “epsilon nought”.
kek_{e} k e.
Coulomb's constant, about 8.99 × 10⁹ N m²/C². Unit: N m²/C². Say it: “k e”.
VBV_{B} V sub B.
The potential at B. Unit: V. Say it: “V sub B”.
VAV_{A} V sub A.
The potential at A. Unit: V. Say it: “V sub A”.
ΦE\Phi_{E} Phi E.
The electric flux through a surface. Unit: V m. Say it: “capital phi sub E”.
qinq_{\text{in}} q in.
The net charge enclosed by the Gaussian surface. Unit: C. Say it: “q in”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 22 words used here

New here

Gauss's law.
The law that the flux out of any closed surface is set by what is inside: the charge for electric fields, the mass for gravity.
solid angle.
The three-dimensional version of an angle: how much of the view around a point an object covers, measured in steradians.
Gaussian surface.
An imaginary closed surface chosen to apply Gauss's law, usually shaped so that the field is the same everywhere on it.

Also used

Maxwell's equations.
The four equations that together describe all electric and magnetic fields: how charges and currents create them and how each changing field creates the other. Explained in Displacement current, Maxwell's equations and light.
field.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
symmetry.
A change, such as a reflection, a rotation or a shift, that leaves something looking exactly the same. Explained in The derivative: slope of the tangent line and rate of change.
divergence theorem.
The theorem that the flux of a vector field out of a closed surface equals the integral of its divergence over the region inside. Explained in Flux through graphs and the divergence theorem.
field lines.
Curves drawn so that at every point they run along the field; where they crowd together the field is strong. Explained in The electric field.
closed surface.
A surface with no edge that completely encloses a region of space, like the skin of a ball.
flux.
How much of a field, or of a flow of matter or energy, passes through a surface (per second, for a flow). Explained in Towards the universe: what starlight tells us.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
normal vector.
A vector at right angles to a plane or surface; it fixes which way the plane faces. Explained in Planes through three points, and matrices.
uniform.
The same at every point, or unchanging in time: a uniform rod has the same density all along it. Explained in The electric field.
Coulomb's law.
The law that two electric charges attract or repel with a force proportional to each charge and to one over the square of their distance. Explained in Coulomb's law.
inverse-square law.
A rule in which an effect falls off as one over the distance squared: twice as far gives a quarter of the effect. Explained in Newton's law of gravitation.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
density.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
potential.
Short for electric potential: the electric potential energy per coulomb at a point, measured in volts.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
Friedmann equation.
The equation that gives the expansion rate of a uniform universe from its density and the curvature of space. Explained in Towards the universe: will an expanding ball of matter stop?.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

31 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. A point charge qq sits inside a closed cube, off-centre. The flux out of the cube is…
  2. What is the electric field inside a uniformly charged thin spherical shell?
  3. Which Gaussian surface suits an infinitely long charged rod?
0 of 3 answered

Flashcards

1 / 3