Consider the space $H=C([0,1])$ with the norm $\|f\|_2=\left(\int_0^1|f(x)|^2 d x\right)^{1 / 2}$ and the sequence $f_n(x)=\cos (2 \pi n x)$ in $H$.
Show that for every $g \in H,\left\langle f_n, g\right\rangle \longrightarrow 0$.
I early see the following awnser:
"We use that the space of trigonometric polynomials is dense in $H$. For every $\epsilon>0$, there exists a trigonometric polynomial such that $\|g-p\|_2<\epsilon$. It follows from orthogonality that for sufficiently large $n,\left\langle f_n, p\right\rangle=0$. We obtain $$ \left|\left\langle f_n, g\right\rangle\right| \leq\left|\left\langle f_n, p\right\rangle\right|+\left|\left\langle f_n, g-p\right\rangle\right| \leq\left\|f_n\right\|_2\|g-p\|_2<\epsilon / \sqrt{2} . $$ This proves that $\left\langle f_n, g\right\rangle \rightarrow 0$."
But, I don't understand the point of "follows from orthogonality that for sufficiently large $n,\left\langle f_n, p\right\rangle=0$", I think that maybe this awnser be wrong. If is correct, what I missing?