As it states in the title, I'd like to prove that $1, x, x^2, \ldots , x^n$ are linearly independent in $C[-1,1]$.
Should I use an induction argument or integrate for $x^m$ and $x^n$ with cases $m=n$ and $m \neq n$? The inner product is $$ \langle f,g \rangle = \int_{-1}^1 f(x)g(x)dx.$$ Do both methods work?
Suppose they aren't linearly independent in $[-1,1]$. Then $a_0+a_1x^1+\cdots+a_nx^n=0$ for some set of coefficients, where not all of them are zero. But an $n$ degree polynomial can have at most $n$ roots, but this one has infinitely many, a contradiction.