I need some help working with multi-dimentional polynomials. Amost everyhting I find is 1-D.
Let's say that I have the data
z = [200, 250, 190, 180, 220]
x = [100,101, 98, 92, 120]
y = [5, 10, 15,22,8]
where Z will be my dependent and X and Y are my dependent variables (let's call it x and y).
I want to fit a 2-D polynomial of the type
f(x,y) = a + b*x + c*x**2 + d*y + e*y**2 + g*xy + ...
Then I want to extract the first derivative with respect to e.g.x
f_x(x,y) = b+2*c*x + g*y + ...
And then I want to evaluate the first derivative, e.g.
f_x(10,10) = ?
I know you can do some stuff with tensor products of polynomials but I'm not sure how it works