This might be a little bit of a technical question, so bear with me. Ok, so from string theory we know that the action for a relativistic string is found from the worldsheet when we embed the string in spacetime and so we get $$ S_{Nambu-Goto}=T \int d^2 \sigma \sqrt{h_{\alpha \beta}}$$ where $h_{\alpha \beta} = \eta_{\mu \nu} \partial_{\alpha} X^{\mu} \partial_{\beta} X^{\nu},$ the derivatives taken with respect to the the worldsheet coordinates $\sigma^{\alpha}=(\tau, \sigma)$.
That is all nice and well, and then we want to get rid of this ugly square root so we introduce the auxiliary variable $\gamma_{\alpha \beta}$ and write $$S_{Polyakov}= \frac{T}{2} \int d^2 \sigma \sqrt {\gamma} \gamma^{\alpha \beta} h_{\alpha \beta}$$ Upon varying the action with respect to $\gamma_{\mu \nu}$ to find the EOM, you get $\gamma_{\alpha \beta}=h_{\alpha \beta},$ so this auxiliary variable is just the induced metric, and everything simplifies nicely into the Nambu-Goto action when substituted.
My question is, during the derivation of the EOM, you had to vary the action ofcourse, which gave you (which is just the chain rule) $$\delta S_P =\bigg[ \frac{\partial \sqrt{\gamma}}{\partial \gamma_{\mu \nu}} (\gamma^{\alpha \beta} h_{\alpha \beta} ) + \sqrt {\gamma} \Big( \frac{\partial \gamma^{\alpha \beta}}{\partial \gamma_{\mu \nu}} h_{\alpha \beta} \Big) \bigg] \delta \gamma_{\mu \nu} $$ When computing $\frac{\partial \sqrt {\gamma}}{\partial \gamma_{\mu \nu}}$, I got this: $$ \frac{\partial \sqrt {\gamma}}{\partial \gamma_{\mu \nu}} = \frac{1}{2 \sqrt{\gamma}} \frac{\partial (det \gamma)}{\partial \gamma_{\mu \nu}}$$ Then I use Jacobi's formula which says that $$\frac{\partial (det \gamma)}{\partial \gamma_{\mu \nu}} = \gamma \cdot tr \Big( \gamma^{\alpha \beta} \frac{\partial \gamma_{\alpha \beta}}{\partial \gamma_{\mu \nu}} \Big) = \gamma \cdot tr (\gamma^{\alpha \beta} \delta_{\alpha}^\mu \delta_{\beta}^\nu) = \gamma \cdot tr(\gamma^{\mu \nu})$$ This is the part that stumped me. The book says that the answer to this should be $$\delta \gamma = \gamma \gamma^{\nu \mu} \delta \gamma_{\mu \nu}$$ However, I am getting this result above, i.e. $$\delta \gamma = \gamma tr (\gamma^{\mu \nu}) \delta \gamma_{\mu \nu}$$ How is $tr(\gamma^{\mu \nu}) = \gamma^{\nu \mu}$ or am I just missing a stupid mistake.
Btw, I am using the fact that $\delta f(x) = \frac{df(x)}{dx}\delta x$ as you saw to find the variation. Sorry if this might be a dumb question, I was just learning GR when I came across an appendix with this and got interested!