I'm reading Tong's notes on GR http://www.damtp.cam.ac.uk/user/tong/gr.html and i cannot understrand how he derived the equation that relates the varation of the metric with its inverse in page 141 under equation 4.2.
A different approach could be that $$g_{\mu\nu}g^{\mu\nu}=d \to \delta g_{\mu\nu}g^{\mu\nu} = -\delta g^{\mu\nu}g_{\mu\nu}$$ where $d$ is the spacetime dimension, but i cannot understand his calculation.