I'm just curious if this implication is correct:
$$0 \le\int_a^b \left( f(x)-S_n(x) \right)^2dx \Rightarrow 0 \le \lim_{n\rightarrow \infty}\int_a^b \left( f(x)-S_n(x) \right)^2dx.$$
What needs to be true for this to hold? Is the existence of the limit in question sufficient? This is from my attempt at proving Bessel's inequality. The sequence $$T_n = \int_a^b \left( f(x)-S_n(x) \right)^2dx =\dots= \|f\|^2-\sum_{k=0}^n \gamma_k ^2 \|\varphi_k \|^2$$
should converge (not sure to what though, not necessarily to $f$ right?) given that $f \in L^2([a,b])$ and $(\varphi_k ) \subset L^2([a,b])$ is an orthogonal sequence of functions and $\gamma_k = \dfrac{\langle f \mid \varphi_k\rangle}{\|\varphi_k\|^2}$. How to show that $T_n$ converges?