How does one prove the following identity?
$$\int _Vf(\pmb{r})\delta (g(\pmb{r})) \, d\pmb{r}=\int_S \frac{f(\pmb{r})}{\left|\operatorname{grad} g(\pmb{r})\right|} \, d\sigma$$
where $S$ is the surface inside $V$ where $g(\pmb{r})=0$ and it is assumed that $\operatorname{grad} g(\pmb{r})\neq 0$. Thanks.
Edit: I have proved a one-dimensional version of this formula:
$$\delta (g(x))=\sum _a \frac{\delta (x-a)}{\left|g'(a)\right|}$$
where $a$ goes through the zeroes of $g(x)$ and it is assumed that at those points $g'(a)\neq 0$. the integral can be divided into into a sum of integrals over small intervals containing the zeros of $g(x)$. In these intervals $g(x)$ can be approximated by $g(a)+(x-a)g'(a)=(x-a)g'(a)$ since $g(a)=0$. Thus
$$\int_{-\infty}^\infty f(x)\delta (g(x)) \, dx=\sum _a \int _{a-\varepsilon}^{a+\varepsilon }f(x)\delta ((x-a)g'(a)) \, dx$$
Using the property $\delta (kx)=\frac{\delta (x)}{|k|}$, it follows that
$$\int_{-\infty}^\infty f(x)\delta (g(x)) \, dx=\sum _a \frac{f(a)}{\left|g'(a)\right|}$$
This is the same result we would have obtained if we had written $\sum _a \frac{\delta (x-a)}{\left|g'(a)\right|}$ instead of $\delta (g(x))$ as a factor of the integrand.
Try replacing $\delta(x)$ with $\varphi_\epsilon(x)=\varphi(x/\epsilon)/\epsilon$, where $\varphi$ is a positive function of compact support and whose integral is $1$. For such $\varphi$, $\lim_{\epsilon\to 0}\;\varphi_\epsilon\to\delta$ in the sense of distributions. Near points $\pmb{r}\in S$, $g(\pmb{x})=(\pmb{x}-\pmb{r})\cdot \nabla g(\pmb{r})+o(\pmb{x}-\pmb{r})$.
On $S$, $\nabla g=\pmb{n}|\nabla g|$, where $\pmb{n}$ is the surface normal to $S$. So near $\pmb{r}\in S$, $$ \begin{align} \varphi_\epsilon(g(\pmb{x}))&=\varphi((\pmb{x}-\pmb{r})\cdot \nabla g(\pmb{r})/\epsilon)/\epsilon+o(\pmb{x}-\pmb{r})\\ &=\varphi((\pmb{x}-\pmb{r})\cdot \pmb{n}/\epsilon')/\epsilon'/|\nabla g(\pmb{r})|+o(\pmb{x}-\pmb{r})\\ &=\varphi_{\epsilon'}((\pmb{x}-\pmb{r})\cdot \pmb{n})/|\nabla g(\pmb{r})|+o(\pmb{x}-\pmb{r}) \end{align} $$ where $\varphi_{\epsilon'}((\pmb{x}-\pmb{r})\cdot \pmb{n})$ is an approximation of surface measure on $S$ near $\pmb{r}$.
Thus, $\delta(g(\pmb{r}))\;d\pmb{r}=\;\displaystyle{\frac{d\sigma}{|\nabla g(\pmb{r})|}}$ where $d\sigma$ is surface measure on $S$.