TITLE: Function in $L^1([0,1])$ that is not locally in any $L^{\infty}$
QUESTION [5 upvotes]: Can we find a function such that $f\in L^1([0,1])$ and for any $0\leq a<b\leq 1$ we have that $||f||_{L^{\infty}([a,b])}=\infty$?

REPLY [5 votes]: Yes, we can. Consider $\{r_j,j\in\Bbb N\}$ an enumeration of rational numbers of $[0,1]$ and 
$$f(x):=\sum_{j=1}^{+\infty}\frac{2^{—j}}{\sqrt{|x-r_j|}}.$$