Solution:
Key idea: Here log means the natural logarithm (base e). By the chain rule, dxdlogu=u1⋅dxdu, and dxdcosu=−sinu⋅dxdu, and for a product we use the product rule (uv)′=u′v+uv′.
Step 1 — Part (i): differentiate logcosx.
The outer function is logu and the inner function is u=cosx, whose derivative is −sinx.
dxdlogcosx=cosx1⋅(−sinx)=−cosxsinx=−tanx
Step 2 — Part (ii): differentiate logsinx.
Now the inner function is u=sinx, whose derivative is cosx.
dxdlogsinx=sinx1⋅cosx=cotx
Step 3 — Part (iii): differentiate cos(logx).
Here the outer function is cosu and the inner function is u=logx, whose derivative is x1.
dxdcos(logx)=−sin(logx)⋅x1=−xsin(logx)
Step 4 — Part (iv): differentiate logcosx1.
We write the function as the power (logcosx)−1 and use the power rule with the chain rule. The derivative of the inside, logcosx, is −tanx from part (i).
dxd(logcosx)−1=−(logcosx)−2⋅dxdlogcosx=−(logcosx)−2⋅(−tanx)=(logcosx)2tanx
Step 5 — Part (v): differentiate xlogx−x.
We use the product rule on xlogx (with u=x and v=logx), and then we subtract the derivative of x, because the second term is −x.
dxd(xlogx−x)=(1⋅logx+x⋅x1)−1=logx+1−1=logx
Therefore, the derivatives are (i) −tanx, (ii) cotx, (iii) −xsin(logx), (iv) (logcosx)2tanx and (v) logx.