Disclaimer: I'm not expert in math; the solution to this problem may be trivial.
I have a process based on a deterministic computer simulation where two continuous input variables $x_1$ and $x_2$ (under my control) produce a continuous output variable $y$.
My objective is to determine which one of the two variables affects the variability of $y$ the most and I would like the answer to be generalizable to any number of independent variables.
Mathematically speaking, my model is $y=f(x_1,x_2)$, with $f:X \rightarrow R $ being a continous unknown function in $X$ which is a simply connected domain.
Lack of random variation in $y$ suggest me that a statistical approach is not the right way to address the problem .
If I knew $f$ ,$ \frac{\partial f }{\partial x_1}$ and $\frac{\partial f}{\partial x_2}$ answer my question but only if $ \frac{\partial f }{\partial x_1}$ depends solely on $x_1$ (and same for $ \frac{\partial f}{\partial x_2}$). If it's not the case I do not know how to properly answer the question even by knowing $f$.
My naive approach:
I was thinking about "meshing" the $X$ domain in regions where $f$ is approximated by a linear o by a quadratic model.
Let us define:
$L(x_1,x_2)=\beta_0+\beta_1x_1 + \beta_2x_2$
$Q(x_1,x_2)=\beta_0+\beta_1x_1 + \beta_2x_2 + \beta_3x_1x_2 +\beta_4x_1^2 + \beta_5x_2^2 $
In domain regions where linear approximation holds, $\frac{\partial L}{\partial x_1}=\beta_1$ and $\frac{\partial L}{\partial x_2}=\beta_2$ and this should be nice because I can directly compare the coefficient in order to assess which of the two variable influences $y$ the most.
In those region where linear approximation does not hold, the presence of the interaction term disrupts my interpretation because $\frac{\partial Q }{\partial x_1} = \beta_1 +\beta_3x_2 + 2\beta_4x_1$ depends on $x_2$ (and similar for $\frac{\partial Q }{\partial x_2}$)
Some thougts: linear approximation may be incorrect where sub-regions contain minima, maxima or saddle points. Does avoiding them by partitioning the domain with a finite number of "holes" could solve the issue? (I may use an optimization algorithm such as gradient descent in order to find them)