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

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

diff

  

computes the derivative of a Vector  

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

diff(f, v)

Parameters

f

-

Vector(algebraic); Vector or algebraic expression

v

-

name; specify the variables of differentiation

Description

• 

The diff(f,v) command is an extension of the top-level diff command which understands free Vectors, position Vectors, rooted Vectors and VectorFields in the different coordinate systems of the VectorCalculus package. If f is not a Vector, the arguments are passed to the top-level diff command.

• 

If f is a free Vector, f is differentiated component-wise independent of the coordinate system. The output is a free Vector.

• 

If f is a position Vector representing a curve or surface, the Vector is differentiated component-wise since it is in Cartesian coordinates (see Position Vector). The output is a  Vector rooted at the point with the same components as the position Vector.

• 

If f is a rooted Vector in non-Cartesian coordinates, f is mapped back to Cartesian coordinates where the differentiation takes place. The output is a Vector rooted at the same point as f.

• 

If f is a VectorField in non-Cartesian coordinates, the unit vectors of the coordinate system of the field are expressed in terms of the standard Cartesian unit vectors to perform the differentiation. The result is mapped back to the original coordinate system and a field is returned.

Examples

Differentiating a free Vector.

withVectorCalculus:

v1t,t2,t3

diffv1,t

v21,2,3

diffv2,t

Differentiating a position Vector that represents a curve. The result is a vector rooted at the curve.

pvPositionVectorp,p,polarr,t

pvpcosppsinp

(1)

dpvdiffpv,p

dpvcosppsinpsinp+pcosp

(2)

GetRootPointdpv

Differentiating a rooted Vector gives a Vector rooted at the same root as the original Vector.

rvRootedVector1,p,root=p,p,polarr,t

rv1p

(3)

drvdiffrv,p

drvpcosp2sinppcosp+psinp2cosppsinpp2sinp2+p2cosp2pcosp2cosppsinppsinp2sinppcospp2sinp2+p2cosp2

(4)

simplifydrvassuming0<p

p2

(5)

GetRootPointrv

pvPositionVector1&comma;t&comma;t2&comma;cartesianx,y,z

pv1tt2

(6)

tvdiffpv&comma;t

tv012t

(7)

dtvdifftv&comma;t

dtv002

(8)

GetRootPointdtv

Differentiating a VectorField gives another VectorField.

FVectorFieldar&comma;0&comma;0&comma;sphericalr,φ,θ

diffF&comma;φ

WVectorFieldfr&comma;t&comma;gr&comma;t&comma;polarr,t

simplifydiffW&comma;r

simplifydiffW&comma;t

See Also

diff

VectorCalculus

VectorCalculus[PositionVector]

VectorCalculus[RootedVector]

VectorCalculus[TangentVector]

VectorCalculus[Vector]

VectorCalculus[VectorField]