Total Derivatives

Dt[f]total differential
Dt[f,x]total derivative
Dt[f,x,y,]multiple total derivative
Dt[f,x,Constants->{c1,c2,}]total derivative with constant (i.e. )
y/:Dt[y,x]=0set
SetAttributes[c,Constant]define c to be a constant in all cases

Total differentiation operations.

When you find the derivative of some expression with respect to , you are effectively finding out how fast changes as you vary . Often will depend not only on , but also on other variables, say and . The results that you get then depend on how you assume that and vary as you change .

There are two common cases. Either and are assumed to stay fixed when changes, or they are allowed to vary with . In a standard partial derivative , all variables other than are assumed fixed. On the other hand, in the total derivative , all variables are allowed to change with .

In the Wolfram System, D[f,x] gives a partial derivative, with all other variables assumed independent of x. Dt[f,x] gives a total derivative, in which all variables are assumed to depend on x. In both cases, you can add an argument to give more information on dependencies.

This gives the partial derivative . is assumed to be independent of .
In[1]:=
Click for copyable input
Out[1]=
This gives the total derivative . Now is assumed to depend on .
In[2]:=
Click for copyable input
Out[2]=
You can make a replacement for .
In[3]:=
Click for copyable input
Out[3]=
You can also make an explicit definition for . You need to use to make sure that the definition is associated with .
In[4]:=
Click for copyable input
Out[4]=
With this definition made, Dt treats as independent of .
In[5]:=
Click for copyable input
Out[5]=
This removes your definition for the derivative of .
In[6]:=
Click for copyable input
This takes the total derivative, with held fixed.
In[7]:=
Click for copyable input
Out[7]=
This specifies that is a constant under differentiation.
In[8]:=
Click for copyable input
The variable is taken as a constant.
In[9]:=
Click for copyable input
Out[9]=
The function is also assumed to be a constant.
In[10]:=
Click for copyable input
Out[10]=
This gives the total differential .
In[11]:=
Click for copyable input
Out[11]=
You can make replacements and assignments for total differentials.
In[12]:=
Click for copyable input
Out[12]=