Skip to content
Exercise 5.5 · Q3

Q.Find dydx\frac{dy}{dx} in the following: (log⁡x)cos⁡x(\log x)^{\cos x}

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★est
36% · 102/281 Questions
✓ Free question

For a function of the form y=[f(x)]g(x)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=(log⁡x)cos⁡xy = (\log x)^{\cos x}, the derivative is dydx=(log⁡x)cos⁡x(cos⁡xxlog⁡x−sin⁡x⋅log⁡(log⁡x))\frac{dy}{dx} = (\log x)^{\cos x} \left( \frac{\cos x}{x \log x} - \sin x \cdot \log(\log x) \right).

The problem asks for dydx\frac{dy}{dx} when y=(log⁡x)cos⁡xy = (\log x)^{\cos x}. At first glance, this looks like a power function, but the exponent is not a constant — it's cos⁡x\cos x, which varies with xx. Similarly, the base log⁡x\log x is not a constant either. So neither the standard power rule (ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1}) nor the exponential rule (ddxax=axln⁡a\frac{d}{dx} a^x = a^x \ln a) 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.

  1. Set up the equation and take logs. Start with y=(log⁡x)cos⁡xy = (\log x)^{\cos x}. Take the natural logarithm of both sides:

ln⁡y=ln⁡((log⁡x)cos⁡x)\ln y = \ln \left( (\log x)^{\cos x} \right)

Using the power property of logs, ln⁡(ab)=bln⁡a\ln(a^b) = b \ln a, we get:

ln⁡y=cos⁡x⋅ln⁡(log⁡x)\ln y = \cos x \cdot \ln(\log x)

  1. Differentiate both sides with respect to xx. On the left side, ddx(ln⁡y)=1y⋅dydx\frac{d}{dx} (\ln y) = \frac{1}{y} \cdot \frac{dy}{dx} (by the chain rule, since yy is a function of xx). On the right side, we have a product: cos⁡x\cos x times ln⁡(log⁡x)\ln(\log x). So we use the product rule:

ddx[cos⁡x⋅ln⁡(log⁡x)]=(−sin⁡x)⋅ln⁡(log⁡x)+cos⁡x⋅ddx[ln⁡(log⁡x)]\frac{d}{dx} \left[ \cos x \cdot \ln(\log x) \right] = (-\sin x) \cdot \ln(\log x) + \cos x \cdot \frac{d}{dx} \left[ \ln(\log x) \right]

  1. Differentiate ln⁡(log⁡x)\ln(\log x). Let u=log⁡xu = \log x (here log⁡\log means base ee, i.e., natural log, as is standard in calculus). Then ddx(ln⁡u)=1u⋅dudx=1log⁡x⋅1x\frac{d}{dx} (\ln u) = \frac{1}{u} \cdot \frac{du}{dx} = \frac{1}{\log x} \cdot \frac{1}{x}. So:

ddx[ln⁡(log⁡x)]=1xlog⁡x\frac{d}{dx} \left[ \ln(\log x) \right] = \frac{1}{x \log x}

  1. Put it together. The derivative of the right side becomes:

−sin⁡x⋅ln⁡(log⁡x)+cos⁡x⋅1xlog⁡x-\sin x \cdot \ln(\log x) + \cos x \cdot \frac{1}{x \log x}

So we have:

1y⋅dydx=−sin⁡x⋅ln⁡(log⁡x)+cos⁡xxlog⁡x\frac{1}{y} \cdot \frac{dy}{dx} = -\sin x \cdot \ln(\log x) + \frac{\cos x}{x \log x}

  1. Solve for dydx\frac{dy}{dx}. Multiply both sides by yy:

dydx=y(cos⁡xxlog⁡x−sin⁡x⋅ln⁡(log⁡x))\frac{dy}{dx} = y \left( \frac{\cos x}{x \log x} - \sin x \cdot \ln(\log x) \right)

Now substitute back y=(log⁡x)cos⁡xy = (\log x)^{\cos x}:

dydx=(log⁡x)cos⁡x(cos⁡xxlog⁡x−sin⁡x⋅ln⁡(log⁡x))\frac{dy}{dx} = (\log x)^{\cos x} \left( \frac{\cos x}{x \log x} - \sin x \cdot \ln(\log x) \right)

Watch out

A common mistake is to forget that log⁡x\log x here means natural log (base ee). In Indian textbooks, log⁡x\log x without a base usually means log⁡ex\log_e x. If the problem used log⁡10x\log_{10} x, the derivative of ln⁡(log⁡10x)\ln(\log_{10} x) would be different — you'd need to convert base. Always check the convention.

Tip

Notice that the final expression still contains the original function (log⁡x)cos⁡x(\log x)^{\cos x} as a factor. This always happens with logarithmic differentiation — the derivative of f(x)g(x)f(x)^{g(x)} is f(x)g(x)f(x)^{g(x)} times something. So you never need to "simplify" the original function away.

✓Final answer

The derivative is dydx=(log⁡x)cos⁡x(cos⁡xxlog⁡x−sin⁡x⋅log⁡(log⁡x))\frac{dy}{dx} = (\log x)^{\cos x} \left( \frac{\cos x}{x \log x} - \sin x \cdot \log(\log x) \right).

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.