take the total derivative of an expression, a differential form or a contact form - Maple Programming Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : DifferentialGeometry : JetCalculus : DifferentialGeometry/JetCalculus/TotalDiff

JetCalculus[TotalDiff] - take the total derivative of an expression, a differential form or a contact form

Calling Sequences

     TotalDiff(f, v)


     f         - a Maple expression, a differential form or a bi-form

     v         - an independent variable, a positive integer or a list of positive integers






The operation of total differentiation is a fundamental one in the study of jet spaces and their application to differential equations and the calculus of variations.  Informally, total differentiation of a function on a jet space with respect to an independent variable is the same as ordinary differentiation with respect to that variable if the jet coordinates are treated temporarily as functions of the independent variables.


Let π:EM be a fiber bundle with base dimension n and fiber dimension m and let πk:JkE M be the k-th jet bundle. Introduce local coordinates (xi, uα, uiα, uijα, ..., uij  ℓα, ...) where, as usual, if s:ME is a section and σ=jksx:ME is the k-jet of s, then

uij  ℓασ = k sα xxi xixℓ and 1ijℓ dimM.

Then the total derivative of the jet coordinate uij  α with respect to the independent variable xk  is Dkuij  α = uij  ℓkα. If f  = fxi, uα, uiα, uijα... is a function on jet space, then by the chain rule

 Dk f = f xk + ukαf uα + uikαf   uiα + uijkαf   uijα  +  

Similarly, the total derivatives of differential forms dxi, duij  α and the contact form Θijℓα = duij  α - uij  ℓmαdxm with respect to the independent variable xk are given by

Dkdxi = 0,   Dk(duij  α )  = duijℓkα   and  DkΘijℓα  = Θijℓkα.

If ω1 and ω2 are 2 differential forms on jet space, then Dkω1 ω2  =  Dkω1ω2 + ω1Dkω2. One can summarize all these formulas by saying that total differentiation with respect to the independent variable xk coincides with Lie differentiation with respect to the total vector field Dk. Thus the total derivative with respect to xk commutes with the exterior derivative, the horizontal exterior derivative, and the vertical exterior derivative, that is,

Dk d = dDk ,   Dk d H= dHDk and Dk d V= dVDk.


 If f is a function or differential form on a jet space and v an independent variable, then TotalDiff(f, v) calculates the total derivative of f with respect to v. If v is a list of r positive integers, then the r-fold iterated total derivative is calculated.


The command TotalDiff is part of the DifferentialGeometry:-JetCalculus package.  It can be used in the form TotalDiff(...) only after executing the commands with(DifferentialGeometry) and with(JetCalculus), but can always be used by executing DifferentialGeometry:-JetCalculus:-TotalDiff(...).


with(DifferentialGeometry): with(JetCalculus):


Example 1.

First initialize the jet space for two independent variables x, y and two dependent variables u, v and prolong it to order 3.

DGsetup([x, y], [u, v], E, 3):


Recall that u1,2, 2 represents the mixed 3rd derivative of u, once with respect to x and twice with respect to y.The total derivative of u1,2, 2 with respect to x is u1,1, 2, 2which represents the 4th derivative of u, twice with respect to x and twice with respect to y

The total derivative of u1,2,2 with respect to y is u1,2,2,2 which represents the 4th derivative of u, once with respect to x and 3 times with respect to y.

E > 

TotalDiff(u[1, 2, 2], x);


E > 

TotalDiff(u[1, 2, 2], y);




In place of the independent variables x or y the integer 1 or 2 can be used.

E > 

TotalDiff(u[1, 2, 2], 1);


E > 

TotalDiff(u[1, 2, 2], 2);




Here is a general formula for the total derivative of a function with dependencies on the 2-jet of u.

E > 

vars := x, y, u[], u[1], u[2], u[1, 1], u[1, 2], u[2, 2]:

E > 


Fx,y,u,u1,u2,u1,1,u1,2,u2,2will now be displayed asF

E > 

TotalDiff(F(vars), x);


E > 

TotalDiff(F(vars), y);




The total derivative satisfies the usual rules of differentiation.

E > 

TotalDiff(y*u[1, 0]*v[0, 1], y);


E > 

f := simplify(TotalDiff(arctan(u[0, 3]/v[2, 0]), x));




Multiple total derivatives can also be calculated by using TotalDiff. We differentiate u2  2 times with respect to x and 3 times with respect to y to get u1,1,2,2,2.

E > 

TotalDiff(u[2], [1, 1, 2, 2, 2]);


E > 

TotalDiff(u[]*v[], [1, 1, 1]);




Example 2.

Total differentiation extends to differential forms and contact forms on jet spaces.

E > 

TotalDiff(du[2], x);


E > 

TotalDiff(du[2] &w dv[1], y);


E > 

TotalDiff(Cu[2], x);


E > 

TotalDiff(du[2], [1, 1, 2]);


E > 

TotalDiff(du[2] &w dv[1], [1, 2]);




Example 3.

The DifferentialGeometry package supports an alternative jet notation. For example, if there are 2 independent variables x,y, then u1,2 would now represent the 3rd mixed partial derivative of u, once with respect to x and twice with respect to y.


E > 

Preferences("JetNotation", "JetNotation2");


E > 

DGsetup([x, y], [u, v], J, 3):

J > 

TotalDiff(u[1, 2], x);


J > 

TotalDiff(u[1, 2], y);


E > 

TotalDiff(u[1,2], [2,3]);




Revert to the default jet notation.

J > 

Preferences("JetNotation", "JetNotation1");



See Also