Solveeit Logo

Question

Question: Find the derivative of \[\cos \left( \log x+{{e}^{x}} \right)\]....

Find the derivative of cos(logx+ex)\cos \left( \log x+{{e}^{x}} \right).

Explanation

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))F\left( g\left( x \right) \right) is F(g(x))×g(x)F'\left( g\left( x \right) \right)\times g'(x)

Complete step-by-step answer:
We have been asked to find the derivative of the function, cos(logx+ex)\cos \left( \log x+{{e}^{x}} \right).
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))F\left( g\left( x \right) \right) is equal to F(g(x))×g(x)F'\left( g\left( x \right) \right)\times g'(x).
So the differentiation of cos(logx+ex)\cos \left( \log x+{{e}^{x}} \right) is shown as follows by applying the chain rule:
ddx[cos(logx+ex)]=sin(log+ex)×ddx(logx+ex)\dfrac{d}{dx}\left[ \cos \left( \log x+{{e}^{x}} \right) \right]=-\sin \left( \log +{{e}^{x}} \right)\times \dfrac{d}{dx}\left( \log x+{{e}^{x}} \right)
Since we know that the derivative of cos x is –sin x.
sin(logx+ex)×[ddx(logx)+ddx(ex)]\Rightarrow -\sin \left( \log x+{{e}^{x}} \right)\times \left[ \dfrac{d}{dx}\left( \log x \right)+\dfrac{d}{dx}\left( {{e}^{x}} \right) \right]
As we know the derivative of log x is 1x\dfrac{1}{x} and the derivative of ex{{e}^{x}} is ex{{e}^{x}}, we can write the above function as follows.
ddx[cos(logx+ex)]=sin(logx+ex)×(1x+ex)\Rightarrow \dfrac{d}{dx}\left[ \cos \left( \log x+{{e}^{x}} \right) \right]=-\sin \left( \log x+{{e}^{x}} \right)\times \left( \dfrac{1}{x}+{{e}^{x}} \right)
Therefore, the required derivative of the given function is equal to sin(logx+ex)×(1x+ex)-\sin \left( \log x+{{e}^{x}} \right)\times \left( \dfrac{1}{x}+{{e}^{x}} \right).
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.