1

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$.

1 Answers1

10

Take a function made up of triangles (i.e. it starts at $0$, it goes to $1$, then comes back at $0$). Make it so that the area of each triangle is $1/n^2$ (i.e. the base of each triangle is $2/n^2$).

This means that $$\int_1^\infty g(x) = \sum_{n=1}^\infty \frac{1}{n^2}$$ converges.

But the limit of $g(x)$ as $x \to \infty$ is not $0$ as $g(x)$ alternates between $0$ and $1$

Ant
  • 21,522