Let $g:[1, \infty)\rightarrow \mathbb R$ a continuous non-negative function, such that $\int_{1}^{\infty} g(x)\ dx$ converges. Is it true that $\lim\limits_{x\to \infty}g(x)=0$ ?
I tried to find a counter-example but I can't figure a trivial one. I also tried to prove it by the definition of the convergence of $g(x)$ but couldn't show that limit is really $0$.