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.
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.
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?
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.