This just came to my mind, and I wonder if there is some criterion for this.
Suppose $f$ is differentiable, strictly increasing function and $f^{-1}$ is its inverse. Then, can $f-f^{-1}$ be any differentiable function?
In other words, can we find function $f$ such that the difference between $f$ and $f^{-1}$ is exactly the given differentiable function? For example, is there an increasing function $f$ such that $f(x)-f^{-1}(x)=lnx+e^{x^2}$?