So basically the equation is basically a derivation of Planck's radiation law and I can't somehow find any resources as to how he derived it by adding a derivative inside. Planck says that each mode of frequency $\omega_n$ can be excited by $j$ times which gives the energy of the form $jE_n = j(\hbar\omega_n)$
This is equation 1.5:
$$\langle E_n \rangle = \frac{\sum_{j=0}^\infty (jE_n)e^{-jE_n\beta}}{\sum_{j=0}^\infty e^{-jE_n\beta}} = \frac{-\frac{d}{d\beta}\frac{1}{1-e^{-\hbar\omega_n\beta}}}{\frac{1}{1-e^{-\hbar\omega_n\beta}}} = \frac{\hbar\omega_n}{e^{\hbar\omega_n\beta}-1}\tag{1.5}$$
Where $\beta = \frac{1}{k_BT}$.
In short, I just don't get where the $-\frac{d}{d\beta}$ comes from. I also don't get how the summations disappear. Hope to get answers before I continue this book.