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
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 at the centre of a sphere of radius , and calculate the total flux through the sphere step by step.
Fig 1.22: Flux through a sphere enclosing a point charge at its centre
Step 1: Write the flux through one small patch.
Pick any small area element on the surface of the sphere. The flux through this patch is the dot product of the electric field with the area vector:
Here the field comes straight from Coulomb’s law for a point charge. The unit vector points radially outward from the charge at the centre to the area element on the surface.
Step 2: Recognise that and are parallel.
On a sphere, the outward normal at every point lies along the radius at that point. This means and point in the same direction everywhere on the surface. Their dot product simply gives the magnitude of :
since the magnitude of a unit vector is 1. So the flux through one patch simplifies to:
Step 3: Add up the flux from every patch.
To get the total flux, sum over all area elements covering the entire sphere:
Every element sits at the same distance from the charge (they all lie on a sphere of radius ), so the factor is the same for every element and can be pulled out of the sum:
where is the total surface area of the sphere.
Step 4: Substitute the surface area and simplify.
The surface area of a sphere is . Plugging this in:
The in the denominator (from Coulomb’s law) cancels perfectly with the 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 equals the total charge enclosed by that surface divided by :
where is the algebraic sum of all charges inside .
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 . 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 .
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 . Since , the flux through the curved surface is:
Left face (face 1): The outward normal points to the left, opposite to (which points right). The angle between them is , so:
Right face (face 2): The outward normal points to the right, in the same direction as . The angle is , so:
Since the two faces have equal area (), the total flux is:
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. 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 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 dependence of Coulomb’s law, which allowed the terms to cancel. If the force law had any other power of , 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 , , where N/C m. The cube has side m, with its left face at and right face at . Calculate (a) the flux through the cube, and (b) the charge within the cube.
Fig 1.24: Cube of side in a non-uniform electric field along the -axis
Solution
(a) Finding the flux
Since has only an -component, the four faces whose outward normals point in the or directions are perpendicular to . The dot product is zero for each of these four faces, so they contribute no flux. Only the left face (at ) and the right face (at ) matter.
Field at the left face ():
The outward normal on the left face points in the direction, which is opposite to . The angle between them is , so:
Field at the right face ():
The outward normal on the right face points in the direction, same as . The angle is , so:
Net flux through the cube:
Factor out :
Substitute the numbers ( N/C m, m):
(b) Finding the enclosed charge
Apply Gauss’s law: , which gives .
The cube encloses approximately 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 direction for positive , and uniform with the same magnitude but in the direction for negative . Specifically, N/C for and N/C for . A right circular cylinder of length 20 cm and radius 5 cm is centred at the origin with its axis along the -axis, so one flat face is at cm and the other at 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
Solution
(a) Flux through each flat face
Left face (at cm): Here the field is N/C (pointing in the direction). The outward normal to the left face also points in the direction. Since and the outward normal are parallel:
(The flux is positive because the field is leaving the cylinder through this face.)
Right face (at cm): Here the field is N/C (pointing in the direction). The outward normal to the right face also points in the direction. Again, and the outward normal are parallel:
Both flat faces give the same outward flux of N m C.
(b) Flux through the curved side
At every point on the curved surface, (pointing along ) is perpendicular to the outward normal (which points radially away from the axis). Since everywhere on the curved surface:
(c) Net outward flux through the cylinder
(d) Net charge inside the cylinder
Using Gauss’s law, :
The cylinder encloses a net charge of 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.
