This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Div

Div[f]
gives the divergence, , of the vector field f in the default coordinate system.

gives the divergence of f in the coordinate system coordsys.
  • The vector field f should be a 3-element list where each element is a function of the coordinates of the appropriate coordinate system.
Compute the divergence of a vector field:
Verify that the divergence of the curl of a vector field is 0:
Needs["VectorAnalysis`"]
Compute the divergence of a vector field:
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
Verify that the divergence of the curl of a vector field is 0:
In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=