I want to define a variable q which is a function of t. And I want to define another variable qdot = dq/dt.
Then what I want to archive is that if I have a function f = a*Sin[q], and when I take the derivative df = D[f,t], Mathematica returns:
a*qdot*Cos[q].
Is there a way to do this?
Dt[]instead ofD[]– Dr. belisarius Aug 20 '13 at 18:58f[t_] := a*Sin[q[t]]; D[f[t], t]givesa Cos[q[t]] q'[t]Constantattribute to your solution. – Ian Jun 05 '15 at 22:31