Gauss's Law
From HvWiki
Electric flux and charge
Why is the direction of the electric field chosen to be directed outward from positive charges and inward towards negative charges. It turns out that it is a mathematical convenience brought about by Gauss's Law. That is
- "for any closed surface that surrounds a volume distribution of charge, the total electric flux passing through that surface must be equivalent to the total enclosed charge."
Another consequence of this is
- "all field lines must emanate from or terminate on a charge."
Mathematically, this means
,
where
is a unit vector that points outward from the surface.
If we try it for a sphere of radius a enclosing a point charge q1 at the origin (whose field is defined by
in the preceding section), we get
Carrying out the integration, it is easy to see that Qencl = q1. The unit vector is not explicitly seen here, but it is easy to verify that the direction of electric field of the point charge coincides perfectly with the radially directed unit vector that points away (outward) from our chosen spherical surface. Because of this choice of conventions, the electric field from positive charges is assumed to point outward (and vice-versa for negative charges). This also makes Gauss's Law consistent with the Divergence Theorem, which will be covered in more detail later.
An interesting example: the Electric Dipole
Imagine two charges of equal magnitude, but opposite sign spaced by a small distance a. What happens when we apply Gauss's Law to a spherical surface enclosing the two charges? Since we know that the total electric flux passing through the surface must be equivalent to the enclosed electric charge, the surface integral that defines Gauss's Law must be zero. Let us briefly prove it.
The electric field of the dipole configuration (if the observation distance R is much larger than the dipole spacing 2b) is
(The derivation of the dipole field will come a bit later.) Notice the inverse cube variation with distance for the dipole field.
Now, let us apply the Gauss integral over the same sphere of radius a used in the point-charge case. The unit vector
, so only the radial component of the electric field
contributes and we have (after recognising that
)
After carrying out the integration, we see that
indeed vanishes. This is because integrating the product of sine and cosine over a half-period yields zero. Intuitively, this means that the number of "field lines" leaving the spherical surface is exactly equal to the "field lines" entering the surface. See the accompanying illustration.
The Divergence Theorem
Gauss's Law is closely related to the Divergence Theorem of multivariable calculus. In fact, Gauss's law forms part of the definition of divergence, viz.
where
represents a closed surface around the volume
. In fact, we can use a hexahedral volume with rectangular sides to illustrate the definition in more detail.
In the figure, consider the two faces "1" and "2" at (x, y, z) and (x, y+dy, z). The normal unit vectors are
and
, respectively. At (x, y, z) the flux is given by
.
At "2", we have
.
If we take the difference in the fluxes for these two faces and divide by the incremental volume
, we have
In the limit as
, this becomes the partial derivative in y. If we use the same procedure for the other four sides, we arrive at the definition for divergence in rectangular coordinates. (See Divergence for a full set of definitions in other coordinate systems.)
.
Going back to the surface integral definition, we see that the surface integral is just the charge (which we can call ΔQ) enclosed in the incremental (small) volume ΔV. We see that
.
The expression under the limit is just an expression of the charge density
at the point (x, y, z). Hence we have the first of Maxwell's Equations
.
In fact, integrating this equation over some volume
yields
.
This is the Divergence Theorem (which will be very useful later on).

