Divergence of Vector Field
Divergence and the Divergence Theorem
Concept of Divergence
Divergence is a vector differential operation that measures the net outward flux of a vector field from an infinitesimally small volume around a given point. It is obtained by taking the dot product of the Del operator (∇) with a vector field A:
Definition: At any point P, the divergence of a vector field A is the net outward flux per unit volume as the volume shrinks to zero around P.
Positive divergence (∇⋅A>0): Net flux is away from the point — the field is diverging or "spreading out".
Negative divergence (∇⋅A<0): Net flux is toward the point — the field is converging or "sinking in".
Zero divergence (∇⋅A=0): The incoming and outgoing fluxes are equal — the field is solenoidal.
In electromagnetic theory, divergence is essential for understanding Gauss's law for electricity and magnetism, and it plays a central role in formulating the relationship between fields and their sources.
Mathematical Representation in Cartesian Coordinates
In the Cartesian coordinate system, the Del operator is:
For a vector field A=Axx^+Ayy^+Azz^ (where each component is a function of x,y,z), the divergence is:
Derivation from First Principles
To confirm that ∇⋅A indeed gives the net outward flux per unit volume, consider a small differential volume (a cube) with dimensions dx, dy, dz. The center of the cube is at (x,y,z).
Front surface (at x+dx/2): outward normal in +x^ direction, area dydz. Flux = Ax(x+dx/2,y,z)⋅dydz.
Back surface (at x−dx/2): outward normal in −x^ direction, area dydz. Flux = −Ax(x−dx/2,y,z)⋅dydz.
The net flux in the x-direction is:
Using the Taylor series expansion and keeping only first-order terms (since dx is infinitesimal):
Subtracting gives ∂x∂Axdx, so:
Similarly, for the y-direction:
For the z-direction:
The total net outward flux through the closed surface is:
Dividing by the volume dv=dxdydz gives the net outward flux per unit volume:
Hence, ∇⋅A exactly represents the divergence.
The Divergence Theorem
The divergence theorem (also called Gauss's theorem) relates the volume integral of the divergence of a vector field to the closed surface integral of the field over the boundary of that volume:
Left side: total outward flux through the closed surface S.
Right side: volume integral of the divergence over the volume V enclosed by S.
This theorem provides a powerful alternative to directly evaluating surface integrals, often simplifying flux calculations.
Divergence in Cylindrical Coordinates
In the cylindrical coordinate system (ρ,ϕ,z), the divergence expression is:
Intuitive Understanding
ρ-direction: The surface area perpendicular to ρ is ρdϕdz, which increases with ρ. Therefore, the flux calculation must account for this changing area, leading to the term ρ1∂ρ∂(ρAρ).
ϕ-direction: The surface area is dρdz, independent of ϕ. The flux variation comes only from Aϕ, giving ρ1∂ϕ∂Aϕ.
z-direction: The surface area is ρdϕdρ, independent of z, so the term is simply ∂z∂Az.
The factor 1/ρ appears because the differential volume in cylindrical coordinates is dv=ρdρdϕdz, and the net flux in each direction must be divided by this volume to obtain the divergence.
Divergence in Spherical Coordinates
In the spherical coordinate system (r,θ,ϕ), the divergence expression is:
Intuitive Understanding
r-direction: The surface area perpendicular to r is r2sinθdθdϕ, which grows as r2. This necessitates the term r21∂r∂(r2Ar).
θ-direction: The surface area is rsinθdϕdr, and it varies with sinθ. Hence the term rsinθ1∂θ∂(Aθsinθ).
ϕ-direction: The surface area is rdrdθ, independent of ϕ. Only Aϕ changes, giving rsinθ1∂ϕ∂Aϕ.
The differential volume in spherical coordinates is dv=r2sinθdrdθdϕ, and the factors 1/(r2) and 1/(rsinθ) arise from normalizing the net fluxes by this volume.
Example: Applying the Divergence Theorem
Given: A vector field in spherical coordinates:
Closed surface defined by limits:
r: 0 to 4
θ: 0 to π/2 (top hemisphere)
ϕ: 0 to 3π/2 (three quarters of a full revolution)
This describes a three-quarter hemisphere (a spherical cap covering 3/4 of the upper half of a sphere of radius 4).
Goal: Find the total outward flux Φ through this closed surface using the divergence theorem.
Step 1: Compute ∇⋅A
Using the spherical divergence expression:
Radial term: Ar=r
r21∂r∂(r2⋅r)=r21∂r∂(r3)=r21⋅3r2=3Theta term: Aθ=−3
rsinθ1∂θ∂(−3sinθ)=rsinθ1(−3cosθ)=−r3⋅sinθcosθPhi term: Aϕ=5ϕ
rsinθ1∂ϕ∂(5ϕ)=rsinθ1⋅5=rsinθ5
Therefore:
Step 2: Set up the Volume Integral
The divergence theorem states:
In spherical coordinates, dv=r2sinθdrdθdϕ. Multiply ∇⋅A by dv:
Simplify term by term:
First term: 3⋅r2sinθdrdθdϕ=3r2sinθdrdθdϕ
Second term: −rsinθ3cosθ⋅r2sinθdrdθdϕ=−3rcosθdrdθdϕ
Third term: rsinθ5⋅r2sinθdrdθdϕ=5rdrdθdϕ
So:
Step 3: Evaluate the Integrals Separately
Term 1: 3r2sinθ
∫043r2dr=[r3]04=64
∫0π/2sinθdθ=[−cosθ]0π/2=(0)−(−1)=1
∫03π/2dϕ=23π
Thus Φ1=64⋅1⋅23π=96π
Term 2: −3rcosθ
∫04(−3r)dr=−3⋅[2r2]04=−3⋅216=−24
∫0π/2cosθdθ=[sinθ]0π/2=1
∫03π/2dϕ=23π
Thus Φ2=(−24)⋅1⋅23π=−36π
Term 3: 5r
∫045rdr=5⋅[2r2]04=5⋅216=40
∫0π/2dθ=2π
∫03π/2dϕ=23π
Thus Φ3=40⋅2π⋅23π=40⋅43π2=30π2
Step 4: Sum the Contributions
Result: The total outward flux through the given closed surface is Φ=60π+30π2. This result could also be obtained directly from a closed surface integral, but the divergence theorem offers a more systematic and often simpler approach.
The divergence and the divergence theorem are powerful tools in electromagnetics and fluid dynamics, allowing the conversion between surface and volume integrals and providing insight into the source or sink behavior of vector fields.

Ask anything
We've read this whole study set, so questions about it get the best answers.