I am trying to implement an interpolation function in C# and one of the parameter is an array of 4 elements, which should contains first derivative of the slope at the sample 4 points. I am not a math expert and I have been google for a while without success. These are the arrays. Thank you for any help.
Points Values
1.0 3.2
2.0 3.4
3.0 3.6
4.0 3.8
If your table is the slope and this varies linearly, the function will be quadratic. Since $$y'=3+0.2 x$$ then $$y=a + 3x+0.1 x^2$$