Let $C$ be a regular curve enclosing the distinct points $ω_1,ω_2,...ω_n$ and let $p(ω) = (ω −ω_1)(ω −ω_2) \cdots (ω −ω_n)$. Suppose that $f (ω)$ is analytic in a region that includes $C$. Show that
$$P(z) = \frac{1}{2 \pi i} \int_C \frac{f(ω)}{p(ω)} . \frac{p(ω) -p(z)}{ω -z} dω$$
is a polynomial of degree $n-1$ and $P(ω_i) = f(ω_i)$.
This directly follows from the residue theorem: $$ P(z)=\sum_i \frac{f(\omega_i)}{\prod_{j\ne i}(\omega_i-\omega_j)}\frac{-p(z)}{\omega_i-z} $$ which can be written as $$ P(z)=\sum_i \frac{f(\omega_i)}{\prod_{j\ne i}(\omega_i-\omega_j)}\prod_{j\ne i} (z-\omega_j) $$ The last product $\prod_{j\ne i} (z-\omega_j)$ is a polynomial of degree $n-1$ which cancels at $z=\omega_k$ for $k\ne i$. $P(z)$ is thus a polynomial of degree $n-1$ with $P(\omega_i)=f(\omega_i)$.