I wanted to prove that if I have to functions $f$ and $g$ such that $\int_{-\infty}^{\infty}f(x)dx <\infty$ and $\int_{-\infty}^{\infty}g(x)dx = 0$ then $\int_{-\infty}^{\infty}g(x)f(x)dx = 0$. I think it is intuitive obvious but I haven't found anything (maybe because is too obvious)
So first I integrated by parts
$\int_{-\infty}^{\infty}g(x)f(x)dx = f(x) \int g(x') dx' |_{-\infty}^{\infty} - \int_{-\infty}^{\infty} f(x)dx \int_{-\infty}^{x}g(x')dx'$
The first term is zero by hypothesis and the second term reminds me the Abel's theorem for series convergence that states than if I have to series such that $\sum_n^{\infty} a_n = A$ and $\sum_n^{\infty} b_n = B$ and both with finite limit then
$\sum_n^{\infty} c_n = \sum_n^{\infty}\sum_r^{n} a_rb_{n-r+1} $
converges to $AB$. So generalizing this result to integral I could say that the second integral goes to zero and the integral of the product is zero.
Is this correct? If the reasoning is wrong, is there any way to prove this?