Student/VectorCalculus/DirectionalDiff - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Student/VectorCalculus/DirectionalDiff

Student[VectorCalculus]

  

DirectionalDiff

  

computes the directional derivative of a scalar field in the direction given by a vector

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

DirectionalDiff(F,v,c)

DirectionalDiff(F,p,d,c)

Parameters

F

-

algebraic; the scalar or vector field to differentiate

v

-

Vector(algebraic); the direction Vector or vector field

c

-

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

p

-

point=list(algebraic) or point=Vector(algebraic); point where the derivative will be evaluated

d

-

list(algebraic) or Vector(algebraic); components specifying the direction of the directional derivative in a specified coordinate system.

Description

• 

The DirectionalDiff(F,v,c) command computes the directional derivative of an expression F at the location and direction specified by v.  The expression F is interpreted in the coordinate system specified by c, if provided, and otherwise in the current coordinate system.

The argument v can be a free Vector in Cartesian coordinates, a position Vector, a vector field or a rooted Vector.  If v is one of the first three, the result will be a scalar field of all directional derivatives in Rn in the directions specified by v; this scalar field will be given in the same coordinate system as is used to interpret expression F.  If v is a rooted Vector, the result is the value of the directional derivative of F in the direction of v taken at the root point of v.

• 

The DirectionalDiff(F,p,d,c) command computes the directional derivative of F at the point p in the direction d, where F is interpreted in the coordinate system specified by c, if provided, and otherwise in the current coordinate system.  The point p can be a list, a free Vector in Cartesian coordinates or a position Vector. The direction d can be a free Vector in Cartesian coordinates, a position Vector or a vector field.  The result is the value of DirectionalDiff(F,d,c) evaluated at the point p.

– 

If c is a list of names, the directional derivative of F is taken with respect to these names in the current coordinate system.

– 

If c is an indexed coordinate system, F is interpreted in the combination of that coordinate system and coordinate names.

– 

If c is not specified, F is interpreted in the current coordinate system, whose coordinate name indices define the function's variables.

– 

If c is not specified, and the current coordinate name is not indexed by any coordinate variable names, then the first n indeterminates of F, sorted alphabetically, will define the function's variables, where n is determined by the dimension of the current coordinate system. If this fails because there are not enough indeterminates in F, then the standard coordinate names will define the function's variables. For example, r and theta will be used for polar coordinates.

Note that c has no influence on the interpretation of the direction vector v.

Examples

withStudent[VectorCalculus]:

Introductory examples where a coordinate system is specified

SetCoordinatescartesianx,y

cartesianx,y

(1)

v11,2:

DirectionalDiffr2,v1,polarr,t

25rcost5+45rsint5

(2)

WVectorFieldu+v,v,cartesianu,v

Wu+ve_u+ve_v

(3)

DirectionalDiffr2,point=1,π,W,polarr,t

2

(4)

ddDirectionalDiffr2,W,polarr,t:

simplifyevaldd,r=1,t=π

2

(5)

Examples where a list of variable names is provided

DirectionalDiffpq,1,2,p,q

15q5+25p5

(6)

v21,0:

SetCoordinatespolar

polarr,θ

(7)

ddDirectionalDiffrcosθ,v2,r,θ:

simplifydd

1

(8)

Examples where the information is given in the form of a Rooted Vector

SetCoordinatespolarr,t

polarr,t

(9)

vsVectorSpace1,π2,polarr,t:

v3vs:-Vector1,1

v311

(10)

v4vs:-Vector0,1

v401

(11)

DirectionalDiffr2,v3

2

(12)

DirectionalDiffr2,v4

0

(13)

SetCoordinatescartesianx,y

cartesianx,y

(14)

DirectionalDiffy2x2,point=1,2,0,1,cartesianx,y

4

(15)

DirectionalDiffy2x2,RootedVectorroot=1,2,0,1,cartesianx,y

4

(16)

DirectionalDiffy2x2,RootedVectorroot=1,π2,1,1,polarr,t,cartesianx,y

0

(17)

Examples using the dot operator to construct a directional derivative operator

SetCoordinatescartesianx,y,z

cartesianx,y,z

(18)

VVectorFieldyz,xz,xy

Vyze_x+xze_y+yxe_z

(19)

normalV.Delxyz

x2y2+x2z2+y2z2

(20)

V.DelVectorField1x,1y,1z

yzx2e_xxzy2e_yyxz2e_z

(21)

See Also

Student[VectorCalculus]

Student[VectorCalculus][diff]

Student[VectorCalculus][Gradient]

Student[VectorCalculus][SetCoordinates]