To differentiate this, we should use logarithmic differentiation. First, we rewrite the function:
And then use implicit differentiation
(Remember that the derivative of tan ( x ) {\displaystyle \tan(x)} is sec 2 ( x ) {\displaystyle \sec ^{2}(x)} ). Now, simply solve for ƒ'(x) to obtain the answer:
(Note that cos ( x ) sec 2 ( x ) = sec ( x ) {\displaystyle \cos(x)\sec ^{2}(x)=\sec(x)} .)