The strategy I have been asked to take, is to show that Fourier coefficients of the function $f(x) = x$ on $[0, 1]$ are up to a constant equal to $1/n^2$.Then I should apply the norm
\begin{equation*} \lVert f \rVert_2 = (\int_0^1 \lvert f(x)\rvert^2 dx)^{1/2} \end{equation*}
in terms of Fourier coefficients.
So I know that for an inner product space we have that
\begin{equation*} x=\sum_{n=1}^\infty \langle x, e_n \rangle e_n \end{equation*}
and the space we seem to be working in is $L^2 [0,1]$.
The first difficulty I am having is finding an orthonormal sequence in this space. Without some$(e_n)_{n \in \mathbb N}$ to work with. I cannot see how I can progress with this solution and I am not sure how to come up with an infinite linearly independent set of functions.
Using Omnomnomnom's choice:
Complete orthonormal set $e_n(x):=e^{2\pi i n x}$ on $[0,1]$. For function $f(x) := x$, the Fourier coefficients are $$ c_n = \langle f,e_n\rangle = \int_0^1 x e^{-2\pi i n x}\;dx = \frac{i}{2\pi n} ,\qquad{n \ne 0} \\ c_0 = \langle f,e_0\rangle = \int_0^1 x\;dx = \frac{1}{2} $$ Then compute $$ \|f\|^2 = \int_0^1 |x|^2\,dx = \frac{1}{3} $$ So by Parseval's identity $$ \|f\|^2 = \sum_{n=-\infty}^{+\infty} |c_n|^2 \\ \frac{1}{3} = \frac{1}{4} + 2\sum_{n=1}^\infty \frac{1}{4\pi^2n^2} \\ \frac{\pi^2}{6} = \sum_{n=1}^\infty \frac{1}{n^2} $$