Differentiate with respect to , taking to be the natural logarithm.
Identify the composition. The function is a logarithm wrapped around a trigonometric function, so it is with the inner function . That calls for the chain rule rather than any log identity.
Write down the chain rule. For ,
Differentiate the inner function. With we get .
Substitute and simplify.
Note the domain and sanity-check. The original function needs , so the derivative is stated on those intervals. At the derivative is , which matches a numerical difference quotient of at .
Need to solve a different problem like this? Open the solver →