The condition that f ( x ) {\displaystyle f(x)} goes through all the points means that f ( x i ) = y i {\displaystyle f(x_{i})=y_{i}} . Rewrite this in terms of p i ( x ) {\displaystyle p_{i}(x)} .