The function is .
Take logarithm of each side.
Rewrite the equation.
Power property of logarithms : .
Apply derivative on each side with respect to .
Product rule of derivative: .
Substitute in above equation.