This routine constructs the derivative of the expression F with respect to the independent variable x. It has been extended in the sense that the expression F is regarded as a function of the dependent variables (as reported by depvars()) and the independent variables and various named partial derivatives nested to higher and higher levels depending on the index. The chain rule is applied to reflect these dependencies.

•

The second argument is restricted to be one of the independent variables as specified by indepvars().

•

A subscripted name such as ${\mathrm{TD}}_{2}$ indicates that a certain ``level of extension'' is to be used. For example, an extension level of 2 indicates that F is to be regarded as a function of the dependent variables and all their first partials with respect to indepvars().

•

If names representing the required partials have not already been created (for example, through the use of makeform() or determine()) then variables of the form wi are automatically introduced as names for the various partial derivatives involved, as determined by the level of extension requested.

•

The default extension level is 1 so that TD is equivalent to ${\mathrm{TD}}_{1}$.

•

The independent and dependent variables must have been specified prior to use of TD. This can be done directly through use of the commands indepvars() and depvars(), or indirectly through the use of makeforms().

•

The mapping of names such as w1 to partial derivatives can be obtained through use of the command translate().

•

The result is an inert expression reported in terms of Diff procedure. It can be forced to evaluate further by use of dvalue() or value(), but any variable dependencies for unknown functions must be defined prior to such evaluation. Such variable dependencies can be explicitly specified by use of vfix().

•

This routine is part of the liesymm package and is ordinarily loaded via with(liesymm). It can also be called via the ``package style'' name liesymm[TD].

## Was this information helpful?