In Pathria and Beale's Statistical Mechanics, 3rd ed, Chapter 1.2 (Contact between statistics and thermodynamics: physical significance of the number $Ω(N, V, E)$ )
The equation to maximize $Ω^{(0)}$ is:
$$ \left(\frac{∂Ω_1(E_1)}{∂E_1}\right)_{E_1 = \bar{E_1}} Ω_2(\bar{E_2}) \space + Ω_1(\bar{E_1}) \left(\frac{∂Ω_2(E_2)}{∂E_2}\right)_{E_2 = \bar{E_2}} \cdot {\frac{∂E_2}{∂E_1}} = 0$$
where $\frac{∂E_2}{∂E_1} = -1$
but then in the next equation a natural log term $\ln$ is slid into the partial derivatives becoming:
$$ \left( \frac{∂ \ln Ω_1(E_1)}{∂E_1}\right)_{E_1 = \bar{E_1}} = \left( \frac{∂ \ln Ω_2(E_2)}{∂E_2}\right)_{E_2 = \bar{E_2}}$$
My confusion is why is the must the natural log of the number of microstates be taken instead of just the partial derivative as it was in the first equation?
As well as what happened to the two multiplicative terms $Ω_2(\bar{E_2})$ and $Ω_1(\bar{E_1})$, did these terms cancel out or something?
It is not clear in the steps presented in the book. A thorough explanation is much appreciated.