Mathematica Why Doesn't Mathematica Produce an Explicit Inverse for My Function?

Click For Summary
The discussion revolves around finding the inverse of the function f(x)=(2x+1)/(x-1) using Mathematica. The user initially attempts to use the InverseFunction command but receives an output that does not provide a clear solution. It is clarified that InverseFunction primarily works with built-in functions, such as trigonometric functions. The recommended approach is to use the Solve function with the equation y == (2 x + 1)/(x - 1) to find the inverse. This advice successfully resolves the user's issue.
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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K