I am stuck on the following problem that says:
If the points $x_1,x_2,\ldots,x_n$ are distinct,then for arbitrary real values $y_1,y_2,\ldots,y_n$, prove that the degree of the unique interpolating polynomial $p(x)$ such that $p(x_i)=y_i,\,\,(1 \le i \le n)$ is $\le n-1$.
I think I have to use Lagrange polynomial but I could not put the things together . Can someone help? Thanks in advance for your time.