The image below is the final steps taken from the MLE for the Pr. of success (parameter $\pi$) to a Negative Binomial. Source: SE thread. Here are the final steps from that:
$ \frac{d\ell(\pi;x_i)}{d\pi} = \sum_{i=1}^{n}[\dfrac{k}{\pi}-\dfrac{(x_i-k)}{(1-\pi)}]$
Set this to zero,
$\frac{nk}{\pi}=\frac{\sum_{i=1}^nx_i-nk}{1-\pi}$
$\therefore$ $\hat\pi=\frac{nk}{\sum_{i=1}^nx}$
I'd like to know the algebra that got us from the second to last line to the final line ($\pi$-hat). I can't seem to reproduce the answer because there is a $\pi$ on both sides of the equation.
[self-study]tag & read its wiki. Then tell us what you understand thus far, what you've tried & where you're stuck. We'll provide hints to help you get unstuck. – gung - Reinstate Monica Jan 31 '17 at 14:28