Divergence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[VectorCalculus]

  

Divergence

  

compute the divergence of a vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Divergence(F)

Divergence(c)

Parameters

F

-

(optional) vector field or Vector-valued procedure; specify the components of the vector field

c

-

(optional) specify the coordinate system

Description

• 

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.

Examples

> 

with⁡StudentVectorCalculus:

To create a vector field, use the Student[VectorCalculus][VectorField] command.

> 

F≔VectorField⁡x2,y2,z2

F≔x2e_x+y2e_y+z2e_z

(1)
> 

Divergence⁡F

2⁢x+2⁢y+2⁢z

(2)
> 

Del·F

2⁢x+2⁢y+2⁢z

(3)
> 

∇·F

2⁢x+2⁢y+2⁢z

(4)
> 

DotProduct⁡Del,F

2⁢x+2⁢y+2⁢z

(5)
> 

Divergence⁡x,y,z↦sin⁡x,cos⁡y,tan⁡z

x,y,z↦cos⁡x−sin⁡y+1+tan⁡z2

(6)

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

(7)
> 

SetCoordinates⁡cylindricalr,θ,z:

> 

Divergence⁡

∂∂rr⁢VF 1⁡r,θ,z+∂∂θVF 2⁡r,θ,z+∂∂zr⁢VF 3⁡r,θ,zr

(8)
> 

Divergence⁡s,φ,w

∂∂ss⁢VF 1⁡s,φ,w+∂∂φVF 2⁡s,φ,w+∂∂ws⁢VF 3⁡s,φ,ws

(9)
> 

Divergence⁡spherical

∂∂rr2⁢sin⁡φ⁢VF 1⁡r,φ,θ+∂∂φr⁢sin⁡φ⁢VF 2⁡r,φ,θ+∂∂θr⁢VF 3⁡r,φ,θr2⁢sin⁡φ

(10)
> 

Divergence⁡sphericalα,ψ,γ

∂∂αα2⁢sin⁡ψ⁢VF 1⁡α,ψ,γ+∂∂ψα⁢sin⁡ψ⁢VF 2⁡α,ψ,γ+∂∂γα⁢VF 3⁡α,ψ,γα2⁢sin⁡ψ

(11)

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,θ

(12)
> 

Divergence⁡r&comma;θ↦f⁡r&comma;θ&comma;g⁡r&comma;θ

r&comma;&theta;&rarr;f⁡r&comma;&theta;&plus;r⁢∂∂r⁢f⁡r&comma;&theta;&plus;∂∂&theta;⁢g⁡r&comma;&theta;r

(13)

See Also

Student[VectorCalculus]

Student[VectorCalculus][Curl]

Student[VectorCalculus][Del]

Student[VectorCalculus][DotProduct]

Student[VectorCalculus][Laplacian]

Student[VectorCalculus][Nabla]

Student[VectorCalculus][SetCoordinates]

Student[VectorCalculus][Vector]

Student[VectorCalculus][VectorField]