Skip to main content

Gauss's Law

In this section, we will explore Gauss's Law, a fundamental law of electrostatics that is used to calculate electric fields. It is often much easier to use Gauss's Law than to calculate electric fields directly with Coulomb's Law, especially in situations with high symmetry.

Table of Contents

Electric Flux

I discussed the concept of flux in the Math section, where we talked about the flux of a vector field through a surface. Hence, this is just a review of that concept.

In the context of electrostatics, we are interested in the electric flux through a surface.

The electric flux through a surface is defined as the electric field passing through the surface, weighted by the area of the surface. It can be thought of using a fluid analogy; the field lines are like a fluid, and the flux is the amount of fluid passing through the surface per unit area. Alternatively, consider the electric field as a light source, and the flux is the amount of light passing through the surface.

The electric flux through a surface is given by:

where is the electric field and is an infinitesimal area vector.

Gauss's Law

Consider a sphere of radius with a point charge at its center. Since it's a sphere, the electric field will be radially symmetric, pointing equally outwards in all directions.

We know, from Coulomb's Law, that on any point on the sphere, the electric field is given by:

Integral Form

We want to calculate the electric flux through the sphere. The key point is that since the electric field is constant, we can bring out of the integral:

Now, imagine that instead of a sphere, we have a surface of any shape. Each patch on the sphere corresponds to a patch on the new surface. This new patch on the surface will have a different distance and area.

Now, notice that as the distance from the patch to the charge increases, (1) the electric field decreases by and (2) the area increases by . This means that they cancel out, and the flux through the new surface will be the same as the flux through the sphere.

As such, for any surface enclosing a charge, the electric flux through the surface is . This is known as Gauss's Law:

Gauss's Law, Integral Form: For any closed surface enclosing a charge , the electric flux through the surface is given by:

For charges outside the surface, the flux through the surface is zero. The reason for this is that while the field lines pass through the surface, eventually the same amount of field lines will also exit the surface. Hence, the flux from each time a field line enters the surface is canceled out by the flux from each time a field line exits the surface. So the total flux is zero.

Differential Form

The integral form of Gauss's Law is useful for calculating the electric field for surfaces. We can also use an equivalent form of Gauss's Law to describe the electric field at a single point.

We can imagine slowly shrinking the surface enclosing the charge until it becomes infinitesimally small, and consider the flux per unit volume. So, taking the limit as the surface shrinks to zero, i.e. , we get:

The left-hand side is known as the divergence of the electric field, denoted . On the right, we have the charge density . Then, this becomes the differential form of Gauss's Law:

Gauss's Law, Differential Form: For any volume enclosing a charge density , the divergence of the electric field is given by:

What we've done here is known as the Divergence Theorem, which, more generally, states:

(The Divergence Theorem should make a lot of intuitive sense. The divergence of a vector field is essentially the flux per unit volume. Wouldn't it make sense that the total flux through a surface is equal to the flux per unit volume integrated over the volume? It's essentially analogous to saying that the displacement of an object is the velocity integrated over time.)

Deriving the Differential Form Directly

We can also derive the differential form of Gauss's Law directly from the definition of the electric field.

We know that the electric field is given by:

Where the subscript denotes the vector from the charge to the point in space.

Taking the divergence of this expression, we get:

We know that the divergence of is:

So the divergence is zero, right? Not quite. Cancel out the terms is only valid for . Instead, only for .

Let's see how we can use another method to calculate the divergence at - applying the Divergence Theorem. For notational simplicity, let's denote as .

Then, the Divergence Theorem states:

We can calculate the left-hand side by considering a sphere of radius :

Hence, the divergence of is:

We will need to be a bit more precise with notation. Denote as the position of the test charge and as the position of the charge density. Then, the vector is .

Rewriting this with the Dirac delta function , we get:

Note that is a function of (the position of the charge).

Going back to the expression for the electric field:

We need to use a property of the Dirac delta function:

(This only applies when the integral is over the entire space. This is fine for our purposes, since outside of the charge distribution, the charge density is zero, so the integrand is zero. Also, you can derive this property by first considering it in 1D by considering the value of and then generalizing to 3D.)

Then, the divergence of the electric field is:

Which is the differential form of Gauss's Law.