Required math: vectors, calculus
Required physics: electrostatics
Reference: Griffiths, David J. (2007) Introduction to Electrodynamics, 3rd Edition; Prentice Hall – Sec 2.2.
Gauss’s law in electrostatics is a relation between the charge contained by a closed surface and the electric field that crosses that surface. The easiest way to see how it works is to begin with a point charge at the origin and a spherical surface centred at the origin. By symmetry the electric field due to the point charge is
The flux of this field through the sphere is defined as the surface integral of the component of the field that is normal to the surface. That is the flux is defined as
where the integral extends over the surface, and is a differential vector whose magnitude is a differential area element and whose direction is normal to the surface at each point.
In the case of a sphere, it is not surprisingly easiest to use spherical coordinates, and in that case
That is, the area element points radially outwards at each point on the sphere.
Combining these results, we see that for a point charge
That is, the flux due to a point charge depends only on the magnitude of the charge and not on the radius of the sphere that contains it. This makes intuitive sense, since if we imagine a point charge ‘emitting’ the electric field, then as long as we provide a surface that wraps up the charge completely, the flux through that surface will be the same regardless of the size of the surface. In fact, it shouldn’t depend on the shape of the surface either, so long as that surface completely encloses the charge. A more general derivation using an arbitrary closed surface is possible (using the solid angle subtended by the elemental area), but it adds nothing to the general idea.
From here, we can generalize the idea to a collection of point charges using the principle of superposition, and get, for a collection of point charges, all enclosed by the surface:
For a continuous charge distribution, where the charge density is , we get
where it is important to note that the integral on the left is over the enclosing surface, while that on the right is over the volume enclosed by that surface. This is the integral form of Gauss’s law for electrostatics.
Using the divergence theorem, we can equate the charge density with the divergence of the electric field:
This is the differential form of Gauss’s law. Both these forms are very powerful in solving various types of problems since they allow electric fields to be calculated, often without requiring complicated integrals.