$f:[a,b] \to R$ is a continuous differentiable function, and all $x_i$ are different and $q_i(x) = \prod (x-x_j)^2$ with $i \not= j$
Show that $$g_i(x)= \frac{q_i(x)}{q_i(x_i)}\left(\left(1-\frac{(x-x_i)q_i'(x_i)}{q_i(x_i)}\right)f(x_i)+(x-x_i)\cdot f'(x_i)\right)$$
interpolates $f$ and $f'$ in $x_i$.
For $f$ I just have to calculate $g_i(x_i)$, but how can I show that for $f'$?