Find the unknown parameter $k$ given this distribution: $$ f(x)= \begin{cases} e^{kx} & 0 < x < 2\\ 0 & \text{otherwise} \end{cases}$$
This is my attempt:
$$\int_0^2 e^{kx} dx = \left[\frac{1}{k}e^{kx}\right]_0^2 \\ \frac{1}{k}e^{2k} -\frac{1}{k}=1 $$
This is where I am just stuck. How do I solve the above for $k$? I feel like I am missing something simple but I just can't see it.
Edit: I can see that I can rearrange this to equal $e^{2k} = k+1$ and then take logs giving me $k=\frac{1}{2}ln(k+1)$ but that still doesn't let me solve for $k$?
The total integral should indeed be $1$, but $ \int_0^2 e^{kx} dx = \left[ \frac{1}{k} e^{kx} \right]^{x=2}_{x=0} = \frac1k(e^{2k}-1) =1$ instead..
So $e^{2k} = (k+1)$ and take logs..