Compute $$ \int_{0}^{2\pi} d\phi \ \delta(\sin^2\phi-a^2) \ \tan^2\phi, $$ where $\delta(x)$ is the Dirac delta function and $0<a^2<1$.
My attempt:
$$ \int_{0}^{2\pi} d\phi \ \delta(\sin^2\phi-a^2) \ \tan^2\phi = \frac{1}{2|a|}\int_{0}^{2\pi} d\phi \left( \delta(\sin\phi-a) + \delta(\sin\phi+a) \right) \tan^2\phi. $$
I guess I should use some change of variable, but I'm stuck here. Any help?
The formula that you used is a corollary of a more general form. $$\int_{-\infty}^\infty\delta(g(x))f(x)dx=\sum_i\frac{f(x_i)}{g'(x_i)}$$ Here $x_i$ are the roots of $g(x)$. In your case, the roots of $\sin^2\phi-a^2$ are at $$\phi\in\{\arcsin a, \pi-\arcsin a,\pi+\arcsin a,2\pi-\arcsin a\}$$ The derivative of $g$ is $2\sin\phi\cos\phi$.