Skip to content
Exercise 5.5 · Q9

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

Yanam CbseNCERTSubjective· 3mImportance★★★★★est
Appeared in past exams:CBSE 2019· 4mexact
38% · 108/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 →

For a function that is a sum of two variable-exponent terms, we cannot use the standard power rule or exponential rule directly. Instead, we rewrite each term using the identity ab=eblog⁡aa^b = e^{b \log a}, then differentiate term-by-term using the product rule and chain rule. The final derivative is dydx=xsin⁡x(sin⁡xx+cos⁡xlog⁡x)+(sin⁡x)cos⁡x(cos⁡2xsin⁡x−sin⁡xlog⁡(sin⁡x))\frac{dy}{dx} = x^{\sin x} \left( \frac{\sin x}{x} + \cos x \log x \right) + (\sin x)^{\cos x} \left( \frac{\cos^2 x}{\sin x} - \sin x \log(\sin x) \right).


The problem asks for dydx\frac{dy}{dx} where y=xsin⁡x+(sin⁡x)cos⁡xy = x^{\sin x} + (\sin x)^{\cos x}. At first glance, this looks like a sum of two power functions, but the exponents are not constants — they are functions of xx. That means neither the standard power rule (ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1}) nor the exponential rule (ddxax=axlog⁡a\frac{d}{dx} a^x = a^x \log a) applies directly. Each term has the variable in both the base and the exponent.

The technique that handles this is logarithmic differentiation — or equivalently, rewriting each term as esomethinge^{\text{something}} and then differentiating. The idea is simple: for any positive base f(x)f(x) and any real exponent g(x)g(x), we have f(x)g(x)=eg(x)log⁡f(x)f(x)^{g(x)} = e^{g(x) \log f(x)}. This turns the problem into differentiating a composition of functions, which we can handle with the chain rule and product rule.

Let’s do it step by step.


  1. Rewrite the function Since both xx and sin⁡x\sin x are positive for the relevant domain (we assume x>0x>0 and sin⁡x>0\sin x > 0 for the expression to be real), we can write:

y=esin⁡x⋅log⁡x+ecos⁡x⋅log⁡(sin⁡x)y = e^{\sin x \cdot \log x} + e^{\cos x \cdot \log(\sin x)}

  1. Differentiate term by term

    Let u=esin⁡xlog⁡xu = e^{\sin x \log x} and v=ecos⁡xlog⁡(sin⁡x)v = e^{\cos x \log(\sin x)}, so y=u+vy = u + v and dydx=u′+v′\frac{dy}{dx} = u' + v'.

  2. Find u′u'

    For u=esin⁡xlog⁡xu = e^{\sin x \log x}, the derivative is:

u′=esin⁡xlog⁡x⋅ddx(sin⁡xlog⁡x)u' = e^{\sin x \log x} \cdot \frac{d}{dx} \left( \sin x \log x \right)

The factor esin⁡xlog⁡xe^{\sin x \log x} is just xsin⁡xx^{\sin x}, so:

u′=xsin⁡x⋅ddx(sin⁡xlog⁡x)u' = x^{\sin x} \cdot \frac{d}{dx} \left( \sin x \log x \right)

Now differentiate sin⁡xlog⁡x\sin x \log x using the product rule:

ddx(sin⁡xlog⁡x)=cos⁡x⋅log⁡x+sin⁡x⋅1x\frac{d}{dx} (\sin x \log x) = \cos x \cdot \log x + \sin x \cdot \frac{1}{x}

Therefore:

u′=xsin⁡x(cos⁡xlog⁡x+sin⁡xx)u' = x^{\sin x} \left( \cos x \log x + \frac{\sin x}{x} \right)

  1. Find v′v' For v=ecos⁡xlog⁡(sin⁡x)v = e^{\cos x \log(\sin x)}, we have:

v′=ecos⁡xlog⁡(sin⁡x)⋅ddx(cos⁡xlog⁡(sin⁡x))v' = e^{\cos x \log(\sin x)} \cdot \frac{d}{dx} \left( \cos x \log(\sin x) \right)

The factor ecos⁡xlog⁡(sin⁡x)e^{\cos x \log(\sin x)} is (sin⁡x)cos⁡x(\sin x)^{\cos x}, so:

v′=(sin⁡x)cos⁡x⋅ddx(cos⁡xlog⁡(sin⁡x))v' = (\sin x)^{\cos x} \cdot \frac{d}{dx} \left( \cos x \log(\sin x) \right)

Differentiate cos⁡xlog⁡(sin⁡x)\cos x \log(\sin x) using the product rule:

ddx(cos⁡xlog⁡(sin⁡x))=(−sin⁡x)⋅log⁡(sin⁡x)+cos⁡x⋅1sin⁡x⋅cos⁡x\frac{d}{dx} (\cos x \log(\sin x)) = (-\sin x) \cdot \log(\sin x) + \cos x \cdot \frac{1}{\sin x} \cdot \cos 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}.

So:

ddx(cos⁡xlog⁡(sin⁡x))=−sin⁡xlog⁡(sin⁡x)+cos⁡2xsin⁡x\frac{d}{dx} (\cos x \log(\sin x)) = -\sin x \log(\sin x) + \frac{\cos^2 x}{\sin x}

Therefore: …

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.