Fiveable

🔋Electromagnetism II Unit 1 Review

QR code for Electromagnetism II practice questions

1.1 Gauss's law for electric fields

1.1 Gauss's law for electric fields

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🔋Electromagnetism II
Unit & Topic Study Guides

Gauss's law statement

Gauss's law connects the electric flux through a closed surface to the total charge enclosed by that surface. It's one of Maxwell's four equations, and at the Electromagnetism II level, you need fluency in both its integral and differential forms and a clear sense of when each is the right tool.

The integral form gives you a global relationship between flux and enclosed charge. The differential form gives you a local, point-by-point relationship between the electric field's divergence and the charge density. Together, they're equivalent statements of the same physics.

Integral form

The integral form says: the total electric flux through any closed surface equals the enclosed charge divided by ϵ0\epsilon_0.

EdA=Qencϵ0\oint \vec{E} \cdot d\vec{A} = \frac{Q_{\text{enc}}}{\epsilon_0}

  • E\vec{E} is the electric field at each point on the surface.
  • dAd\vec{A} is an outward-pointing infinitesimal area element.
  • QencQ_{\text{enc}} is the total charge enclosed by the surface.

The convention matters: dAd\vec{A} always points outward from the enclosed volume. This fixes the sign of the flux. Positive enclosed charge produces positive (outward) net flux; negative enclosed charge produces negative (inward) net flux.

This form is most useful when symmetry lets you pull E\vec{E} out of the integral, turning a surface integral into a simple algebraic equation.

Differential form

The differential form relates the divergence of E\vec{E} at a single point to the local charge density ρ\rho at that point:

E=ρϵ0\nabla \cdot \vec{E} = \frac{\rho}{\epsilon_0}

You can derive this from the integral form using the divergence theorem (EdA=V(E)dV\oint \vec{E} \cdot d\vec{A} = \int_V (\nabla \cdot \vec{E})\, dV). Since the integral form holds for any closed surface, the integrands must be equal, giving you the differential form.

This version is essential for deriving Poisson's equation (2V=ρ/ϵ0\nabla^2 V = -\rho/\epsilon_0) and Laplace's equation (2V=0\nabla^2 V = 0 where ρ=0\rho = 0). You'll rely on it heavily when solving boundary-value problems later in the course.

Gaussian surfaces

A Gaussian surface is an imaginary closed surface you construct to exploit symmetry when applying the integral form of Gauss's law. The surface itself has no physical reality; it's a mathematical tool you choose to make the integral tractable.

Closed surfaces

The surface must be closed, meaning it fully encloses a volume with no gaps. The outward normal convention for dAd\vec{A} is standard. Any closed surface works in principle, but a poorly chosen one won't simplify the integral at all.

Symmetry of charge distributions

The whole power of Gauss's law in integral form rests on choosing a Gaussian surface that matches the symmetry of the charge distribution. When you do this correctly, EdA\vec{E} \cdot d\vec{A} becomes constant over the surface (or zero on parts of it), and the integral collapses.

Three canonical symmetries come up repeatedly:

  • Spherical symmetry (point charges, uniformly charged spheres): Use a concentric spherical Gaussian surface. E\vec{E} is radial and constant in magnitude over the sphere, so EdA=E(4πr2)\oint \vec{E} \cdot d\vec{A} = E(4\pi r^2).
  • Cylindrical symmetry (infinite line charges, infinite cylindrical shells): Use a coaxial cylindrical Gaussian surface. E\vec{E} is radial and constant on the curved surface; flux through the end caps is zero by symmetry, so EdA=E(2πrL)\oint \vec{E} \cdot d\vec{A} = E(2\pi r L).
  • Planar symmetry (infinite sheets of charge): Use a pillbox (short rectangular box or cylinder) straddling the plane. E\vec{E} is perpendicular to the plane and passes through the two flat faces; no flux passes through the sides.

If the charge distribution doesn't have one of these symmetries, the integral form of Gauss's law is still true, but it won't give you a shortcut to finding E\vec{E}.

Electric flux

Electric flux ΦE\Phi_E quantifies how much electric field passes through a surface. Geometrically, you can think of it as counting the net number of field lines piercing the surface (outward minus inward). Its SI unit is V·m (equivalently, N·m²/C).

Flux through closed surfaces

For a closed surface, Gauss's law directly ties the net flux to the enclosed charge:

ΦE=EdA=Qencϵ0\Phi_E = \oint \vec{E} \cdot d\vec{A} = \frac{Q_{\text{enc}}}{\epsilon_0}

  • If Qenc=0Q_{\text{enc}} = 0, the net flux is zero. Field lines entering the surface must also exit it.
  • If Qenc>0Q_{\text{enc}} > 0, there's net outward flux.
  • If Qenc<0Q_{\text{enc}} < 0, there's net inward flux.

Charges outside the closed surface contribute zero net flux. Their field lines enter and exit, canceling exactly.

Integral form, Applying Gauss’s Law | CircuitBread

Flux and electric field relationship

For a flat surface in a uniform field, the flux simplifies to:

ΦE=EA=EAcosθ\Phi_E = \vec{E} \cdot \vec{A} = EA\cos\theta

Here θ\theta is the angle between E\vec{E} and the outward normal n^\hat{n} to the surface. When the field is parallel to the surface (θ=90°\theta = 90°), the flux is zero. When the field is perpendicular (θ=0°\theta = 0°), the flux is maximized at EAEA.

For non-uniform fields or curved surfaces, you must integrate: ΦE=EdA\Phi_E = \int \vec{E} \cdot d\vec{A}.

Applying Gauss's law

The general procedure for using Gauss's law to find E\vec{E}:

  1. Identify the symmetry of the charge distribution (spherical, cylindrical, or planar).
  2. Determine the direction of E\vec{E} from that symmetry. For example, spherical symmetry forces E\vec{E} to be purely radial.
  3. Choose a Gaussian surface that matches the symmetry so that EdA\vec{E} \cdot d\vec{A} is either constant or zero over each part of the surface.
  4. Evaluate the flux integral. Because of your surface choice, this should reduce to EE times some geometric factor (area of a sphere, curved surface of a cylinder, etc.).
  5. Find QencQ_{\text{enc}} by integrating the charge density over the volume enclosed by your Gaussian surface.
  6. Set flux equal to Qenc/ϵ0Q_{\text{enc}}/\epsilon_0 and solve for EE.

Spherical charge distributions

Use a spherical Gaussian surface of radius rr centered on the charge distribution.

Point charge qq: For r>0r > 0, E(4πr2)=q/ϵ0E(4\pi r^2) = q/\epsilon_0, giving E=q/(4πϵ0r2)E = q/(4\pi\epsilon_0 r^2). This recovers Coulomb's law.

Uniformly charged solid sphere (total charge QQ, radius RR):

  • Outside (r>Rr > R): E=Q/(4πϵ0r2)E = Q/(4\pi\epsilon_0 r^2). The sphere acts like a point charge.
  • Inside (r<Rr < R): Only the charge within radius rr is enclosed. With uniform volume charge density ρ=3Q/(4πR3)\rho = 3Q/(4\pi R^3), you get Qenc=Q(r/R)3Q_{\text{enc}} = Q(r/R)^3, so E=Qr/(4πϵ0R3)E = Qr/(4\pi\epsilon_0 R^3). The field grows linearly with rr inside.

Cylindrical charge distributions

Use a coaxial cylindrical Gaussian surface of radius rr and length LL.

Infinite line charge (linear charge density λ\lambda): The flux passes only through the curved surface: E(2πrL)=λL/ϵ0E(2\pi r L) = \lambda L/\epsilon_0, giving E=λ/(2πϵ0r)E = \lambda/(2\pi\epsilon_0 r).

Uniformly charged infinite cylinder (radius RR, volume charge density ρ\rho):

  • Outside (r>Rr > R): E=ρR2/(2ϵ0r)E = \rho R^2/(2\epsilon_0 r).
  • Inside (r<Rr < R): Qenc=ρπr2LQ_{\text{enc}} = \rho \pi r^2 L, so E=ρr/(2ϵ0)E = \rho r/(2\epsilon_0). Again, the field grows linearly with rr inside.

Planar charge distributions

Infinite sheet (surface charge density σ\sigma): Use a pillbox straddling the sheet. Flux exits through both flat faces: 2EA=σA/ϵ02EA = \sigma A/\epsilon_0, giving E=σ/(2ϵ0)E = \sigma/(2\epsilon_0). The field is uniform and independent of distance from the sheet.

Parallel-plate capacitor (plates with +σ+\sigma and σ-\sigma): Superposing the fields from each sheet, the field between the plates is E=σ/ϵ0E = \sigma/\epsilon_0 and zero outside. This is the standard result used in capacitor analysis.

Gauss's law applications

Electric fields of conductors

In electrostatic equilibrium, three results follow directly from Gauss's law:

  • The electric field inside a conductor is zero. If it weren't, free charges would move until it is.
  • Any net charge resides on the surface. A Gaussian surface just inside the conductor encloses zero field, so it encloses zero charge.
  • The field just outside the surface is E=σ/ϵ0E = \sigma/\epsilon_0, directed perpendicular to the surface. You can show this with a small pillbox Gaussian surface straddling the conductor's surface: one face is inside (zero field), the other is just outside.
Integral form, Gauss’s Law for Electric Fields — Electromagnetic Geophysics

Shielding and Faraday cages

A closed conducting shell screens its interior from external electric fields. Gauss's law shows why: in equilibrium, charges on the outer surface rearrange to cancel any external field inside the conductor. A Gaussian surface inside the conductor's bulk has zero flux, so the cavity inside is field-free regardless of what's happening outside.

This is the principle behind Faraday cages, used to shield sensitive electronics, protect occupants of vehicles struck by lightning, and isolate experiments from stray fields.

Capacitors and dielectrics

For a parallel-plate capacitor, Gauss's law gives the field between the plates as E=σ/ϵ0E = \sigma/\epsilon_0 (as derived above). The potential difference is then V=Ed=σd/ϵ0V = Ed = \sigma d/\epsilon_0, and the capacitance is C=ϵ0A/dC = \epsilon_0 A/d.

When a dielectric with permittivity ϵ=κϵ0\epsilon = \kappa \epsilon_0 fills the gap, bound charges on the dielectric surfaces partially cancel the free charge. Gauss's law in matter uses D\vec{D} (the displacement field) instead of E\vec{E}:

DdA=Qfree, enc\oint \vec{D} \cdot d\vec{A} = Q_{\text{free, enc}}

where D=ϵE\vec{D} = \epsilon \vec{E}. The capacitance increases by a factor of κ\kappa: C=κϵ0A/dC = \kappa \epsilon_0 A/d.

Limitations of Gauss's law

Non-symmetric charge distributions

Gauss's law is always true, but it's only useful for finding E\vec{E} when symmetry lets you simplify the surface integral. For an arbitrary charge distribution (say, a bent wire or a finite disk), you can't pull EE out of the integral, and the law gives you a single equation relating the flux to the charge without telling you the field at any particular point. In those cases, direct integration via Coulomb's law or numerical methods is the way to go.

Electric fields in matter

The basic form E=ρ/ϵ0\nabla \cdot \vec{E} = \rho/\epsilon_0 includes all charges (free and bound). In linear, isotropic dielectrics, you can work with D\vec{D} and free charges only, which keeps things manageable.

For nonlinear, anisotropic, or inhomogeneous materials, D\vec{D} and E\vec{E} are no longer simply proportional (D=ϵE\vec{D} = \overleftrightarrow{\epsilon} \cdot \vec{E} with a tensor permittivity, or D\vec{D} depends on E\vec{E} nonlinearly). Gauss's law still holds, but extracting E\vec{E} from it requires additional constitutive relations and often numerical techniques.

Gauss's law vs. Coulomb's law

Both laws describe how charges produce electric fields, and in fact Gauss's law can be derived from Coulomb's law (plus superposition) and vice versa. They're mathematically equivalent for electrostatics.

Similarities and differences

  • Coulomb's law gives you the field from a specified charge distribution by direct vector summation or integration. It works for any geometry.
  • Gauss's law gives you a constraint (total flux = enclosed charge/ϵ0\epsilon_0) that, with sufficient symmetry, determines E\vec{E} algebraically.
  • Coulomb's law is inherently an inverse-square law. Gauss's law encodes the same 1/r21/r^2 dependence but expresses it through flux, which is why it generalizes naturally to one of Maxwell's equations.

When to use each law

Use Coulomb's law when:

  • You have a small number of discrete charges.
  • The geometry lacks the symmetry needed for Gauss's law.
  • You need the field at a specific point from a known charge configuration.

Use Gauss's law when:

  • The charge distribution has spherical, cylindrical, or planar symmetry.
  • You want the field over an entire region rather than at a single point.
  • You're working with conductors in electrostatic equilibrium.

In many problems, especially at this level, you'll use both: Gauss's law to find the field in a symmetric region, and Coulomb-type integration (or the method of images, multipole expansions, etc.) for everything else.