# Divergence Theorem Proof -Example, Gauss' Theorem

In Lecture 8 we used the divergence theorem to more easily compute surface integrals. In this lecture we do a 'proof' of the divergence theorem and do an example of it's use - Gauss' Theorem.

Given a closed surface S, with an outward pointing unit normal, n, the Divergence Theorem says: We take F = Mi + Nj + Pk
We will perform this proof only for Convex regions. That is for regions like the one pictured below: Using the geometric definition of the dot product, and because n is a unit normal, we can dot it with the basis vectors to get the angles between n and the axes. That is:

n (dot) i = cos A - The angle from n to the x-axis
n (dot) j = cos B - The angle from n to the y-axis
n (dot) k = cos C - The angle from n to the z-axis

n = cos A i + cos B j + cos C k since the dot product of n with each basis vector is that component of n.

Now we restate the Divergence Theorem using the components of the vector field F. Next we begin the proof.  The last step involves taking the integral of the derivitive of P. This is like multiplying by one. It doesn't change anything, you can do it anytime.

Looking at the last term, what we really have is a volume integral. Evaluating the inner integral, we have [ f1(x,y) - f2(x,y) ] * dA. This is the volume of a differential element of the region. Adding all of them up gives us the volume of the region: This is the result we required. Thus we have proved the z terms are equal.
The other terms work out in a similar mannar. If the region we have is not a convex region, we can costruct it by placing convex regions next to each other and summing up the results. Thus, we have proved the Divergence Theorem for a large number of regions.

### Gauss' "Law"

Our Vector Field is E, the electric field due to a point charge, q, sitting at the origin.

E = q r / r^3
r = xi + yj + zk
r = ||r|| = (x^2 + y^2 + z^2) ^ 1/2

First we will use the Divergence Theorem to calculate the flux accross a hollow sphere. It is important that we are using a hollow sphere, since there is a discontinuity in E at the origin. If our volume included the origin, we would not be allowed to use the Divergence Theorem. But since the discontinuity is discluded, we can use the theorem. This works for any hollow shape. The flux entering the volume is equal and opposite to the flux leaving it.

Flux accross any surface surrounding q is equal to the flux accross a sphere surrounding q. We must calculate this flux directly, since it encloses a volume with a discontinuity in E. Lecture given by Prof. Alan Zehnder on 9/20/95
Lecture written by Lawrence C. Weintraub and edited by Aric Shafran