Del - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

Gradient

  

compute the gradient of a function from R^n to R

  

Del

  

Vector differential operator

  

Nabla

  

Vector differential operator

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Gradient(f, c)

Del(f, c)

Nabla(f, c)

Gradient()

Del()

Nabla()

Parameters

f

-

algebraic expression

c

-

(optional) list(name) or name[name, name, ...]; specify the list of variable names or coordinate system indexed by coordinate names

Description

• 

The Gradient(f, c) command computes the gradient of the expression f.  The result is a vector field.

• 

If c is a list of names, the gradient is taken in the current default coordinate system by using the names in c as the coordinate names.  If the number of given names is not compatible with this coordinate system, an error is raised.

  

If c is a name indexed by other names, the gradient is computed in this coordinate system by using the indices as the coordinate names.  If the number of names is not compatible with the coordinate system, an error is raised.

  

If c is not specified, the current default coordinates are used. The default coordinates must be indexed by coordinate names, otherwise an error is raised.

• 

The command Del(f, c) is just a synonym for Gradient(f, c). However, Del is also recognized as the Vector differential operator that is used with DotProduct and CrossProduct as shortcuts for Curl, Divergence, Gradient, and Laplacian.

• 

The Gradient() command returns the differential form of the gradient operator in the current coordinate system.  For more information, see SetCoordinates.

  

Nabla is a synonym for Del.

Examples

withVectorCalculus:

g1Gradientx2+y2,x,y

attributesg1

vectorfield,coords=cartesianx,y

(1)

g2Gradientr2,polarr,θ

attributesg2

vectorfield,coords=polarr,θ

(2)

SetCoordinatessphericalr,φ,θ

sphericalr,φ,θ

(3)

g3Gradientr2φ

attributesg3

vectorfield,coords=sphericalr,φ,θ

(4)

Delr2φ

Gradient

SetCoordinatescartesianx,y,z

cartesianx,y,z

(5)

Delx2+y2+z2

n1x2+y2+z2

Del·n1

6

(6)

Del&xVectorFieldy,x,0

LVectorFieldx,y,z&xDel

Lsinxyz

LDel&xDel

LCurl@Gradient

(7)

Lfx,y,z

See Also

attributes

convert/PhysicsVectors

Physics/Vectors

Physics/Vectors/Gradient

plots[gradplot3d]

plots[gradplot]

Student[MultivariateCalculus][Gradient]

Student[VectorCalculus][Gradient]

VectorCalculus

VectorCalculus[Curl]

VectorCalculus[Divergence]

VectorCalculus[Laplacian]

VectorCalculus[SetCoordinates]

VectorCalculus[Vector]

VectorCalculus[VectorField]