Question
Question: Differentiate \[{(\cos x)^{\cos x}}\] with respect to x....
Differentiate (cosx)cosx with respect to x.
Solution
We differentiate the term in the question by assuming the whole term as a variable and then taking log on both sides of the equation. Using the property of log we open RHS and then differentiate both sides.
*If m, n are two integers then, log(m)n=n(logm)
Complete step-by-step answer:
Let us assume y=(cosx)cosx
Then taking log on both sides of the equation we can write.
log(y)=log[(cosx)cosx] … (1)
Since we know the property of log, if m, n are two integers then, log(m)n=n(logm)
Here m=cosx,n=cosx
Therefore, we can write log[(cosx)cosx]=cosx[log(cosx)]
Substituting the value in equation (1)
logy=cosx[log(cosx)]
Now we differentiate on both sides of the equation with respect to x.
⇒dxd(logy)=dxd(cosx[log(cosx)])
We will solve the RHS of the equation first.
We apply the product rule of differentiation on RHS of the equation.
Product rule says that dxd(mn)=mdxdn+ndxdm.
Substitute the values of m=cosx,n=log(cosx)
… (2)
Now we have to apply chain rule for differentiation of the term [log(cosx)].
According to chain rule dxd[f(g(x))]=f′(g(x)).g′(x)where f′denotes differentiation of function f with respect to x and g′denotes differentiation of function g with respect to x.
Here substituting the values of f(x)=log(x),g(x)=cosx
Substitute the value in equation (2)
⇒dxd(cosx[log(cosx)])=cosx×cosx1×(−sinx)+[log(cosx)](−sinx)
Cancel out the common terms from numerator and denominator.
⇒dxd(cosx[log(cosx)])=−sinx−sinx[log(cosx)]
Now we can take −sinx common and write the terms in RHS.
⇒dxd(cosx[log(cosx)])=−sinx1+log(cosx)
Now solving LHS of the equation we get
⇒dxd(logy)=y1×dxdy {Applying chain rule}
Now equating both LHS and RHS of the equation we get
⇒y1×dxdy=−sinx1+log(cosx)
Cross multiplying the value of y to RHS of the equation.
Thus, differentiation of (cosx)cosx is −sinx1+log(cosx)×(cosx)cosx.
Note: Students are likely to make mistake in solving this question as they assume the power as normal power and try to differentiate directly through the way dxd(xn)=nxn−1 which is wrong.