Skip to content
NCERT Exemplar · Q34

Q.Differentiate w.r.t. xx: (sin⁡x)cos⁡x(\sin x)^{\cos x}.

Punjab PsebShort· 3mImportance★★★★★
76% · 214/281 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

We use logarithmic differentiation to handle a variable exponent. Taking log⁡\log of both sides converts the exponent into a product, then implicit differentiation gives the derivative. The final result is dydx=(sin⁡x)cos⁡x(cos⁡2xsin⁡x−sin⁡xlog⁡(sin⁡x))\frac{dy}{dx} = (\sin x)^{\cos x} \left( \frac{\cos^2 x}{\sin x} - \sin x \log(\sin x) \right).

When you see a function where both the base and the exponent are functions of xx — like (sin⁡x)cos⁡x(\sin x)^{\cos x} — the standard power rule or exponential rule alone won't work. The power rule ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1} assumes a constant exponent. The exponential rule ddxax=axlog⁡a\frac{d}{dx} a^x = a^x \log a assumes a constant base. Here, both are moving.

The trick is to take the natural logarithm first. This brings the exponent down as a product, turning the problem into something we can differentiate using the product rule and chain rule. Then we solve for dydx\frac{dy}{dx} by multiplying through by the original function.

Let’s do it step by step.


  1. Set up the function and take log⁡\log of both sides

    Let y=(sin⁡x)cos⁡xy = (\sin x)^{\cos x}.

    Taking the natural logarithm:

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

Using the logarithm power rule: log⁡(ab)=blog⁡a\log(a^b) = b \log a, we get:

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

  1. Differentiate implicitly with respect to xx

    On the left side, ddx(log⁡y)=1y⋅dydx\frac{d}{dx} (\log y) = \frac{1}{y} \cdot \frac{dy}{dx} (chain rule).

    On the right side, we have a product: cos⁡x\cos x times log⁡(sin⁡x)\log(\sin x). Use the product rule:

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

The derivative of log⁡(sin⁡x)\log(\sin x) is 1sin⁡x⋅cos⁡x=cot⁡x\frac{1}{\sin x} \cdot \cos x = \cot x, but I’ll keep it as cos⁡xsin⁡x\frac{\cos x}{\sin x} for clarity.

So the right side becomes:

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

Simplify the second term: cos⁡x⋅cos⁡xsin⁡x=cos⁡2xsin⁡x\cos x \cdot \frac{\cos x}{\sin x} = \frac{\cos^2 x}{\sin x}.

Therefore:

1ydydx=cos⁡2xsin⁡x−sin⁡xlog⁡(sin⁡x)\frac{1}{y} \frac{dy}{dx} = \frac{\cos^2 x}{\sin x} - \sin x \log(\sin x)

  1. Solve for dydx\frac{dy}{dx}

    Multiply both sides by yy: …

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.