Is this proof formal enough? I plan on being a theoretical physicist one day, so I want to get into the good habit of being mathematically strict.
My proof:
$u=x$; $du=dx$
$v = \delta (x)$; $dv = -\delta (x)$
$$\int x \frac{d}{dx}(\delta (x))dx = x\delta (x) - \int \delta (x)dx = \int -\delta (x) dx$$
$$x\delta (x) = 0$$
We now integrate both sides in order to properly use the Kronecker delta function.
$$\int x \delta (x) dx = \int 0dx$$
It is known that the $\int_{-\infty}^{+\infty} f(x)\delta (x)=f(0)$. Thus,
$$0=0$$