Use logarithmic differentiation to find the derivative.