Solution:
Key idea: The function sin[sin(log3x)] has four layers: sine, sine, logarithm and 3x. The chain rule multiplies the derivatives of all the layers, working from the outside in.
Step 1 — Name the layers.
We let y=sinu, where u=sinv, v=logw and w=3x, 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=cosv
dwdv=w1
dxdw=3
Step 3 — Multiply the four derivatives (chain rule).
We multiply the results and put back u=sin(log3x), v=log3x and w=3x. The factors 3x1 and 3 combine to x1.
dxdy=cos[sin(log3x)]⋅cos(log3x)⋅3x1⋅3=xcos[sin(log3x)]cos(log3x)
Watch out: The derivative of log3x is x1, not x3, because log3x=log3+logx.
Therefore, dxdy=xcos[sin(log3x)]cos(log3x).