The equation is
.

Apply log on each side.
\
Apply power rule of logarithms:
.
Apply derivative on each side with respect to
.

Apply logarithm differentiation formula
.

Apply formula:
.
Apply product rule of derivatives:
.


Substitute
.
.
.