If $f(x)$ and $xf(x)\in L^2(\mathbb{R})$ then $f(x)\in L^1(\mathbb{R})$.
I know that if $E$ is of finite measure, then we can infer from $f(x)\in L^2(E)$ to get $f(x)\in L^1(E)$. However, now $E=\mathbb{R}$, I don't know how to get the result now. How to apply $xf(x) \in L^2$?
Split into two:
$$\begin{split} \int_\mathbb{R} |f(x)|dx &= \int_{|x|\le 1} |f(x)|dx + \int_{|x|>1} |f(x)| dx \\ &= \int_{|x|\le 1} |f(x)|dx + \int_{|x|>1} \frac{1}{|x|}{|x|}\cdot |f(x)| dx \end{split}$$
Then apply Cauchy-Schwarz on both terms.