In a physics problem I am confronted with a divergent integral
$$ \int_{-\infty}^\infty x \sin x \, dx = \sin x - x \cos x \bigg|_{-\infty}^\infty \approx 0$$
How to regularize it?
in order to regularize this sum I would argue this is zero. another possibility is
$$ \int_{-L}^L x \sin x \, dx = \sin x - x \cos x \bigg|_{-L}^L = 2( \sin L - L\cos L)$$
which is oscillating. if $L \in 2 \pi \mathbb{ Z }$ the integral is $\int = \pm L$ if $L \in \pi/2+ 2 \pi \mathbb{ Z }$ then $\int = \pm 2$.
so even if this integral is oscillatory maybe theory of distributions can save us.