I need to approximate a function $y=f(x)$ using a small set of constants $a_0…a_n$, ideally where the number of constants can be arbitrarily increased to improve accuracy. $x$ and $y$ are both real and >0. The function I am fitting approaches some linear relationship as x and y become large, and all the ‘interesting’ features of the x-y relation (the features that would justify using a higher n for better approximation) tend to occur at smaller x and y. I would like to be able to invert the approximation function to get a $x=f(y)$ function once the $a_i$ constants for the original $y=f(x)$ have been found. This need not be the same kind of function, but it would be neat if it was and only the constants needed recalculating, or equivalently if there was another function to compute $x=f(y)$ that relied on the same constants $a_i$ used for the $y=f(x)$ function.
Simple polynomials are a bad choice here as they are not generally invertible for n>3, and are prone to oscillation and unnatural (and certainly nonlinear) behaviour when extrapolated. So-called rational functions (ratio of two polynomials) work very well for the approximation, especially as the order of the top and bottom polynomials can be chosen to give the desired behaviour at large x. However, as far as I’m aware, they’re generally impossible to invert. One way to get invertibility would be to make a function by repeatedly applying some simple invertible function $x\mapsto(x+a_i)^p$ as many times as required to get $y=f(x)$, which could then be ‘unwrapped’ to get another function using the same $a_i$ constants to give $x=f(y)$. However the final function created by that example does not appear to be useful as a general approximant. The invertibility requirement makes me feel I might be grappling for some class of polynomials that forms a group.
For the curious, I’m trying to analytically fit the calibration function for some mechanical apparatus that applies a force to a material sample and measures the resulting deformation. We want to determine the deformation in the sample, but the measured deformation includes some elastic deformation in the rig itself. Hence if we can determine the deformation in the rig as a function of force, we can subtract it from the total measured deformation to get the required sample deformation. But it’s just as common to want to convert the other way.
Is there a general class of polynomials or other functions that seems applicable here?
EDIT: $y=f(x)$ can be assumed monotonically increasing, so inverse will be unique.