Hello, I have been struggling with the simplest question of this topic.
The integral of it is $\frac{-1}{(1+x)} dx$, and replacing infinity with the limit of $b \to \infty$, I found $\frac{-1}{(1+b)} +1/2$, and the limit goes to zero so the value must be $1/2$. However, the answer is $1$. Can you find the mistake I am making?

$$\lim_{z\to\infty}\int_0^z \frac{1}{(1+x)^2}dx = \lim_{z\to\infty} \frac{-1}{(1+x)} |_0^z = \lim_{z\to\infty}(\frac{-1}{(1+z)} - \frac{-1}{(1+x)}) = 0-\frac{-1}{(1+0)}= 1$$