The divergence ∇⋅F of a differentiable vector function F is a Scalar field that represents the volume density of the outgoing flux of F from an infinitesimal volume around a given point. In simpler terms, it represents how F "emanates" from a point. Positive divergence means the function emanates outwards from a source, negative divergence means the function compresses inwards towards a sink.
It is linked to the flux by the divergence theorem.
In Cartesian coordinates, the divergence can be written as
∇⋅F=(∂x∂+∂y∂+∂z∂)⋅(Fx,Fy,Fz)=∂x∂Fx+∂y∂Fy+∂z∂Fz=i=1∑3∂i∂Fi
where i=x,y,z denotes the axis in the last expression.
Useful results#
Given a generic position vector r=rr^, the following useful results hold:
∇⋅r=3,∇⋅(rr)=r2,∇⋅(r2r)=r21,∇⋅(r3r)=4πδ3(r),∇⋅(r4r)=−r41
where δ3(r) is the three-dimensional Dirac delta. For proof of ∇⋅(r/r3)=4πδ3(r) see Electric field > Divergence.
In curvilinear coordinates#
Say the function F has the generic form
F=Fuu^+Fvv^+Fww^
We want to evaluate the flux
∮SF⋅da
where S is the surface bounding an infinitesimal volume created by moving in each direction by an amount (du,dv,dw) respectively. Since (u^,v^,w^) is a orthonormal basis, the volume formed is a rectangular solid (in the infinitesimal limit), and the sides have lengths (dlu,dlv,dlw)=(f du,g dv,h dw), with f, g and h some functions that depend on the coordinate system of choice (see Curvilinear coordinates functions). Since we are working with a rectangular solid, we can break the surface down into rectangular faces glued onto each other.
The "front" surface i
da=−(gh) dvdwu^
so that
F⋅da=−(ghFu) dvdw
The "back" surface is identical, but with the sign flipped and evaluated on u+du instead of du. For any differentiable function, we have
F(u+du)−F(u)=dudFdu
the front and back surface are in total
[∂u∂(ghFu)] dudvdw=fgh1∂u∂(ghFu) dτ
since dτ=dludlvdlw. The "left" and "right" surfaces, using the same logic, give
fgh1∂v∂(fhFv) dτ
and the "top" and "bottom" give
fgh1∂w∂(fgFw) dτ
Thus, the whole integral gives
∮SF⋅da=fgh1[∂u∂(ghFu)+∂v∂(fhFv)+∂w∂(fgFw)] dτ
The coefficient of dτ defines the divergence in curvilinear coordinates:
∇⋅F=fgh1[∂u∂(ghFu)+∂v∂(fhFv)+∂w∂(fgFw)]
and therefore we get
∮SF⋅da=(∇⋅F) dτ
which is almost the divergence theorem. The key difference is that this has only been applied onto an infinitesimal volume, not an arbitrary one. But the extension is easy: any (finite) volume can be broken down into infinitesimals, but the issue that needs to be fixed is that simply summing all the contributions may not give the correct results. Of course, the divergence theorem integrates over the external bounding surface, whereas a simple sum integrates over the surfaces of all infinitesimal chunks, including internal ones. Fortunately, each internal surface occurs at the boundary of another adjacent surface (they are all back-to-back), and since da always points outwards, the normal vector is mirrored for adjacent pairs, which means that they cancel out. This occurs everywhere surfaces touch, which is to say everywhere except on the outside where there are no more surfaces. Thus, the only surfaces that don't cancel are though outside, which when summed over produce the total bounding are of a volume. Thus, we can write
∮SF⋅da=∫V(∇⋅F) dτ
which is the actual divergence theorem.