VectorCalculus - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/diff

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

v1tex+t2ey+t3ez

(1)

diffv1,t

1ex+2tey+3t2ez

(2)

v21,2,3

v21ex+2ey+3ez

(3)

diffv2,t

0ex+0ey+0ez

(4)

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

pvPositionVectorp,p,polarr,t

pvpcosppsinp

(5)

dpvdiffpv,p

dpvcosppsinpsinp+pcosp

(6)

GetRootPointdpv

pcospex+psinpey

(7)

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

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

rv1p

(8)

drvdiffrv,p

drvpcosp2sinppcosp+psinp2cosppsinpp2sinp2+p2cosp2pcosp2cosppsinppsinp2sinppcospp2sinp2+p2cosp2

(9)

simplifydrvassuming0<p

p2

(10)

GetRootPointrv

per&plus;pet

(11)

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

pv1tt2

(12)

tvdiffpv&comma;t

tv012t

(13)

dtvdifftv&comma;t

dtv002

(14)

GetRootPointdtv

1ex&plus;tey&plus;t2ez

(15)

Differentiating a VectorField gives another VectorField.

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

Fare&lowbar;r&plus;0e&lowbar;&phi;&plus;0e&lowbar;&theta;

(16)

diffF&comma;φ

arcosφcosθ2sinφ+arcosφsinθ2sinφarsinφcosφe&lowbar;r&plus;arcosφ2cosθ2+arcosφ2sinθ2+arsinφ2e&lowbar;&phi;&plus;0e&lowbar;&theta;

(17)

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

Wfr&comma;te&lowbar;r&plus;gr&comma;te&lowbar;t

(18)

simplifydiffW&comma;r

rfr&comma;te&lowbar;r&plus;rgr&comma;te&lowbar;t

(19)

simplifydiffW&comma;t

tfr&comma;tgr&comma;te&lowbar;r&plus;fr&comma;t+tgr&comma;te&lowbar;t

(20)

See Also

diff

VectorCalculus

VectorCalculus[PositionVector]

VectorCalculus[RootedVector]

VectorCalculus[TangentVector]

VectorCalculus[Vector]

VectorCalculus[VectorField]