My first reaction was : " _one more typo_ ". And, I was wrong !!
But let $$F=\sum _{i=1}^n r_i \left(1-e^{-a_i x_i}\right)+\lambda \left(1-\sum _{i=1}^n x_i\right)$$ which gives $$\frac{dF}{dx_i}=a_i r_i e^{-a_i x_i}-\lambda$$ what you properly found. But they now set the derivative equal equal to $0$. Then, and only then, $$a_i r_i e^{-a_i x_i}=\lambda$$ Now, take the logarithms. But this does not represent the derivative of anything.