# Dirac function and integration by parts

I have some problems to show the following relation, apparently using integration by parts and knowing that $\phi$ denotes the density of the standard one dimensional normal distribution. $$\int g(\omega) \delta_x (\omega) \phi\left(\frac{\omega}{\sqrt{t}}\right)~d\omega = \int g(\omega) \mathbf 1_{\left[x,\infty\right]} (\omega) \frac{\omega}{t}\phi\left(\frac{\omega}{\sqrt{t}}\right)~d\omega- \int g'(\omega) \mathbf 1_{\left[x,\infty\right]} (\omega) \phi\left(\frac{\omega}{\sqrt{t}}\right)~d\omega$$

-

With $f(\omega)=\delta_x(\omega)$ and $h(\omega)=\phi(\omega/\sqrt t)$, we have $h'(\omega)=-(\omega/t)\phi(\omega/\sqrt t)$ and $F(\omega)=\mathbf1_{[x,\infty]}$ with $F'(\omega)=f(\omega)$, and your equation becomes
$$\int g(\omega)f(\omega)h(\omega)\mathrm d\omega=-\int g(\omega)F(\omega)h'(\omega)\mathrm d\omega-\int g'(\omega)F(\omega)h(\omega)\mathrm d\omega$$
$$\int f(\omega)\left(g(\omega)h(\omega)\right)\mathrm d\omega=-\int F(\omega)(g(\omega)h(\omega))'\;.$$
There's no boundary term because $\delta$ vanishes at the boundaries.