I'm trying to prove the following identity:
$$ \begin{equation} \label{eq:1} x\frac{d}{dx}\delta(x)=-\delta(x) \end{equation} $$
I integrated both sides with respect to $x$ over the limits of $(-\infty,\infty)$ and saw that they both evaluated to $-1$.
I'm not sure if that is the right approach because the worked solution I saw multiplied both sides of the above relation by an arbitrary function $f(x)$.
Is there any reason for multiplying both sides by an arbitrary $f(x)$? I'm a little helpless here because the approach that I took seemed more direct.