In the function $$f(x) = x\cdot\sin(x)$$ every codomain value $y$ occurrs infinitely many times. So, in principle, there are "inverse" functions $f^{-1}$ such that $$f^{-1}(y)=x \mbox{ and } f(x)=y$$ for every $y \in \mathbb{R}$.
(I know that there is no ONE inverse function in the traditional sense (therefore, the "quotes"), but I'm looking for a function that has the above and below properties which are fairly close to an inverse.)
I'm particularly interested in inverse values $f^{-1}(y)$ that are closest to zero. That is, for values of $y$ below the maximum of the smallest "sine hill", I'd like to get the respective $x$ value on the zero-facing side of that hill, for values larger than that, but smaller than the maximum of the second hill, the function should jump to the zero-facing side of the second hill and so on. (Only looking for positive $x$ values.)
There are probably no closed forms for that (but maybe there are partial closed forms that can be defined interval-wise in some way)? Numerical solutions would also suffice - or any other ideas.