I have an array of three variables as follows:
$$ \begin{array}{ccccccc} X & Y & Z \\ 0 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 2 & 1 \\ 1 & 0 & 0 \\ 1 & 1 & 1 \\ 1 & 2 & 1 \\ 2 & 0 & 1 \\ 2 & 1 & 1 \\ 2 & 2 & 1 \\ \end{array} $$
I am looking for a function $f:(X,Y) \rightarrow Z$, using only combination of elementary functions, I also want $f$ to be differentiable.
At first look, it looks all discrete, but I can imagine it's possible to fit a continous surface through these discrete points.
Daniel did a superb job in his answer, I would like to put the Mathematica code here to demonstrate how he solved the problem:
m2 = {{1, 1, 1, 1}, {16, 8, 4, 2}, {81, 27, 9, 3}, {256, 64, 16, 4}}
m2.{b1, b2, b3, b4} == {0, 1, 1, 1}
Solve[{b1 + b2 + b3 + b4, 16 b1 + 8 b2 + 4 b3 + 2 b4,
81 b1 + 27 b2 + 9 b3 + 3 b4, 256 b1 + 64 b2 + 16 b3 + 4 b4} == {0,
1, 1, 1}, {b1, b2, b3, b4}]

