Let $X$ be an independent variable and $Y$ the dependent variable. Suppose we have the relationship $Y = f(X) + \epsilon$ for some unknown function $f(x)$ and some noise $\epsilon \sim N(0,1)$. If $f(x)$ is highly nonlinear, then we know that the performance of linear regression is going to be poor.
However it might be possible that we can perform a nonlinear transformation $X\mapsto g(X)$ on $X$ such that the independent variable becomes linear. For example, if $f(x)=2^x$ then we can let $g(x)=\log_2 x$.
The question I have is, for any given function $f(x)$, does there exist a function $g(x)$ such that $f(g(x)) = kx$ for some constant $k$? (i.e. $g(x)$ is “almost a right inverse of $f$”) Is there any criteria for such function to exist? (for example $f$ being bijective is a sufficient condition) I think this is the same as $f$ having a right inverse because if we have $f(g(x)) = kx$, then we can replace $x$ with $x/k$ and we have $f(g(x/k))=x$ and hence $f^{-1}(x)=g(x/k)$.
More generally, given a set samples $(X_1,Y_1),\cdots, (X_n,Y_n)$, how do we know if we should do a nonlinear transformation (and if so what kind of nonlinear transformation to do)?
I tried to google about it but couldn’t find much useful information. Any help/ book recommendations/ reference is appreciated, thanks in advance.