I have a quadratic relation inside of a Dirac delta function with the following relation \begin{align} \delta((x-x_1)(x-x_2)) = \dfrac{ \delta(x-x_1) + \delta(x-x_2) }{|x_1-x_2|}. \end{align}
How do you handle a functional input in a Dirac delta function and prove these types of relations?