# MyOpenMath/Solutions/Gauss law (TF)/Proof

Gauss's law is based on a coincidence that might not strike you as very remarkable: The surface area of a sphere grows as the __square__ of the radius and the Coulomb force law falls as the __inverse square__of the radius:

Serious consequences for the theory of electromagnetism (and the nature of light) will result if it is ever found necessary to replace by something like in this formula. For this reason, we our discussion of Gauss's law begins with the area of a sphere. First we review the radian and the fact that the circumference of a circle is (it is also important to be aware of a formula for the surface area of a sphere: .)

## The radian and the steradianEdit

The radian is defined as arclength divided by radius: . If , then we have an angle of 1 radian, as shown to the left. A full circle measures as 2π radians.

For solid angle, we replace the circle by a sphere of radius r, and we replace the arclength by an area on that sphere. Instead of the radian defined as the ratio of two lengths, , we use the steradian as the ratio two entities that are squares of lengths, where Ω is the capital Greek *omega*, A is an area situated on a sphere of radius r. Since the area of a sphere can be shown to be 4πr^{2}, the solid angle of an entire sphere is 4π.

For a sufficiently small solid angle, the portion of the sphere where the area A is calculated is so small that we may calculate the area as if the sphere were a flat surface. In contrast with angles, where two arcs described by the same θ and r have the same shape, there is no restriction on the shape of the area associated with a solid angle.

## The electric field near a two-dimensional surfaceEdit

Gauss's law is about an integral over a closed surface. When thinking about surface integrals, one needs to imagine dividing up the surface into small sections, typically small quadrilaterals. A closed surface has an "inside" and "outside", such as the bent peanut shown to the left.^{[1]}

To construct these differential surface elements it helps to think about differential (small) solid angles. Consider a small shape of area on the surface of a sphere with a sufficiently large radius :

Shown to the right is a solid angle centered at point **O** with a solid angle defined by the circle shown in yellow (dotted outline) at the far right of the figure. Since this is a 3-D image, the circle is depicted as an ellipse from this perspective. The Gaussian surface in this figure surrounds point **O**, and the surface is shaped like a bent peanut so that the cone exits, re-enters, and then again exits the Gaussian surface.

If the surface's outward unit normal is not oriented along the vector (from origin to surface), we cannot use the differential area to calculate the differential solid angle because the differential area of the Gaussian surface is too large. This is illustrated below, where the solid angle differential is now a small rectangle. The surface with polka-dots represents a portion of the Gaussian surface, and all the points on this surface are not equidistant from the origin. To calculate the solid angle we require the yellow surface, which strictly speaking is the surface of a sphere of radius .

This figure also allows us to visualize the components of a differential surface area. The polka-dotted surface area is the sum of two surface areas, that are perpendicular to each other:

- ,

where , and,

is the component of parallel to . The perpendicular component is shown in the figure as the unmarked bottom rectangle in the right triangular prism whose other two sides are the polka-dotted and yellow shaded rectangles in the figure. The reader can verify the Pythagorean identity, .

We can now express the solid angle differential in terms of a small area that is not necessarily perpendicular to the radius:

- ,

where is the angle between and . This identity will be used to construct our "proof" of Gauss's law.^{[2]}

## Vector fieldsEdit

A vector field is a vector function of the three spatial dimensions (it can also be a function of time .) If you include non-Cartesian coordinate systems, vector fields can be described in an number of ways. For example,

define the same field, first in Cartesian coordinates, and then in spherical coordinates.

## A theorem for radially directed fieldsEdit

If the only non-vanishing component of a vector field is radial, we have,

- ,

which implies that the and components both vanish, leaving us with only one component of the vector field:

It is not always easy to find all the components of the surface elements (where we have defined .) But fortunately, we have already derived a simple formula for :

- ,

where is the differential solid angle as measured from the origin (which is the tail of .) If a vector field of the three spatial variables is always directed towards or away from the origin, then the surface integral for **any shape** the encloses the origin is given by:

- ,

where in a calculus class you might use . If the origin is situated inside a simple shape like an ellipsoid or even a cube, we just need to define the distance to the origin as a function of the two angular variables:

- ,

where is some function. Two simple examples involve any constant value of :

- is a sphere of radius R
_{0} - is a cylinder of radius R aligned along the z axis (and θ is measured relative to that axis.)

Later we discuss the complexity associated with more complicated shapes such as the "bent peanut" described above, where it is necessary to introduce r as a multi-valued function because a ray directed from the origin intersects the surface more than once.

A radially directed vector field ( ) can be integrated over a simple Gaussian surface defined by , using this expression:

In the last step we set to highlight the fact that no restriction is placed on the vector field, other than the fact that it always points in the radial ( ) direction. Defining the Gaussian surface for the "bent-peanut" shape shown above is a bit tricky because for one orientation (i.e., one value of and ) one ray will pierce the surface at more than one location.

#### Special case: F_{r} does not depend on θ or φEdit

The simplest application of this theorem is the case where depends only on , and something interesting happens when dependence is inverse square:

where the origin is defined at where and denotes integration over a closed surface of any shape. To understand why the integral vanishes if the origin is outside the Gaussian surface, note any ray ( vector) that pierces the Gaussian surface from the outside will also exit at a place with the opposite sign. For any such ray (i.e., that originates from outside Gaussian surface) the Riemann sum of the differentials will occur in pairs and will not sum to . Instead they will cancel as equal and opposite pairs:

## Generalization of Gauss's Law beyond the case of a single point chargeEdit

For arbitrary charge distributions, it can be shown that:

- ,

where,

- ,

is the net enclosed charge, which can be a sum over charges or a volume integral (e.g. dx'dy'dz') over charge density. Since mathematically rigorous arguments for this generalization are beyond the scope of most first-year physics courses, this section will only outline the arguments that extend Gauss's law in this fashion.

### Multiple point chargesEdit

The discussion so far has been restricted to a single point charge, with the added stipulation that the origin of the coordinate system is situated at the location of that point charge. First, we must recognize the implicit assumption that Gauss's Law remains valid even if the coordinate system is moved to a different location. Could be accomplished by a change of variables, , where the constants represent the location of the point charge in the original coordinate system. This permits us to use a property called superposition to show that electric field due to a sum of charges is the sum of the electric field due to individual charges:

where is the field due to . We can also appeal to linearity to argue:

### Continuous charge densityEdit

Some readers might find it interesting that the sum over point charges can also be expressed as an integral over a charge density if we use the three-dimensional Dirac delta function:

## Images from Commons that might be relevantEdit

## galleryEdit

- ↑ Even a tiny hole in the peanut would convert it into an open surface. Open surfaces have "boundarys", and rim of the hole would be the boundary of a peanut with a hole in it.
- ↑ "Proof" was placed in quotation marks because mathematicians prefer to use analysis instead of the plausibility arguments physicists are often fond of.