Let's say I was given a set of $d+1$ distinct points known to be from a polynomial $P$ of degree $d$.
So:
$$P = a_dx^d + a_{d-1}x^{d-1} + ... a_1x + c$$
And I have pairs $(x_i, y_i)$ such that: $$P(x_1) = y_1$$ $$...$$ $$P(x_{d+1}) = y_{d+1}$$
My question is: what's the quickest way to find $c$?
The only option I've seen so far is building the Lagrange Polynomial and then evaluating $P(0)$, but it seems wasteful because it reconstructs all $a_i$ coefficients, resulting in $O(d^2)$ operations. Is there anything faster?
Note there are enough points to reconstruct the unique polynomial, and they all lie perfectly on the curve.