For a function of the form y=[f(x)]g(x), we cannot use either the power rule or the exponential rule directly. The trick is to take the natural logarithm of both sides, use log properties to bring the exponent down, and then differentiate implicitly. For y=(logx)cosx, the derivative is dxdy=(logx)cosx(xlogxcosx−sinx⋅log(logx)).
The problem asks for dxdy when y=(logx)cosx. At first glance, this looks like a power function, but the exponent is not a constant — it's cosx, which varies with x. Similarly, the base logx is not a constant either. So neither the standard power rule (dxdxn=nxn−1) nor the exponential rule (dxdax=axlna) applies directly.
The standard technique for such "variable base, variable exponent" functions is logarithmic differentiation. The idea is simple: take the natural log of both sides, simplify using log properties, and then differentiate implicitly. This converts the messy exponent into a product, which we can handle with the product rule.
Let’s work through it step by step.
- Set up the equation and take logs.
Start with y=(logx)cosx.
Take the natural logarithm of both sides:
lny=ln((logx)cosx)
Using the power property of logs, ln(ab)=blna, we get:
lny=cosx⋅ln(logx)
- Differentiate both sides with respect to x.
On the left side, dxd(lny)=y1⋅dxdy (by the chain rule, since y is a function of x).
On the right side, we have a product: cosx times ln(logx). So we use the product rule:
dxd[cosx⋅ln(logx)]=(−sinx)⋅ln(logx)+cosx⋅dxd[ln(logx)]
- Differentiate ln(logx).
Let u=logx (here log means base e, i.e., natural log, as is standard in calculus). Then dxd(lnu)=u1⋅dxdu=logx1⋅x1.
So:
dxd[ln(logx)]=xlogx1
- Put it together.
The derivative of the right side becomes:
−sinx⋅ln(logx)+cosx⋅xlogx1
So we have:
y1⋅dxdy=−sinx⋅ln(logx)+xlogxcosx
- Solve for dxdy.
Multiply both sides by y:
dxdy=y(xlogxcosx−sinx⋅ln(logx))
Now substitute back y=(logx)cosx:
dxdy=(logx)cosx(xlogxcosx−sinx⋅ln(logx))
A common mistake is to forget that logx here means natural log (base e). In Indian textbooks, logx without a base usually means logex. If the problem used log10x, the derivative of ln(log10x) would be different — you'd need to convert base. Always check the convention.
Notice that the final expression still contains the original function (logx)cosx as a factor. This always happens with logarithmic differentiation — the derivative of f(x)g(x) is f(x)g(x) times something. So you never need to "simplify" the original function away.
✓Final answer
The derivative is dxdy=(logx)cosx(xlogxcosx−sinx⋅log(logx)).