Say we have $a = 0$, $b = 1$ and we want to compute the weights of the interpolatory quadrature formula $I_2$ with the nodes $x_0 = 0$, $x_1 = \frac{2}{5}$ and $x_2 = 1$. I want to show that $I_2(p)$ is equal to \begin{equation}\tag{1} \int_{a}^{b} p(x) dx \end{equation} if p is a quadratic polynomial. And that $I_2(p)$ is in general not equal to (1) if p is a cubic polynomial.
I know that this may be a common proof in Polynomial Interpolation, but I haven't been able to come up with a proof for this result or stumble across. I would appreciate if someone could show me how this can be done or set me on a solid track.