I would like to know if the following integral is divergent:
$$\int_{-1}^1 \frac{dx}{\sqrt{1-x^2}} = \pi $$
Wolfram alpha returned a finite answer of $\pi$. It looks like it should have poles at $x=-1,1$. Can explain?
The antiderviative is $\int dx \,(1-x^2)^{-1/2} = \sin^{-1} x$ but I want to know why the divergence goes away.
Edit: An earlier version had this one:
$$\int_{-1}^1 \frac{dx}{x^2 - 1} $$
Certainly it has poles on both ends. Maybe we can use the partial fraction decomposition:
$$ \frac{2}{x^2 -1} = \frac{1}{x-1} - \frac{1}{x+1} $$
We want $$\lim_{(\delta,\epsilon)\to(0^+,0^+)}\int_{-1+\delta}^{1-\epsilon} \frac{1}{\sqrt{1-x^2}}\,dx.$$ This is $$\lim_{(\delta,\epsilon)\to(0^+,0^+)}\left(\arcsin(1-\epsilon)-\arcsin(-1+\delta)\right).$$ But $$\lim_{\epsilon\to 0^+}\arcsin(1-\epsilon)=\frac{\pi}{2}\quad\text{and}\quad \lim_{\delta\to 0^+}\arcsin(-1+\delta)=-\frac{\pi}{2}.$$
Remark: If we are only interested in existence (convergence), it is convenient to break up the integral into two parts, in order to have only one element of "badness" at a time. We show for example that $$\int_0^1 \frac{1}{\sqrt{1-x^2}}\,dx\tag{1}$$ exists. Note that on our interval the function is positive and les than or equal to $\frac{1}{\sqrt{1-x}}$, since $1+x\ge 1$. If we can show that $$\int_0^1 \frac{1}{\sqrt{1-x}}\,dx\tag{2}$$ exists, then by Comparison so does the integral (1). To show that the integral (2) exists, integrate $\frac{1}{\sqrt{1-x}}$ explicitly from $0$ to $1-\epsilon$, and take the limit as $\epsilon\to 0$ from the right.
Or else, take the "badness" to $0$ (my preference) by making the change of variable $1-x=t$, and refer to the standard fact that $\int_0^1 \frac{1}{\sqrt{t}}\,dt$ exists.