For, example, question - is $\int_0^{\infty} \frac{x}{x+1}$ convergence
Only one place, where we interesting in this integral is ($\infty$).
We can take function $g(x)$, that $\lim\limits_{x \rightarrow \infty} \frac{\frac{x}{x + 1}}{g(x)} = n \in \mathbb{Z} \ne 0$.
And if we know about convergence in $\infty \int g(x)$, the convergence of our integral will be same.
But by the rule we can take only $g(x)$ that $\forall x$ will be $>0$.
Why i can't say that $\int_{0}^{\infty}\frac{\cos(x)x}{x + 1}$ not convergence, because is no limit $x \rightarrow \infty \ F(cos(x))$