Key idea: Bring the square root out of the logarithm first, using logw=21logw, and then use dxdlogu=u1⋅dxdu with the inner function tanx, whose derivative is sec2x.
Step 1 — Rewrite y.
We take tanx>0, so that the logarithm is defined, and write the square root as the power 21.
y=21logtanx
Step 2 — Differentiate by the chain rule.
The inner function is tanx with derivative sec2x.
dxdy=21⋅tanxsec2x
Step 3 — Write the fraction in sines and cosines.
We use sec2x=cos2x1 and tanx=cosxsinx, and one factor cosx cancels.
dxdy=21⋅cos2x1⋅sinxcosx=2sinxcosx1
Step 4 — Use the double-angle formula.
Since 2sinxcosx is sin2x, the answer is a cosecant.