Is the result:
$$\int_a^a f(x) \,\text{d}x = 0$$
always zero?
This seems obvious at first, but what if $f(x)$ diverges at $x=a$?
For example, Wolfram Alpha tells me
$$\int_0^0 \frac{1}{x}\,\text{d}x = 0\qquad (1)$$
But: $$\int_0^{1\times10^{-40}}\frac{1}{x}\,\text{d}x = \infty\qquad (2)$$
As far as I can tell, this happens no matter how small I set the upper limit of integration.
Is $(1)$ correct? Why is it true, even if both $f$ and it's antiderivative diverge at the point?
If it's not true in general, what conditions must $f(x)$ satisfy?
Edit
I do not believe my question is a true duplicate of the other. While the question about integrating on a point is shared, my question is more general, since that one concentrates on s specific (complicated) integral. I ask what is needed for general $f(x)$. If you are the answers to that question, neither is generalizable to other integrands.