Suppose we where given the following values of $P(x)$ : $P(1) = 2, P'(1) = 3, P(2) = 1, P'(2) = -1, \text{ and } P''(2) = 1.$
How can we find a polynomial of degree less than 5 that satisfies these conditions using generalized Lagrange Interpolation?
I understand how regular Lagrange Interpolation works and I have tried to derive a method in a similar fashion but to no avail.
My current idea is to use the first few terms of the Taylor series: $$P(x) = A(P(1) + P'(1)(x-1))+B(P(2) + P'(2)(x-2) + \frac{P''(2)(x-2)^2}{2!})$$ but I am struggling to determine $A$ and $B$.