How can I find the inverse equation for e^x/(e^x-1)?

  • Thread starter Dramen
  • Start date
  • Tags
    Inverse
Instead of x=\frac{e^y}{e^y+1}, you should have x=\frac{e^y}{1+e^y}, which goes to xe^y+e^y=x+1, and so on.In summary, the conversation discusses a problem with finding the inverse equation for the function e^x/(e^x-1). Two attempts were made, but both did not produce a correct solution. With the help of others, the inverse equation was found to be f^-1(x) = ln|x/(x-1)|, but there were some errors in the steps taken.
  • #1
Dramen
22
0

Homework Statement



I'm having problems with finding the inverse equation for this function [tex]e^x/(e^x-1)[/tex]


The Attempt at a Solution



Currently, I have done about 2 methods to solve it and hitting dead-ends on each one:

Attempt 1. [tex]x=e^y/(e^y-1)[/tex] then multiply both sides by [tex](e^y-1)[/tex] so that I have [tex]xe^y-x=e^y[/tex], then subtract [tex]xe^y[/tex] from both sides to then get [tex]x=e^y-xe^y[/tex] after which I factor out [tex]e^y[/tex] and then my final solution to this attempt is: [tex]f(x)^-1= ln(x/(1-X))[/tex]

Attempt 2. I took the reciprocal of the equation so I have [tex]1/x= (e^y+1)/e^y[/tex] then split up the fraction to [tex] 1/x= 1+(1/e^y)[/tex], then multiplied both sides by [tex] e^y[/tex] to get [tex] e^y/x = 1+1[/tex] then multiplied it by [tex] x [/tex] so that my solution was [tex]f(x)^-1= ln(2x) [/tex]

Obviously by looking at the final solutions neither of them actually work. I would really appreciate any enlightenment on this problem.
 
Physics news on Phys.org
  • #2
Dramen said:

Homework Statement



I'm having problems with finding the inverse equation for this function [tex]e^x/(e^x-1)[/tex]


The Attempt at a Solution



Currently, I have done about 2 methods to solve it and hitting dead-ends on each one:

Attempt 1. [tex]x=e^y/(e^y-1)[/tex] then multiply both sides by [tex](e^y-1)[/tex] so that I have [tex]xe^y-x=e^y[/tex], then subtract [tex]xe^y[/tex] from both sides to then get [tex]x=e^y-xe^y[/tex]
You made a sign error here. This attempt, otherwise, is fine.
after which I factor out [tex]e^y[/tex] and then my final solution to this attempt is: [tex]f(x)^-1= ln(x/(1-X))[/tex]
X and x are two different variables. Don't mix cases. Also, you want the superscript -1 on the f, not after (x). f-1 denotes the inverse of f, but f(x)-1 means 1/f(x).
 
  • #3
Dramen said:
Attempt 2. I took the reciprocal of the equation so I have [tex]1/x= (e^y+1)/e^y[/tex] then split up the fraction to [tex] 1/x= 1+(1/e^y)[/tex], then multiplied both sides by [tex] e^y[/tex] to get [tex] e^y/x = 1+1[/tex]
You have to multiply everything by ##e^y##:
\begin{align*}
\frac{1}{x} &= 1+\frac{1}{e^y} \\
e^y \times \frac{1}{x} &= e^y \times \left(1+\frac{1}{e^y}\right) \\
\frac{e^y}{x} &= e^y + 1
\end{align*}
then multiplied it by [tex] x [/tex] so that my solution was [tex]f(x)^-1= ln(2x) [/tex]

Obviously by looking at the final solutions neither of them actually work. I would really appreciate any enlightenment on this problem.
 
  • #4
I see the mathematical errors now because when I was first typing it on my home computer the connection was bad and had problems typing it out and previewing it before posting.

However, it seems that even with your assistance I'm still having problems with finding the inverse function as my solution now:

1) [tex] f-1(x)=ln(x/1-x) [/tex] which doesn't work when x≥1
 
  • #5
I get it differently

[tex] y^{-1} (x) = \ln\left|\frac{x}{x-1}\right| [/tex]

for certain values of x which you have to figure out yourself.
 
  • #6
Dramen said:
I see the mathematical errors now because when I was first typing it on my home computer the connection was bad and had problems typing it out and previewing it before posting.

However, it seems that even with your assistance I'm still having problems with finding the inverse function as my solution now:

1) [tex] f^{-1}(x)=ln(x/1-x) [/tex] which doesn't work when x≥1
Don't use tags, etc in LaTeX.

You need Parentheses for the denominator.
 
  • #7
Dramen ,

I suggest writing [itex]\displaystyle f(x)=\frac{e^x}{e^x-1}\ \text{ as }\ f(x)=\frac{1}{1-e^{-x}}\ .[/itex]

It should be easy from there.
 
  • #8
I must be an idiot or still suffering from my high school senioritis because even with all your help (which is very appreciated). I still can't get a decent answer as my calculator gets me error values, low decimals (to check against f(x)), or the numbers are negative.

@SammyS this is what I get from your hint [tex] x= (1)/(1+e^{-1})[/tex] multiply by [tex] 1+e^{-1}[/tex] to get
[tex] x+xe^{-1}=1[/tex] then subtract x then divide by x to get [tex]e^{-y}=\frac{1-x}{x}[/tex] natural log it to finally get [tex] y= -\ln (\frac {1-x}{x})[/tex]

@dextercioby I'm not sure if I follow you since I have no idea how you switched the denominator x and 1 positions and also when I check the values through [tex] f(x)*f^{-1}(x)[/tex] it doesn't come out to 1
 
  • #9
e^x = p. You get nice algebra afterwards: p = (p-1)y => p(1-y)=-y => p=y(y-1)^(-1). Thus x=ln|y/(y-1)| or y^(-1)(x)= what I wrote in post 5.
 
  • #10
One more possible route to take is[tex]\frac{e^x}{e^x-1} = \frac{e^x-1+1}{e^x-1} = 1 + \frac{1}{e^x-1}[/tex]
However,
Dramen said:
...when I check the values through [tex] f(x)*f^{-1}(x)[/tex] it doesn't come out to 1

That's not true in general for the product of a function and its inverse. What is true is that f(f-1(x)) = f-1(f(x)) = x
 
  • #11
@dextercioby okay I was able to get my answer though I would like to know if the steps I made to recreate your answer are right [tex] x=\frac{e^y}{e^y+1}[/tex] multiply the denominator on both sides to get [tex]xe^y+x=e^y[/tex] multiply both sides by -1? [tex] -e^y+xe^y=-x[/tex] factor out the ey to then get [tex]e^y(x-1)=-x[/tex] divide both sides by (x-1) [tex] e^y=\frac{-x}{x-1}[/tex] then natural log it to get your answer of [tex] f^{-1}(x)=\ln \vert \frac {-x}{x-1}\vert[/tex]

@bohrok seems that I'm starting to lose my grasp of math, that I'm thinking that the check for reciprocals is the same as the check for inverses
 
  • #12
Dramen said:
@dextercioby okay I was able to get my answer though I would like to know if the steps I made to recreate your answer are right [tex] x=\frac{e^y}{e^y+1}[/tex] multiply the denominator on both sides to get [tex]xe^y+x=e^y[/tex] multiply both sides by -1? [tex] -e^y+xe^y=-x[/tex] factor out the ey to then get [tex]e^y(x-1)=-x[/tex] divide both sides by (x-1)[tex] e^y=\frac{-x}{x-1}[/tex] then natural log it to get your answer of [tex] f^{-1}(x)=\ln \vert \frac {-x}{x-1}\vert[/tex]

@bohrok seems that I'm starting to lose my grasp of math, that I'm thinking that the check for reciprocals is the same as the check for inverses
Why are you using the absolute value in that result?

Also, you have the wrong sign in your beginning expression.
 
Last edited:
  • #13
Yeah I have no idea why I have it either only put it there because dextercioby had one. Also if your talking about the [tex] e^y+1[/tex] then its alright because somehow I fudged typing the equation right and accidentally turned it from an addition sign to a subtraction one.
 
  • #14
Dramen said:
Yeah I have no idea why I have it either only put it there because dextercioby had one. Also if your talking about the [tex] e^y+1[/tex] then its alright because somehow I fudged typing the equation right and accidentally turned it from an addition sign to a subtraction one.
So you should get

[itex]\displaystyle f^{-1} (x) = \ln\left(\frac{x}{x-1}\right)\ .[/itex]

I think it's probably easiest to get to this using rewriting f(x) in the manner Bohrok suggested.
 
  • #15
Okay I finally got it thanks for all the help, however my answer differs from yours in that mine is: [tex] f^{-1}(x)=\ln \frac {-x}{x-1}[/tex]
Thing is though when I run mine through the checks it still works, but when I used yours I just get errors.
 
  • #16
Which function are you finding the inverse of? The one in the thread title, which is
$$\frac{e^x}{e^x+1}$$ or the one in your original post, which is
$$\frac{e^x}{e^x-1}?$$
 

What is the inverse of the function f(x)= e^x/e^x+1?

The inverse of f(x)= e^x/e^x+1 is g(x)= ln(x)/ln(x+1).

How do you find the inverse of a function?

To find the inverse of a function, you can follow these steps:
1. Write the original function in the form y=f(x).
2. Switch the x and y variables.
3. Solve for y.
4. The resulting equation is the inverse function.

What is the domain and range of the inverse function?

The domain of the inverse function is the same as the range of the original function, and vice versa. In this case, the domain and range of g(x)= ln(x)/ln(x+1) are all real numbers except for x=-1.

What is the graph of the inverse function?

The graph of the inverse function is a reflection of the original function's graph across the line y=x. In this case, the graph of f(x)= e^x/e^x+1 is a curve approaching 1 as x approaches infinity, and the graph of g(x)= ln(x)/ln(x+1) is a curve approaching infinity as x approaches 1.

What is the relationship between a function and its inverse?

A function and its inverse are two functions that "undo" each other. This means that if you apply one function and then the inverse function, you will get back the original input. In other words, f(g(x))=x and g(f(x))=x. They are reflections of each other across the line y=x.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
620
  • Calculus and Beyond Homework Help
Replies
8
Views
762
  • Calculus and Beyond Homework Help
Replies
7
Views
706
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
288
  • Calculus and Beyond Homework Help
Replies
2
Views
277
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
705
  • Calculus and Beyond Homework Help
Replies
6
Views
548
Replies
5
Views
967
Back
Top