In the Lagrange representation the interpolating polynomial is given by Pn=n∑k=0lkyk, with the Lagrange factors lk(x)=n∏i=0i≠kx−xixk−xik=0,…,n.