**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.

## Trackbacks

[…] Gauss’s lawin electrostatics relates the integral over a closed surface of the electric field to the integral over the enclosed volume of the charge density. That is […]

[…] charge, then the electric field has to point away from the surface on both sides. We can use Gauss’s law to work out by how much the electric field is […]

[…] can be expressed in terms of the electric field by using a bit of vector calculus. We know from Gauss’s law for electrostatics […]

[…] 3. The charge density everywhere inside a conductor. This follows from Property 1 and Gauss’s law. Since the field is zero everywhere inside, then everywhere inside as well. Note that this does […]

[…] this case, we can use the differential form of Gauss’s law: . In spherical coordinates, the divergence for a vector field with its component equal to zero […]

[…] the right is over the volume enclosed by the surface. In electrostatics, the integral on the right evaluates to the total charge contained in the volume divided […]

[…] field due to an infinite wire can be found using Gauss’s law in cylindrical coordinates. For the wire carrying charge density we have, using a Gaussian […]

[…] isn’t quite as nice as Gauss’s law because of the extra -dependent factors, but if we work out the volume integral of the potential […]

[…] seen that the electric field obeys Gauss’s law, which in differential form […]

[…] seen that the electric field obeys Gauss’s law, which in differential form […]

[…] Gauss’s law, we can work out if we work out the integrals below for a sphere of radius […]

[…] in the last line we used Gauss’s law relating the field to the charge […]

[…] we add a free charge density to the bound charge density, then the total charge density is . From Gauss’s law we know that . We can combine the two divergence terms to […]

[…] electrostatics, Gauss’s law states […]

[…] next step is to look at Gauss’s law in differential form. This has the […]

[…] to a static collection of masses can each be derived as the gradient of a potential. As a result, Gauss’s law applies to both types of field, so we can […]

[…] compare this to electrostatics, we can use Gauss’s law to calculate the electric field due to an infinite plane of charge with surface density and we […]