$X_1,X_2,...,X_n$ and $Y_1,Y_2,...,Y_n$ are independent samples from the exponential distributions with parameters $\lambda$ and $\frac{1}{\lambda}$.
What is the MLE for $\lambda$?
I used the log-likelihood function:
$logL(\lambda)=\mathbb{}log\prod\lambda e^{-\lambda x_i}\prod\ \frac{1}{\lambda} e^{-\frac{1}{\lambda} y_j}=$
$=n\cdot log(\lambda)+n\cdot log(\frac{1}{\lambda})-\lambda\sum x_i-\frac{1}{\lambda}\sum y_j \rightarrow max\lambda$
After differentiation I got:
$\frac{n}{\lambda}+n\lambda-\sum x_i-\sum y_j =0$
And this is a quadratic equation for $\lambda$.
Can someone check my calculations? Is it correct that there are two possible ML estimations for $\lambda$?