Suppose we have a matrix $M_{ij}^{n\times n}$ (symmetric and invertible) and a function of the matrix elements $f(M_{ij})$ (the function is analytic). Now we want to study the derivatives of $f(M_{ij})$.
Let us do a change of variable to separate the determinant part and the rest, define
$m =\det M, \quad h_{ij} =\frac{ M_{ij} }{(\det M)^{1/n}}$
$m, h_{ij}$ should contain the same number of independent variables as $M_{ij}$, therefore
$\frac{\partial f}{\partial M_{ij}} = \frac{\partial f}{\partial m} \frac{\partial m}{\partial M_{ij}} + \frac{\partial f}{\partial h_{kl}} \frac{\partial h_{kl}}{\partial M_{ij}} $
where repeated indices are summed over. However, it is confusing since $h_{ij}$ is symmetric, should I really sum over all the indices in the second term?
Later on, I encounter something like $ \delta_{kl}\frac{\partial f}{\partial(\ln h)_{kl}} $. Since $\det h =1$, $\delta_{kl}(\ln h)_{kl} = \ln \det h =0$, what does it imply for $ \delta_{kl}\frac{\partial f}{\partial(\ln h)_{kl}}$?
Thanks in advance!