Reading this I see that the statement:
$ \delta \left( f(x) \right) = \sum_i \dfrac{\delta(x - a_i)}{|f'(a_i)|} $
is equivalent to showing that:
$ \int_{-\infty}^{\infty} g(x)\delta \left( f(x) \right) = \sum_i \dfrac{g(a_i)}{|f'(a_i)|} $
Where $ f(a_i) = 0 \:\: \forall i $
Can somebody explain to me why these two statements are equivalent? Thanks in advance
(I understand some of the proofs in that post, I just don't get why the statements are the same)