Find a function $f : \Bbb R \rightarrow \Bbb R $ such that $\int_\Bbb R |f(x)|dx < \infty $ but for x $ \rightarrow \infty$, $f(x)\not\rightarrow 0$.
Is there a way of generating such functions? I have just tried various functions, but have been unable to find any that satisfy both conditions.
Thanks in advance.