Question
Question: What is the derivative of \(\log \left( \cos x \right)\)?...
What is the derivative of log(cosx)?
Solution
We solve this problem by using the chain rule of differentiation and some standard formulas of differentiation.
(i) The chain rule of differentiation is given as
dxd(f(g(x)))=f′(g(x))×g′(x)
(ii) The derivative of cosine function is given as,
dxd(cosx)=−sinx
(iii) The derivative of logarithm function is given as,
dxd(logx)=x1
By using the above three formulas we can find the required value.
Complete step by step solution:
Let us assume the given function as,
⇒y=log(cosx)
Now, let us assume two functions f(x),g(x) as,
⇒f(x)=logx⇒g(x)=cosx
Here, we can reframe the given equation as,
⇒y=f(g(x))
Now, let us differentiate both sides with respect to ′x′ then we get,
⇒dxdy=dxd(f(g(x)))
We know that the chain rule of differentiation is given as
dxd(f(g(x)))=f′(g(x))×g′(x)
By using the chain rule to above reframed equation then we get,
⇒dxdy=f′(g(x))×g′(x)............equation(i)
Now, let us take the first function f(x) and by differentiating it with respect to ′x′ then we get,
⇒f′(x)=dxd(logx)
We know that the derivative of logarithm function is given as,
dxd(logx)=x1
By using this rule in above differentiation then we get,
⇒f′(x)=x1
Now, by replacing ′x′ by (cosx) in above equation then we get,
⇒f′(g(x))=(cosx)1⇒f′(g(x))=(cosx)1
Now, let us take the second function that is g(x) and by differentiating it with respect to ′x′ then we get,
⇒g′(x)=dxd(cosx)
We know that the derivative of cosine function is given as,
dxd(cosx)=−sinx
By using the above formula in the g′(x) then we get,
⇒g′(x)=−sinx
Now, let us take equation (i) and substitute the required values then we get,
⇒dxdy=[(cosx)1]×[−sinx]⇒dxdy=−tanx
Therefore, the derivative of given equation can be written as,
∴dxdy=−tanx
Note: The common mistake that can be done in this question of taking the formula of the differentiation. The chain rule is applied when the given equation includes one function inside the second equation and it is given as,
dxd(f(g(x)))=f′(g(x))×g′(x)
But students may do mistake without taking the differentiation of second function and take the formula as,
dxd(f(g(x)))=f′(g(x))
This gives the wrong answer. So, we need to take care of formulas to get the required answer correctly.
Also the derivative of logarithm function should be taken as,
dxd(logx)=x1