The derivative of the delta function can be treated similar to the actual delta function. Suppose I have an expression like
$$\frac{\mathrm{d}}{\mathrm{d}x}\delta\left(x-x_0\right)$$
what does this mean for the integral
$$\int\mathrm{d}x\ f\left(x\right)\frac{\mathrm{d}}{\mathrm{d}x}\delta\left(x-x_0\right)$$
Furthermore, does it matter whether or not i derive with respect to the variable before or after the minus sign, i.e. does
$$\int\mathrm{d}x\ f\left(x\right)\frac{\mathrm{d}}{\mathrm{d}x}\delta\left(x_0-x\right)$$
give a different result?
Finally, does it matter whether or not I derive the delta function with the argument $x_0-x$ or the delta function alone and then plug in the argument:
$$\int\mathrm{d}x\ f\left(x\right)\delta'\left(x_0-x\right)$$
where $\delta'\left(x\right)$ is first "differentiated" with respect to $x$ and then evaluated at $x_0-x$ and/or $x-x_0$.
The derivative is usually defined via integration by parts, because we can't really apply the usual definition. The basic idea is the following: If we take 2 compactly supported, infinitely differentiable function $u$ and $v$, we get that $$\int u'v=-\int uv'$$ So if $f$ is compactly supported and infinitely differentiable, we "can" do the same (in the sense that it's the defining property of the derivative): $$\int \mathrm{d}x f(x)\delta'(x-x_0)=-\int \mathrm{d}x f'(x)\delta(x-x_0)=-f'(x_0)$$ This concept is called distributional derivative: https://en.m.wikipedia.org/wiki/Distribution_(mathematics)#Derivatives_of_distributions
Note: the weak derivative of an $L^1$ function is usually defined the same way.