Evaluate $\int_{-1}^{1} \frac 1x dx$
Does this integral converge or diverge because if we "just solve it" we get
$$\int_{-1}^1 \frac 1x dx = \ln \left| x\right|_{-1}^1=0.$$
But if we do this: $\int_{-1}^0\frac 1x dx + \int_0^1 \frac 1x dx$ it diverges. Why? What really happens here?
You cannot apply the fundamental theorem of calculus since the function $$\frac{1}{x}$$ is not defined on the interval $[-1,1]$. Split the integral in the following way $$\int_0^1\frac{dx}{x}+\int_{-1}^0\frac{dx}{x}$$
Now you can apply the following theorem
Hence both integral diverge, then the sum of them diverges.