Solution:
Key idea: We read cos(logx)2 as cos[(logx)2], the cosine of the angle (logx)2. The chain rule then needs three derivatives: dudcosu=−sinu, dvdv2=2v and dxdlogx=x1.
Step 1 — Name the layers.
We let y=cosu, where u=v2 and v=logx (with x>0).
Step 2 — Differentiate each layer.
We write down the derivative of each layer with respect to the variable just inside it.
dudy=−sinu
dvdu=2v
dxdv=x1
Step 3 — Multiply the derivatives (chain rule).
We multiply the three results and put back u=(logx)2 and v=logx.
dxdy=−sin(logx)2⋅2logx⋅x1=−x2logxsin(logx)2
Note: If the question meant [cos(logx)]2 instead, the chain rule would give −xsin(2logx) (using 2sinAcosA=sin2A).
Therefore, dxdy=−x2logxsin(logx)2.