Student[VectorCalculus]
Divergence
compute the divergence of a vector field
Calling Sequence
Parameters
Description
Examples
Divergence(F)
Divergence(c)
F
-
(optional) vector field or Vector-valued procedure; specify the components of the vector field
c
(optional) specify the coordinate system
The Divergence(F) calling sequence computes the divergence of the vector field F. This calling sequence is equivalent to Del·F and DotProduct(Del, F).
If F is a Vector-valued procedure, the default coordinate system is used. The default coordinate system must be indexed by the coordinate names.
Otherwise, F must be a Vector with the vectorfield attribute set, and it must have a coordinate system attribute that is indexed by the coordinate names.
If F is a procedure, the returned object is a procedure. Otherwise, the returned object is an expression.
The Divergence(c) calling sequence returns the differential form of the divergence operator in the coordinate system specified by c, which can be given as:
* an indexed name, e.g., sphericalr,φ,θ
* a name, e.g., spherical; default coordinate names will be used
* a list of names, e.g., r,φ,θ; the current coordinate system will be used, with these as the coordinate names
The Divergence() calling sequence returns the differential form of the divergence operator in the current coordinate system. For more information, see SetCoordinates.
with⁡StudentVectorCalculus:
To create a vector field, use the Student[VectorCalculus][VectorField] command.
F≔VectorField⁡x2,y2,z2
Divergence⁡F
2⁢x+2⁢y+2⁢z
Del·F
∇·F
DotProduct⁡Del,F
Divergence⁡x,y,z↦sin⁡x,cos⁡y,tan⁡z
x,y,z↦cos⁡x−sin⁡y+1+tan⁡z2
To display the differential form of the divergence operator:
Divergence⁡
∂∂xVF 1⁡x,y,z+∂∂yVF 2⁡x,y,z+∂∂zVF 3⁡x,y,z
SetCoordinates⁡cylindricalr,θ,z:
∂∂rr⁢VF 1⁡r,θ,z+∂∂θVF 2⁡r,θ,z+∂∂zr⁢VF 3⁡r,θ,zr
Divergence⁡s,φ,w
∂∂ss⁢VF 1⁡s,φ,w+∂∂φVF 2⁡s,φ,w+∂∂ws⁢VF 3⁡s,φ,ws
Divergence⁡spherical
∂∂rr2⁢sin⁡φ⁢VF 1⁡r,φ,θ+∂∂φr⁢sin⁡φ⁢VF 2⁡r,φ,θ+∂∂θr⁢VF 3⁡r,φ,θr2⁢sin⁡φ
Divergence⁡sphericalα,ψ,γ
∂∂αα2⁢sin⁡ψ⁢VF 1⁡α,ψ,γ+∂∂ψα⁢sin⁡ψ⁢VF 2⁡α,ψ,γ+∂∂γα⁢VF 3⁡α,ψ,γα2⁢sin⁡ψ
To display the divergence of an arbitrary vector-valued function (r,theta) -> <f(r,theta),g(r,theta)> in the polar coordinate system:
SetCoordinates⁡polarr,θ
polarr,θ
Divergence⁡r,θ↦f⁡r,θ,g⁡r,θ
r,θ→f⁡r,θ+r⁢∂∂r⁢f⁡r,θ+∂∂θ⁢g⁡r,θr
See Also
Student[VectorCalculus][Curl]
Student[VectorCalculus][Del]
Student[VectorCalculus][DotProduct]
Student[VectorCalculus][Laplacian]
Student[VectorCalculus][Nabla]
Student[VectorCalculus][SetCoordinates]
Student[VectorCalculus][Vector]
Student[VectorCalculus][VectorField]
Download Help Document