I have the following true/false question
If $f:[a,\infty)\to\mathbb{R}$ is monotonically decreasing, and the integral $\int_{1}^{\infty}f(x)dx$ is convergent, then $\underset {x\to\infty} \lim f(x)=0$.
My intuition is that it's true but not sure how to prove it or if actually there is a counter example.
Thanks!
It is true. Assume $f:[1,\infty)\to \mathbb R$ is monotonically decreasing and prove $$ \int_1^\infty f(x)~dx \text{ convergent }\Rightarrow \lim_{x\to \infty} f(x)= 0 $$ by contraposition.
Let be $\lim f(x)\neq 0$. If $f(x)\to -\infty$ then $\int_1^\infty f(x)~dx=-\infty$ is obvious. Otherwise let be $c:=\lim_{x\to\infty} f(x)\in\mathbb R\setminus\{0\}$.
First, $c>0$. Then we use $f(x)\geq c$ and conclude $$ \int_1^\infty f(x)~dx=\lim_{R\to\infty}\int_1^Rf(x)~dx\geq \lim_{R\to\infty}\int_1^Rc~dx=\lim_{R\to\infty}(R-1)c=\infty. $$
Next, $c<0$. Since $f(x)\to c$ we get $X>0$ such that $f(x)\leq \frac12c$ for all $x\geq X$ and conclude \begin{align} \int_1^\infty f(x)~dx&=\int_1^Xf(x)~dx+\int_X^\infty f(x)~dx=\int_1^X f(x)~dx+\lim_{R\to\infty}\int_X^Rf(x)~dx\\ &\geq \int_1^Xf(x)~dx+\lim_{R\to\infty}\int_1^R\frac12c~dx\\ &=\int_1^Xf(x)~dx+\lim_{R\to\infty}\frac12(R-X)c=\infty. \end{align}