1

I am somehow not able to get my head around this:

I want to rearrange this to x:

$$p =\frac{e^x}{1+e^x}$$

The solution is $x = \ln(p/(1-p))$ But i am not able to rearrange it by myself, because i struggle with the constant 1.

[1] https://i.stack.imgur.com/ojJ5M.png

Arnaldo
  • 21,342
4sens
  • 21

3 Answers3

3

$p=\frac{e^x}{1+e^x} \implies e^x=\frac{p}{1-p} \implies x=\ln p-\ln(1-p)$.

Z Ahmed
  • 43,235
2

Hint

First of all, isolate $e^x$.

$$p=\frac{e^x}{1+e^x}\to p(1+e^x)=e^x\to p+pe^x=e^x$$

$$p=e^x-pe^x\to e^x(1-p)=p\to e^x=\frac{p}{1-p}$$

Can you finish?

Arnaldo
  • 21,342
1

You could divide the numerator and denominator of the fraction by $e^x$, giving us $$p=\frac{1}{1+e^{-x}}\implies1+e^{-x}=\frac{1}{p}\implies e^{-x}=\frac{1-p}{p}$$ $$\implies-x=\ln\frac{1-p}{p}\implies x=\ln\frac{p}{1-p}$$ using the laws of logarithms.