for thermodynamics, I would like to use a thermodynamic derivative $$ \frac 1 T=\frac{\partial S}{\partial E}\Bigg \vert_V $$i.e. the derivative of the entropy S with respect to the energy E with the volume kept constant. In this context I tried to differentiate as follows (subsituting E to Z since E is protected)
V[Z_]:=Z^6;
S[Z_]:=V[Z]^2-Z;
TemperatureDef=1/T==D[S,Z]
How do I differentiate S with respect to Z without V[Z] being evaluated (i.e. plugged in)?
The result should read -1 instead of -1+12 Z^11
Blank) in variable names: They have its own meaning in Mathematica (They are used to build patterns.) – Henrik Schumacher Aug 23 '18 at 13:27ClearAll[V];S = V[Z]^2 - Z; 1/T == D[S, Z]– Henrik Schumacher Aug 23 '18 at 13:29Dtmight also be useful – SPPearce Aug 23 '18 at 13:49