We have an orthonormalsystem in $L^2(0, 2\pi)$: $\{e^{ikx} : k \in \mathbb{Z}\}$. Now I want to show that it's also an orthonormalbasis.
I thought the easiest way to do that would be to show that for every $v \in L^2(0, 2\pi)$ with $(v,\phi_k) = 0, \phi_k(x) = e^{ikx}$ for all $k \in \mathbb{Z}$, $v(x) = 0$ for all $x$. But I'm stuck showing that if $\int_0^{2\pi} v(x)e^{ikx} dx = 0$ for all $k \in \mathbb{Z}$, then $v=0$.
How do I proceed? Is there an easier way?
This must be a duplicate... A trigonometric polynomial is a linear combination of those exponentials. One of the theorems in the book, if not one of the definitions, shows that you only need to show that the trigonometric polynomials are dense in $L^2(-\pi,\pi)$. The notation $||.||_2$ will refer to that space:
Say $f\in L^2$ and $\epsilon>0$. Somewhere else in the book it shows that there is a function $g\in C([-\pi,\pi])$ with $||f-g||_2<\epsilon$. It's easy to modify $g$ to obtain a $2\pi$-periodic continuous function $h$ with $||g-h||_2<\epsilon$. Now Weierstrass says there is a trigonometric polynomial $P$ with $|h(t)-P(t)|<\epsilon$ for all $t$, hence $||h-P||_2\le\sqrt{2\pi}\epsilon$. Put it all together and the triangle inequality shows that $$||f-P||_2\le(1+1+\sqrt{2\pi})\epsilon.$$