Let $f(x) = x^3 + 2x^2 + x + 1$. Find the polynomial of degree $2$ that interpolates the values of $f$ at $x = -1,0,1$.
I was able to do the an initial part of this problem (not written), but I don't really know how to meet the restriction that the polynomial has to be degree $2$. I've found the values of $f$ at the indicated points, but from there i'm not sure what to do.
You need to find $p(x)=ax^2+bx+c$ such that $p(-1,0,1)=f(-1,0,1)=(1,1,5)$. The system is therefore $$a-b+c=1$$ $$c=1$$ $$a+b+c=5$$ So $a=2,b=2,c=1$ and therefore $$p(x)=2x^2+2x+1$$