Question
Question: Find the derivative of \[\cos \left( \log x+{{e}^{x}} \right)\]....
Find the derivative of cos(logx+ex).
Solution
Hint:For the above question we have been given a composite function to find its derivative and we know that to find the derivative of a composite function we will have to use the chain rule of derivative which states that the derivative of a composite function,
F(g(x)) is F′(g(x))×g′(x)
Complete step-by-step answer:
We have been asked to find the derivative of the function, cos(logx+ex).
Since it is a composite function, so we will use the chain rule of derivative to find its derivatives and the chain rule states that the derivative of a function F(g(x)) is equal to F′(g(x))×g′(x).
So the differentiation of cos(logx+ex) is shown as follows by applying the chain rule:
dxd[cos(logx+ex)]=−sin(log+ex)×dxd(logx+ex)
Since we know that the derivative of cos x is –sin x.
⇒−sin(logx+ex)×[dxd(logx)+dxd(ex)]
As we know the derivative of log x is x1 and the derivative of ex is ex, we can write the above function as follows.
⇒dxd[cos(logx+ex)]=−sin(logx+ex)×(x1+ex)
Therefore, the required derivative of the given function is equal to −sin(logx+ex)×(x1+ex).
Note: Be careful while applying the chain rule to the composite function and also take care of the sign. Sometimes we take the derivative of cos x as sin x by mistake and we just forget the negative sign before sin x, so be careful at that time otherwise we will get incorrect answers.