Topic 12 of 14 18 min

Gauss's Law

Learning Objectives

  • Derive the expression for total electric flux through a sphere enclosing a point charge using Coulomb's law
  • State Gauss's law and explain the meaning of each quantity in it
  • List and justify the six important properties of Gauss's law
  • Apply Gauss's law to calculate the charge enclosed by a surface when the flux is known
  • Solve problems involving flux through cubes and cylinders in non-uniform electric fields
Loading...

Gauss’s Law

You have already seen that the electric flux through a surface tells you how many field lines pass through it. Now comes a remarkable result: if you wrap a closed surface around a charge and add up the flux through every tiny patch of that surface, the answer depends on nothing but the amount of charge sitting inside. It does not matter how big the surface is, what shape it takes, or where exactly the charge sits within it. This is Gauss’s law, and it is one of the most powerful tools in all of electrostatics.

Building Up to the Law: Flux Through a Sphere

The cleanest way to see why Gauss’s law works is to start with the simplest possible case. Place a single point charge qq at the centre of a sphere of radius rr, and calculate the total flux through the sphere step by step.

Fig 1.22: Flux through a sphere enclosing a point charge qq at its centre

Step 1: Write the flux through one small patch.

Pick any small area element ΔS\Delta\mathbf{S} on the surface of the sphere. The flux through this patch is the dot product of the electric field with the area vector:

Δϕ=EΔS=q4πε0r2r^ΔS(1.28)\Delta\phi = \mathbf{E} \cdot \Delta\mathbf{S} = \frac{q}{4\pi\varepsilon_0 r^2} \hat{\mathbf{r}} \cdot \Delta\mathbf{S} \qquad \text{(1.28)}

Here the field E\mathbf{E} comes straight from Coulomb’s law for a point charge. The unit vector r^\hat{\mathbf{r}} points radially outward from the charge at the centre to the area element on the surface.

Step 2: Recognise that r^\hat{\mathbf{r}} and ΔS\Delta\mathbf{S} are parallel.

On a sphere, the outward normal at every point lies along the radius at that point. This means r^\hat{\mathbf{r}} and ΔS\Delta\mathbf{S} point in the same direction everywhere on the surface. Their dot product simply gives the magnitude of ΔS\Delta\mathbf{S}:

r^ΔS=ΔS\hat{\mathbf{r}} \cdot \Delta\mathbf{S} = \Delta S

since the magnitude of a unit vector is 1. So the flux through one patch simplifies to:

Δϕ=q4πε0r2ΔS(1.29)\Delta\phi = \frac{q}{4\pi\varepsilon_0 r^2} \Delta S \qquad \text{(1.29)}

Step 3: Add up the flux from every patch.

To get the total flux, sum Δϕ\Delta\phi over all area elements covering the entire sphere:

ϕ=all ΔSq4πε0r2ΔS\phi = \sum_{\text{all } \Delta S} \frac{q}{4\pi\varepsilon_0 r^2} \Delta S

Every element sits at the same distance rr from the charge (they all lie on a sphere of radius rr), so the factor q4πε0r2\frac{q}{4\pi\varepsilon_0 r^2} is the same for every element and can be pulled out of the sum:

ϕ=q4πε0r2all ΔSΔS=q4πε0r2×S\phi = \frac{q}{4\pi\varepsilon_0 r^2} \sum_{\text{all } \Delta S} \Delta S = \frac{q}{4\pi\varepsilon_0 r^2} \times S

where SS is the total surface area of the sphere.

Step 4: Substitute the surface area and simplify.

The surface area of a sphere is S=4πr2S = 4\pi r^2. Plugging this in:

ϕ=q4πε0r2×4πr2=qε0(1.30)\phi = \frac{q}{4\pi\varepsilon_0 r^2} \times 4\pi r^2 = \frac{q}{\varepsilon_0} \qquad \text{(1.30)}

The r2r^2 in the denominator (from Coulomb’s law) cancels perfectly with the r2r^2 in the surface area. This cancellation is not a coincidence; it happens precisely because the electric field falls off as the inverse square of distance. The final result is beautifully simple: the total flux depends only on the charge and the permittivity of free space, with no dependence on the radius of the sphere at all.

The General Statement of Gauss’s Law

Equation (1.30) was derived for a sphere, but the result holds far more generally. Gauss’s law states:

The total electric flux through any closed surface SS equals the total charge enclosed by that surface divided by ε0\varepsilon_0:

ϕ=qε0(1.31)\phi = \frac{q}{\varepsilon_0} \qquad \text{(1.31)}

where qq is the algebraic sum of all charges inside SS.

The immediate consequence is this: if no charge sits inside a closed surface, the net flux through it is zero. Whatever field lines enter the surface from one side must leave from another, and the inward and outward contributions cancel exactly.

Verifying Zero Flux with a Cylinder

To see this cancellation in action, consider a closed cylinder placed with its axis parallel to a uniform electric field E\mathbf{E}. The cylinder has two flat circular end faces (call them face 1 on the left and face 2 on the right) and a curved side surface (face 3).

Fig 1.23: Flux of a uniform electric field through a closed cylindrical surface

The total flux is ϕ=ϕ1+ϕ2+ϕ3\phi = \phi_1 + \phi_2 + \phi_3.

Curved surface (face 3): At every point on the curved side, the outward normal is perpendicular to the cylinder’s axis, which means it is perpendicular to E\mathbf{E}. Since EΔS=EΔScos90°=0\mathbf{E} \cdot \Delta\mathbf{S} = E\,\Delta S \cos 90° = 0, the flux through the curved surface is:

ϕ3=0\phi_3 = 0

Left face (face 1): The outward normal points to the left, opposite to E\mathbf{E} (which points right). The angle between them is 180°180°, so:

ϕ1=ES1\phi_1 = -E\,S_1

Right face (face 2): The outward normal points to the right, in the same direction as E\mathbf{E}. The angle is 0°, so:

ϕ2=+ES2\phi_2 = +E\,S_2

Since the two faces have equal area (S1=S2=SS_1 = S_2 = S), the total flux is:

ϕ=ES+ES+0=0\phi = -ES + ES + 0 = 0

The net flux is zero, exactly as Gauss’s law predicts for a region containing no charge.

This example also works in reverse: whenever you find that the net flux through a closed surface is zero, you can conclude that the total charge inside is zero.

Six Key Properties of Gauss’s Law

Gauss’s law looks simple, but several subtleties deserve careful attention.

1. Valid for any closed surface. The closed surface you choose for applying Gauss’s law is called the Gaussian surface (the surface through which you evaluate the total flux). Its shape and size do not matter. A sphere, a cube, an irregular potato-shaped blob: Gauss’s law works for all of them. You choose whichever shape makes the calculation easiest.

2. qq includes all enclosed charges. The right-hand side of the law uses the algebraic sum of every charge sitting anywhere inside the surface. Positive and negative charges within the surface can partially or fully cancel each other.

3. The field on the surface is due to all charges, but the flux depends only on internal ones. This is a point that often causes confusion. The electric field E\mathbf{E} at any point on the Gaussian surface is produced by every charge in the universe, both inside and outside the surface. However, when you integrate this field over the entire closed surface, the contributions from outside charges produce equal amounts of inward and outward flux that cancel perfectly. Only the charges inside survive in the net flux.

4. The Gaussian surface must not pass through a discrete point charge. The electric field from a point charge blows up (grows without bound) as you approach the charge, so the field is not well defined at the location of a discrete charge. Your chosen surface must avoid such points. However, the surface can pass through a continuous charge distribution, where the field remains finite everywhere.

5. Symmetry makes Gauss’s law a powerful calculation tool. Although Gauss’s law is always true, it becomes especially useful for computing electric fields when the charge distribution has spherical, cylindrical, or planar symmetry. In such cases, you can pick a Gaussian surface that matches the symmetry, making the flux integral straightforward to evaluate.

6. Rooted in the inverse-square law. The entire derivation relied on the 1/r21/r^2 dependence of Coulomb’s law, which allowed the r2r^2 terms to cancel. If the force law had any other power of rr, the cancellation would fail and Gauss’s law would break down. This means any experimental violation of Gauss’s law would be direct evidence that the electrostatic force does not follow an exact inverse-square dependence.

Solved Example 1.10: Flux and Charge in a Cube

Problem: The electric field components in Fig. 1.24 are Ex=αx1/2E_x = \alpha x^{1/2}, Ey=Ez=0E_y = E_z = 0, where α=800\alpha = 800 N/C m1/2^{1/2}. The cube has side a=0.1a = 0.1 m, with its left face at x=ax = a and right face at x=2ax = 2a. Calculate (a) the flux through the cube, and (b) the charge within the cube.

Fig 1.24: Cube of side aa in a non-uniform electric field along the xx-axis

Solution

(a) Finding the flux

Since E\mathbf{E} has only an xx-component, the four faces whose outward normals point in the ±y\pm y or ±z\pm z directions are perpendicular to E\mathbf{E}. The dot product EΔS\mathbf{E} \cdot \Delta\mathbf{S} is zero for each of these four faces, so they contribute no flux. Only the left face (at x=ax = a) and the right face (at x=2ax = 2a) matter.

Field at the left face (x=ax = a):

EL=αa1/2E_L = \alpha\, a^{1/2}

The outward normal on the left face points in the x-x direction, which is opposite to E\mathbf{E}. The angle between them is 180°180°, so:

ϕL=EL×a2×cos180°=ELa2=αa1/2×a2=αa5/2\phi_L = E_L \times a^2 \times \cos 180° = -E_L\, a^2 = -\alpha\, a^{1/2} \times a^2 = -\alpha\, a^{5/2}

Field at the right face (x=2ax = 2a):

ER=α(2a)1/2E_R = \alpha\,(2a)^{1/2}

The outward normal on the right face points in the +x+x direction, same as E\mathbf{E}. The angle is 0°, so:

ϕR=ER×a2×cos0°=+ERa2=α(2a)1/2×a2\phi_R = E_R \times a^2 \times \cos 0° = +E_R\, a^2 = \alpha\,(2a)^{1/2} \times a^2

Net flux through the cube:

ϕ=ϕR+ϕL=α(2a)1/2a2αa1/2a2\phi = \phi_R + \phi_L = \alpha\,(2a)^{1/2}\, a^2 - \alpha\, a^{1/2}\, a^2

Factor out αa1/2a2=αa5/2\alpha\, a^{1/2}\, a^2 = \alpha\, a^{5/2}:

ϕ=αa5/2(21)\phi = \alpha\, a^{5/2}\left(\sqrt{2} - 1\right)

Substitute the numbers (α=800\alpha = 800 N/C m1/2^{1/2}, a=0.1a = 0.1 m):

ϕ=800×(0.1)5/2×(21)\phi = 800 \times (0.1)^{5/2} \times (\sqrt{2} - 1)

(0.1)5/2=(0.1)2×(0.1)1/2=0.01×0.3162=3.162×103(0.1)^{5/2} = (0.1)^2 \times (0.1)^{1/2} = 0.01 \times 0.3162 = 3.162 \times 10^{-3}

ϕ=800×3.162×103×0.4142=1.05 N m2 C1\phi = 800 \times 3.162 \times 10^{-3} \times 0.4142 = 1.05 \text{ N m}^2 \text{ C}^{-1}

(b) Finding the enclosed charge

Apply Gauss’s law: ϕ=q/ε0\phi = q/\varepsilon_0, which gives q=ϕε0q = \phi\,\varepsilon_0.

q=1.05×8.854×1012=9.27×1012 Cq = 1.05 \times 8.854 \times 10^{-12} = 9.27 \times 10^{-12} \text{ C}

The cube encloses approximately 9.27×10129.27 \times 10^{-12} C of charge.

Solved Example 1.11: Flux Through a Cylinder in a Symmetric Field

Problem: An electric field is uniform and points in the +x+x direction for positive xx, and uniform with the same magnitude but in the x-x direction for negative xx. Specifically, E=200i^\mathbf{E} = 200\,\hat{\mathbf{i}} N/C for x>0x > 0 and E=200i^\mathbf{E} = -200\,\hat{\mathbf{i}} N/C for x<0x < 0. A right circular cylinder of length 20 cm and radius 5 cm is centred at the origin with its axis along the xx-axis, so one flat face is at x=+10x = +10 cm and the other at x=10x = -10 cm. Find (a) the net outward flux through each flat face, (b) the flux through the curved side, (c) the net outward flux through the cylinder, and (d) the net charge inside the cylinder.

Fig 1.25: Cylinder centred at the origin in a symmetric field that reverses direction at x=0x = 0

Solution

(a) Flux through each flat face

Left face (at x=10x = -10 cm): Here the field is E=200i^\mathbf{E} = -200\,\hat{\mathbf{i}} N/C (pointing in the x-x direction). The outward normal to the left face also points in the x-x direction. Since E\mathbf{E} and the outward normal are parallel:

ϕL=E×ΔS=200×π(0.05)2=200×π×0.0025=+1.57 N m2 C1\phi_L = E \times \Delta S = 200 \times \pi(0.05)^2 = 200 \times \pi \times 0.0025 = +1.57 \text{ N m}^2 \text{ C}^{-1}

(The flux is positive because the field is leaving the cylinder through this face.)

Right face (at x=+10x = +10 cm): Here the field is E=200i^\mathbf{E} = 200\,\hat{\mathbf{i}} N/C (pointing in the +x+x direction). The outward normal to the right face also points in the +x+x direction. Again, E\mathbf{E} and the outward normal are parallel:

ϕR=E×ΔS=200×π(0.05)2=+1.57 N m2 C1\phi_R = E \times \Delta S = 200 \times \pi(0.05)^2 = +1.57 \text{ N m}^2 \text{ C}^{-1}

Both flat faces give the same outward flux of +1.57+1.57 N m2^2 C1^{-1}.

(b) Flux through the curved side

At every point on the curved surface, E\mathbf{E} (pointing along ±x\pm x) is perpendicular to the outward normal (which points radially away from the axis). Since EΔS=0\mathbf{E} \cdot \Delta\mathbf{S} = 0 everywhere on the curved surface:

ϕside=0\phi_{\text{side}} = 0

(c) Net outward flux through the cylinder

ϕ=ϕL+ϕR+ϕside=1.57+1.57+0=3.14 N m2 C1\phi = \phi_L + \phi_R + \phi_{\text{side}} = 1.57 + 1.57 + 0 = 3.14 \text{ N m}^2 \text{ C}^{-1}

(d) Net charge inside the cylinder

Using Gauss’s law, q=ε0ϕq = \varepsilon_0\,\phi:

q=8.854×1012×3.14=2.78×1011 Cq = 8.854 \times 10^{-12} \times 3.14 = 2.78 \times 10^{-11} \text{ C}

The cylinder encloses a net charge of 2.78×10112.78 \times 10^{-11} C. The non-zero flux (and hence the non-zero enclosed charge) arises because the field points outward on both flat faces, so flux leaves the cylinder from both ends without any compensating inward flux.