I have the following problem: let $u\in L^\infty(\mathbb R) \cap L^1(\mathbb R)$ and $f\in C^\infty(\mathbb R)$ with $f(0)=0$. Show that:
$$ \lim_{|a|\to\infty}\int_a^{a+\epsilon} f(u(x)) d x = 0 \qquad\text{for all }\epsilon>0$$
Now although $u\in L^1(\mathbb R)$ does not imply $u(x)\to 0$ as $|x|\to\infty$, it does imply that the average of $u$ goes to to zero in the sense that
$$ \lim_{|a|\to\infty}\int_a^{a+\epsilon} |u(x)|dx =0 \qquad\text{for all }\epsilon>0$$
So an estimate of the form $$ \int_a^{a+\epsilon} f(u(x)) d x \approx f\Big(\int_a^{a+\epsilon} u(x) d x\Big) $$
is needed, which seems reasonable but I can't find a rigorous proof.
I think I finally found an answer with an idea similar to this thread composition of $L^{p}$ functions that even generalizes the statement:
Proof: Since $g\in L^\infty(\mathbb R)$ it assumes, up to a set of measure zero, only values in a compact interval $[a,b]$. Thus, since the image of a compact set under a continuous map is compact, $f$ is also essentially bounded. I.e.
$$ \|f\circ g\|_{\infty} \le \max_{x\in [a,b]} |f(x)| $$
Moreover since $f$ is $C^1$, it is Lipschitz continuous on this interval, hence there is some $C>0$ such that for all $x\in[a,b]$ holds $|f(x)|\le C |x|$. Therefore:
\begin{align} \|f\circ g\|_{1} = \int_{-\infty}^{+\infty} |f(g(x))| d x \le \int_{-\infty}^{+\infty}C|g(x)| dx = C \|g\|_{1} \end{align}
Which finishes the proof. The statement of the original question follows immmediately.