How can I evaluate this improper integral?
$$\displaystyle\int_0^{\infty}\frac{1}{x(1+x^2)}\,dx $$
How can I evaluate this improper integral?
$$\displaystyle\int_0^{\infty}\frac{1}{x(1+x^2)}\,dx $$
On
Help getting started: Start by writing the integral like this: $$ \int_0^\infty \frac{1}{x(1+x^2)}\; dx = \lim_{t\to 0^+}\int_t^1\frac{1}{x(1+x^2)}\; dx + \lim_{s\to \infty}\int_1^{s}\frac{1}{x(1+x^2)}\; dx. $$ If you can show that one of these integrals is divergent, then the original integral is divergent.
First we can consider the integral $$\begin{align} \int_t^1 \frac{1}{x(1+x^2)}\; dx &= \int_t^1 \frac{1}{x} - \frac{x}{1+x^2}\; dx \\ &= \ln\lvert x\rvert - \frac{1}{2}\ln\lvert 1 + x^2\rvert\left. \right]_t^1\\ &= \ln\left(\frac{x}{\sqrt{1+x^2}}\right)\left.\right]_t^1 \end{align} $$ I believe that when you evaluate this and take the limit as $t$ goes to $0$ from the right, then is $-\infty$. So yes, the integral is divergent.
But, you should probably check the details.
An indefinite integral leads to (breaking it into simple fractions) $$log(x)-\frac{1}{2}log(1+x^2)$$ So clearly you have problems at $x=0$.