I have a problem finding the inverse of a function, perhaps I'm missing something.. I'd appreciate it if someone can help me out.
First, I calculate an Integral of the form
int = Integrate[(1+x)/(3(1-x)x),{x,0.3,y}]
From which I get
ConditionalExpression[0.333333 (-2. Log[1. - 1. x] + Log[x]) -
0.333333 (-2. Log[0.7 - 3.*10^-15 Sign[x]] +
Log[0.3 + 3.*10^-15 Sign[x]]),
2.*10^-21 < Re[x] <=
0.9999999999999999 || x \[NotElement] Reals]
The function I want to invert is then f:
f = Exp[int] - 1
I want to find $f^{-1}(x)$ so I do:
purify[f_, x_] := Function @@ {f /. x -> #}
Which will rewrite the function properly and then do
InverseFunction[purify[f,x]][x]
This syntax works for almost every function I try, except the one I need. Mathematica keeps "running" and never returns a result for the Inverse Function. Does anyone have any ideas of what is going on? and maybe how to fix it?
My guess is that the problem comes from the function defined by the integral "int", It may be written in a weird manner or has something in it that mathematica does not understand.. I've tried Rationalize to write the result of the integral without floating points, but without any luck so far.