There is a derivation of a deformation formula for rocks in one of my textbooks which I don't quite follow. As the problem is mathematical, I've decided to post it here The derivation goes as follows:
Denote the internal energy per unit volume of rock as $u(\epsilon_{ij},v,s)$ and the free energy as $f(\epsilon_{ij}, p, T) = u - Ts - pv$. For isothermal deformations, infinitesimal variations $d\epsilon_{ij}$ and $dp$ result in a variation $df$:
$$df = \sigma_{ij} d\epsilon_{ij} - vdp$$
Because $df$ is a total differential one finds:
$$\left( \frac{\partial \sigma_{ij}}{\partial p} \right)_{\epsilon_{ij}} = - \left(\frac{\partial v}{\partial \epsilon_{ij}} \right)_p$$
I follow everything until the last step. I know the definition of a differential, but I am a bit confused since the last expression contains partial differentials of $\sigma$ and $v$. If someone can illustrate to me how we get from the $df = \sigma_{ij} d\epsilon_{ij} - vdp$ to the final expression, I would be extremely grateful.