Question
Question: What is the derivative of \({{\left( \cos x \right)}^{\sin x}}\)?...
What is the derivative of (cosx)sinx?
Solution
Assume the given function as y=f(x). Take log to the base e both the sides and use the property of logarithm given as lnam=mlna to simplify the R.H.S. Now, differentiate both the sides of the assumed function y and use the chain rule of derivative to find the derivative of L.H.S. Use the formulas dyd(lny)=y1, dxd(sinx)=cosx and dxd(cosx)=−sinx for the simplification. For the derivative of R.H.S use the product rule of differentiation given as dxd(u×v)=vdxdu×udxdv where u and v are functions of x. Finally, substitute back the assumed value of y to get the value of dxdy.
Complete step by step answer:
Here we have been provided with the function (cosx)sinx and we are asked to differentiate it. Let us assume this function as y so we have,
⇒y=(cosx)sinx
Now, we need to find the value of dxdy. Taking natural log, i.e. log to the base e, on both the sides we get,
⇒lny=ln((cosx)sinx)
Using the property of log given as lnam=mlna we get,
⇒lny=sinxln(cosx)
Differentiating both the sides with respect to x we get,
⇒dxdlny=dxd(sinx×ln(cosx))
Using the chain rule of derivative in the L.H.S where we will differentiate lny with respect to y and then its product will be taken with the derivative of y with respect to x, so we get,
⇒dydlny×dxdy=dxd(sinx×ln(cosx))
Using the formula dyd(lny)=y1 we get,
⇒y1×dxdy=dxd(sinx×ln(cosx))
Using the product rule of derivative given as dxd(u×v)=vdxdu×udxdv assuming u=sinx and v=ln(cosx) in the R.H.S we get,
⇒y1×dxdy=sinx×dxd(ln(cosx))+ln(cosx)×dxd(sinx)
Using the formulas dxd(sinx)=cosx and chain rule of derivative for the differentiation of ln(cosx) we get,
⇒y1×dxdy=sinx×d(cosx)d(ln(cosx))×dxd(cosx)+ln(cosx)×cosx
Using the formula dxd(cosx)=−sinx we get,
⇒y1×dxdy=sinx×(cosx)1×(−sinx)+ln(cosx)×cosx⇒dxdy=y1[cosxln(cosx)−cosxsin2x]
Substituting back the value of y we get,
∴dxdy=(cosx)sinx1[cosxln(cosx)−cosxsin2x]
Hence, the above relation is our answer.
Note: You can also remember the direct formula for the derivative of the function of the form uv where u and v both are variables and functions of x. What we have to do is we will consider two parts of the derivative. In the first part we will assume u as constant and v as derivative and differentiate using the formula dxd(uv)=uvlogu(dxdv). In the second part we will consider v as constant and u as variable and apply the formula dxd(uv)=vuv−1(dxdu) for the derivative. Finally, we will take the sum of these two expressions to get the answer.