I am currently working my way through a Functional Analysis book in self-study and have come across a statement I couldn't quite follow. In one chapter, the authors present an inner product space (slightly adapted):
Let the set $Y$ be the closed interval $[a,b]$, let $S$ be the Lebesgue measurable sets in $Y$ and let $\mu$ be the Lebesgue measure. Then, for the equivalence classes of square-integrable functions on $[a,b]$ we can take, as inner product between two classes $f$ and $g$,
$$(f,g) = \int_{b}^{a}f(x)g(x)dx$$
where the integral is just the Lebesgue integral. This space is usually referred to as $L_2(a,b)$.
Consider the inner product space $L_2(a,b)$ and take the linearly independent set to be $\{1,t,t^2,...,t^n,...\}$. (It is easily verified that this is a linearly independent set by noting that any polynomial of degree $n$ has at most $n$ zeros).
I don't quite follow this last step - how does the fact that each polynomial has a potentially different number of roots imply linear independence?
To say that they are linearly independent is to say that for any finite number of monomials $\{ t^{r_i} \}_{i=1}^{m} $, the function $g(t)=\sum\limits_{i=1}^m c_i\cdot t^{r_i}$ is the zero function, i.e $g(t)=0$ for all $t\in [a,b]$, if and only if $c_i=0$ for every $i$. For the function to be the zero function, it has to have roots at every-point, or infinitely many roots. But for every finite collection of monomials, such a $g(t)$ would be a polynomial of a finite degree and would have finitely many roots if it is not equal to the zero polynomial.
Edit: This fact also has nothing to do with orthogonality, in fact I think that the collection of monomials is not orthogonal ever given your definition of inner product. To clarify further, orthogonality implies linear independence, but not the other way around. In fact even without an inner product on the space we still have a notion of linear independence.