Why doesn't Mathematica compute InverseFunction for (2x+1)/(x-1)?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 15K views
roam
Messages
1,265
Reaction score
12
I'm trying to find the inverse of a function, for instance: f(x)=(2x+1)/(x-1) using Mathematica but it doesn't produce any answers.

This is my input:

> f(x)=(2x+1)/(x-1)

> InverseFunction[f]

The output is always something like:

"InverseFunction[(1+2x)/(-1+x)]"

So, does anyone know what the problem is?

Thanks,
 
Physics news on Phys.org
InverseFunction only evaluates for built-in functions like trig functions. I think you want:
Solve[y == (2 x + 1)/(x - 1), x]
 
Oh I see... Thank you! :smile:
 
Thank you very much roam, you've helped me to solve a big problem.