I'm having trouble evaluating this integral, which involves the Dirac delta function:
$$ \int\limits_{0}^\infty \frac{\cos(\pi x)}{x} \delta \left[ (x^2-1)(x-2) \right] \mathrm{d}x $$
I think I should use the following relation:
$$\int_a^b f(t) \delta(x-c)\,\mathrm dx=\begin{cases}f(c)&\text{if }a<c<b,\\0&\text{otherwise,}\end{cases}$$
But I don't know how to apply it to this particular problem. Is there any other property of this function I should consider?