TeX source:
\mathbf{D}(\ln (\sin (x)))=\frac{g^{\prime}(x)}{g(x)}=\frac{D(\sin (x))}{\sin (x)}=\frac{\cos (x)}{\sin (x)}=\cot (x)