I've just started learning the Dirac Delta function and its properties under integration. So I have to evaluate the following:
$$I =\int^{\,\infty}_{-\infty}dx\;\int^{\,\infty}_{-\infty}dy\; x^2\delta\left(\sqrt{x^2+y^2}-R\right)\qquad,\text{where }R>0.$$
I am aware of the property of the Delta function, as follows: $$ \int^{\,\infty}_{-\infty}dx\;\delta(x-x')f(x)=f(x')\tag{1}$$ or, more specifically, $$\int^{x'+\epsilon}_{x'-\epsilon}dx\;\delta(x-x')f(x)=f(x')\tag{2}$$
So my thought process is to first convert the expression in the delta function to a single variable, $r$, in terms of $y$ as a variable and treating $x$ as a constant. Which I will define as $y=\pm\sqrt{r^2-x^2}$. My rationale for placing a plus-minus sign is to take care of the fact that I need to integrate over negative values of $y$ as well. So I also have, as a result, $\displaystyle dy=\dfrac{\pm\, r}{\sqrt{r^2-x^2}}dr.$
My next step is substituting these into the equation (1), taking care to split the integral into the rightful domains. So I get: $$\begin{align} I =\int^{\,\infty}_{-\infty}dx\left[\int^{\infty}_{0}dr\; \dfrac{rx^2}{\sqrt{r^2-x^2}}\,\delta(r-R)+\int^{\,0}_{-\infty}dr\; \dfrac{-rx^2}{\sqrt{r^2-x^2}}\,\delta(r-R)\right] \end{align} $$
Now, I was given $R>0$, and using (2), since the integration limits are not in the range of $R$, the second integral involving the negative limits should be $0$. I am left with the first integral, which, upon using (1), I obtain:
$$I =\int^{\,\infty}_{-\infty}dx\, \dfrac{Rx^2}{\sqrt{R^2-x^2}}$$.
From here on, I'm stuck. Firstly, the integration does not converge to a finite value, and secondly, the current integrand, which I obtained from evaluating the integral of the delta function at $r=R$, is not the correct expression. I checked with WolframAlpha by substituting $x$ and $R$ as constants and compared it with the expression I have in the integrand. It is off by a factor of 2. Now I am beginning to wonder if my argument for ignoring the second integration (with the negative limits) is wrong, or somewhere in my steps I have a wrong concept.
I would appreciate any hints, and I will attempt to figure out the solution as we go along.