Let $f$ an integrable function (i.e. $L^1(\mathbb R)$). Suppose $f$ is uniformly continuous. Prove that $$\lim_{|x|\to \infty }f(x)=0.$$
If suppose first that $\ell:=\lim_{|x|\to \infty }f(x)$ exist. By contradiction, I suppose $\ell\neq 0$, and suppose WLOG that $\ell>0$. Using continuity, there is $M>0$ such that $f(x)>\frac{\ell}{2}$ for all $x\geq M$. Therefore, $$\int_{\mathbb R} f(x)dx=\int_{|x|>M}f(x)+\int_{[-M,M]}f(x)\geq \frac{\ell}{2}\int_{|x|>M}dx+C=+\infty ,$$ what contradict $f$ integrable.
Q1) Is it correct ?
Q2) How can I do if I don't suppose that $\lim_{|x|\to \infty }f(x)$ exist ?
Suppose there exists $x_{n}\rightarrow \infty $ and $\epsilon >0$ such that $|f(x_{n})|>\varepsilon $ for all $n$ and $x_{n}\rightarrow \infty $. By going to a subequence we may suppose $x_{n+1}>x_{n}+1$ for each $n$. Suppose $|f(x)-f(y)| < \epsilon /2$ whenever $|x-y|<\delta$. The intervals $(x_{n},x_{n}+\delta),n=k,k+1,...$ are disjoint Now $ \int_{x_{n}}^{x_{n}+\delta}f(y)dy\geq \int_{x_{n}}^{x_{n}+\delta}[f(x_{n})-\epsilon /2]dy>\frac{\varepsilon }{2}\delta$. Summing these intervals we see that $\int_{0}^{\infty }f(x)dx=\infty $, a contradiction.