Suppose we have n+1 points $x_0, x_1 , \dots , x_n$ and the following is Lagrange basis function. $$ L_i(x):=\prod_{j=0, j \neq i}^n \frac{x-x_j}{x_i-x_j} $$
How to prove that $$ \operatorname{span}\{1,x,\dots,x^n\} = \operatorname{span}\{ L_0(x),L_1(x),\dots,L_n(x) \} $$
I've only ever taken a linear algebra course, so I can not understand the span of a set of scalars (since they are just some real numbers).
Define:V=span$\left\{ 1,x,x^2,\cdots ,x^n \right\} $=$\left\{ f\,\,\mathrm{is} ~\mathrm{a} ~\mathrm{polynomial}~|~deg\left( f \right) \leqslant n\,\,or\,\,f=0 \right\} $
Firstly,
$\forall f\in V$,we can get $f\left( x \right) =\sum_{i=0}^n{f\left( x_i \right) L_i\left( x \right)}$.
Because $f\left( x \right) -\sum_{i=0}^n{f\left( x_i \right) L_i\left( x \right)}$ has $n+1$ roots $x_0,x_1,\cdots,x_n$, so $f\left( x \right) -\sum_{i=0}^n{f\left( x_i \right) L_i\left( x \right)}=0$.
Secondly:
$L_0(x),L_1(x),\cdots,L_n(x)$ are linearly indenpendent.
If $~k_0L_0(x)+k_1L_1(x)+\cdots k_nL_n(x)=0$, then $$~k_0L_0(x_i)+k_1L_1(x_i)+\cdots k_nL_n(x_i)=0~,~\forall 0\le i\le n.$$
Because $L_i\left( x_j) =\delta _{ij} \right) $ ,we can get $k_i=0$,$\forall 0\le i \le n$.
So we complete the proof.