Let , $f$ be continuous function on $[2,\infty)$ and $\displaystyle\lim_{x\to \infty}x(\log x)^pf(x)=A$ , where $A$ is a non-zero finite number.. Then $\displaystyle\int_2^{\infty}f(x)\,dx$ is
(A) convergent for all $p$.
(B) convergent for $p>1$.
(C) convergent for $0<p<1$.
(D) always convergent.
Attempt :
Let , $g(x)=f(x)x(\log x)^p$ and $h(x)=\frac{1}{x(\log x)^p}$.
I want to apply Able's test for improper integral. So we have to show $g$ is monotone and bounded and $\displaystyle \int_2^{\infty} h(x)\,dx $ is convergent. Now , $\displaystyle \int_2^{\infty} h(x)\,dx $ is convergent for $p>1$. From the given limit it is clear that $g$ is bounded. But I am unable to show $g$ is monotone.
Choose $M$ such that for $x>M$, $\frac{f(x)}{h(x)}$ is between $A/2$ and $2A$. Then write
$$\int_2^\infty f(x) dx = \int_2^M f(x) dx + \int_M^\infty f(x) dx.$$
The first term is finite by the continuity hypothesis. The second term is between $\frac{A}{2} \int_M^\infty h(x) dx$ and $2A \int_M^\infty h(x) dx$ by pointwise comparison. Thus $f$ has the same integrability properties as $h$.
The "test" whose correctness is proven by this argument is called the limit comparison test.