The function is .
Apply logarithm product rule: .
Apply logarithm power rule: .
Apply derivative on each side with respect to .
.