I have the metric tensor $g_{\mu\nu}$. I want to make the variation of $\sqrt{-g}$ where $g=detg_{\mu\nu}$.
How can I make this work? My attempt is the following:
$$\sqrt{-g}=\sqrt{-e^{Tr(log(g_{\mu\nu}))}}=\sqrt{-e^{-Tr(log(g^{\mu\nu}))}}$$
$$\rightarrow\delta\sqrt{-g}=\delta(\sqrt{-e^{-Tr(log(g^{\mu\nu}))})}=\delta(-e^{-\frac{1}{2}Tr(log(g^{\mu\nu}))})$$
$$=e^{-\frac{1}{2}Tr(log(g^{\mu\nu}))}\delta(-\frac{1}{2}Tr(log(g^{\mu\nu})))=-\frac{1}{2}\sqrt{-g}\delta g^{-1}Tr((log(g^{\mu\nu})))=$$
$$=-\frac{1}{2}\sqrt{-g}Tr(g_{\mu\nu}\delta g^{\mu\nu})=-\frac{1}{2}\sqrt{-g}\ g_{\mu\nu}\delta g^{\mu\nu}$$
But, there seems to be a problem of notation; I write $Tr(g_{\mu\nu}\delta g^{\mu\nu})$.