I am trying to use the comparison test to determine the convergence or divergence of three improper integrals:
- $\int_{-\infty}^{\infty}\frac{dx}{e^x+e^{-x}}$
- $\int_{-\infty}^{\infty}\frac{dx}{e^x-e^{-x}}$
- $\int_{-\pi}^{\pi}\frac{dx}{\sin x}$
For the first one, we have $\int_{-\infty}^{\infty}\frac{dx}{e^x+e^{-x}}\le\int_{-\infty}^{0}\frac{dx}{e^{-x}}+\int_{0}^{\infty}\frac{dx}{e^x}=e^x\vert_{-\infty}^0-e^{-x}\vert_0^{\infty}=1+1=2$. Therefore, it converges.
The second one seems to diverge on the graph. I need a smaller function to test it. $-\frac12e^x$ is smaller for $(-\infty,0]$ and $\frac12e^{-x}$ is smaller for $[0,\infty)$, but unfortunately both of them converge.
The thrid one, too, seems to diverge on the graph. But the only smaller functions I can think of are $\sin x$ and $\cos x$, both of which converge.
How should I proceed?