As the title states, I'm stuck showing that, if $f\in L^1(\mathbb{T})$ has absolutely summable Fourier coefficients, then $f$ is square integrable in the torus (wrt Lebesgue measure). The book I'm reading (Folland's Real Analysis) states:
Since the family of exponentials $\{E_n\}_{n\in\mathbb{Z}}$ with $E_n(x):=e^{inx}$ form an orthonormal basis for $L^2(\mathbb{T})$, and since $\ell^1\subset\ell^2$, it follows that $f\in L^2(\mathbb{T})$.
I can't see why this is the case. I know that the map $h\mapsto \hat{h}$ is an isometry from $L^2(\mathbb{T})$ onto $\ell^2(\mathbb{Z})$, and hence $\|h\|_2=\|\hat{h}\|_2$. If we could apply this last equality (Parseval's identity), then is is immediate that $f\in L^2$, but to use it, we need the very thing we are trying to prove, which seems circular. How do we go around this?
EDIT: To clarify, I can see that since $\hat{f}\in\ell^2$, the function $g$ defined by $g(x):=\sum \hat{f}(n)e^{inx}$ belongs to $L^2$ and has the same Fourier series as $f$. We would be done if we could should $f=g$ a.e. but I can't see how to do this. Since $\mathbb{T}$ has finite measure, $L^2\subset L^1$, and hence $g\in L^1$, so it suffices to show $\|f-g\|_1=0$.
Note that if $g \in L^1(\mathbb{T})$ and $\int g e_n = 0$ for all $n$ (with $e_n(t) = e^{i n t}$) then $g = 0$ ae. (This is straightforward to prove using the fact that the continuous functions are dense in $L^1(\mathbb{T})$.)
Since $n \mapsto \hat{f_n} \in l_1 \subset l_2$, then $\phi = \sum_n \hat{f_n} e_n \in L^2(\mathbb{T}) \subset L^1(\mathbb{T})$.
All we need to do is to show that $f=\phi$ ae.
Since $\int (f-\phi) e_n = 0$ for all $n$, we have $f-\phi = 0$ ae. as desired.