I have a problem of the form
$$\int_0^{2\pi}dx_1\int_0^{\pi}dx_2\delta(-a+\cos(x_1)+\cos(x_2))$$ where $a\in (-2,0)$. I have reduced it to the following $$\int_0^{2\pi}dx_1\sum_{j\in I}\frac{1}{\sqrt{1-(a-\cos(x_1))^2}},$$ where $I=\{j; x_1^{(j)}\in[0,2\pi], 0\leq \arccos(a-\cos(x_1^{(j)}))\leq\pi\}$. This seems to be satisfied when $x_1\in[\arccos(a+1),2\pi-\arccos(a+1)]$ which is a continuum of solutions for any given value of $a$. I've been looking for a formula for the delta function which has a non-isolated zeros but I can't find any.
I guessed maybe it has the form: $$\int_{\arccos(a+1)}^{2\pi-\arccos(a+1)}dx_2\int_0^{2\pi}dx_1\frac{\delta(x_1-x_2)}{\sqrt{1-\cos(x_2)^2}}.$$ I'm sure this is zero... But I have no proof of this and I don't know if I'm on the right tracks here, could anybody help?