I have numerical analysis final coming up in a few weeks and I'm trying to tackle a practice exam.
Assuming $p(x)$ interpolates the function $f(x)$, find the polynomial $p(x)$ that satisfies the following conditions: $$p(0) = 20, p(1) = 26, p'(1)=9, p(2) = 36, p'(2)=16$$.
I also have to provide an expression for the interpolation error.
I've been going through my book and notes all afternoon, but I'm afraid I just don't understand.
Since you are given five conditions, your polynomial must be at least of degree 4. So, write
$$p(x) = a + b x + c x^2 + d x^3 + e x^4 $$ Establish the derivative $p'(x)$. Apply all given conditions. You have now a system of five linear equations for five unknowns $(a,b,c,d,e)$. Just solve it (the solutions are simple). This will give you the solution to the first part of your problem.