I need to evaluate $\int_0^\infty \phi(x)\delta(x^2-1)\, dx$ but have very little context for knowing which steps are valid when working with $\delta$. A $u$-substitution seems appropriate, so instead finding
$$\int_0^\infty \phi(x)\delta(u)\frac{du}{2x}$$
however, I'm not sure of how to deal with the $\phi(x)/x$. Should I next infer $x = \pm\sqrt{u+1}$ and then infer that this integral is
$$\frac{\phi(-1)}{-2} + \frac{\phi(1)}{2}$$
But that seems to rely on $\phi$ being defined for negative values, which seems like it shouldn't be necessary.
For context it may help to know that I only have by definition that
$$\int_{-\infty}^\infty \phi(x)\delta(x-x_0)\ dx = \phi(x_0)$$