Question
Question: How do you find the derivative of \(y = \ln (\cos (x))\) ?...
How do you find the derivative of y=ln(cos(x)) ?
Solution
In the given question there is a function inside another function. So, to find the derivative of a given function we need to make use of chain rule. Chin rule is nothing but first finding the derivative of the outer function and then the inner function.
Complete step-by-step answer:
In the given question there is a function inside another function. So, to find the derivative of a given function we need to make use of chain rule. Chin rule is nothing but first finding the derivative of the outer function and then the inner function.
The chain rule for differentiating the function inside function is given by:
dxdf[g(x)]=f′[g(x)].g′(x) here f[g(x)] is nothing but the given function y.
By looking at the above chain rule equation we can relate the given function as f[g(x)]=ln(cosx) and g(x)=cosx .
Now first we need to differentiate the function that is f[g(x)]=ln(cosx) and then then inner function g(x)=cosx .
(the derivative of lnx=x1 , we make use of this while differentiating the outer function)
Therefore, on substituting the given function in the above chain rule formula, we get
dxdf[g(x)]=dxdln(cosx)
On differentiating the outer function, we get
⇒dxdf[g(x)]=cosx1.dxdcosx
Now, we need to differentiate the inner function, that is g(x)=cosx
(we know that the differentiation of cosx is −sinx)
⇒dxdf[g(x)]=cosx1.−sinx
We can also write the above expression as
⇒dxdf[g(x)]=−cosxsinx
The expression can be simplified further, so we get
⇒dxdf[g(x)]=−tanx
Therefore the derivative of y=ln(cos(x)) is −tanx .
Note: Chain rule has to be remembered if we have a function inside another function. The given problem can be solved in a shorter way just by differentiating the inner function and finally writing this differentiated inner function divided by the original inner function we get the required answer.