Prove the following: $f \in L^2(\mathbb{R})$ and $f'$ bounded $\Rightarrow$ $\lim_{|x| \to \infty}f(x)=0$.
In general, is it also true that $f \in H^1(\mathbb {R} ^n)$ $\Rightarrow \lim_{|x| \to \infty} f(x)=0$ (where $H^1$ denotes the Sobolev space $W^{1,2}$)?
You can prove the first bit by slightly tweaking David Mitra's answer to this question (note that $f'$ being bounded implies that $f$ is uniformly continuous).
Not sure about the second bit though.