Let $f:\Bbb R\to \Bbb R$ be a continuous function such that $\int _0^\infty f(x)\text{dx}$ exists.
Prove that
If $\lim _{x\to \infty } f(x)$ exists, then $\lim_{x\to \infty} f(x)=0$
If $f$ is non-negative then $\lim _{x\to \infty } f(x)$ must exist and $\lim_{x\to \infty} f(x)=0$
My try
To prove that $\lim_{x\to \infty} f(x)=0$ we should show that $\exists G>0$ such that $x>G\implies |f(x)|<\epsilon $ for any $\epsilon>0$
But I can't find out how to show this. Please help.
