Solution:
Key idea: The function sin(logcosx) is a chain of three functions: sine of a logarithm of a cosine. The chain rule multiplies the derivatives of the layers from the outside in: dxdsinu=cosu⋅dxdu and dxdlogv=v1⋅dxdv.
Step 1 — Name the layers.
We let y=sinu, where u=logv and v=cosx, so that each layer is a standard function.
Step 2 — Differentiate each layer.
We write down the derivative of each layer with respect to the variable just inside it.
dudy=cosu
dvdu=v1
dxdv=−sinx
Step 3 — Multiply the three derivatives (chain rule).
We multiply the three results and put back u=logcosx and v=cosx. Then cosxsinx is written as tanx.
dxdy=cos(logcosx)⋅cosx1⋅(−sinx)=−cosxsinxcos(logcosx)=−tanxcos(logcosx)
Therefore, dxdy=−tanxcos(logcosx).