Skip to content
Exercise 5.5 · Q11

Q.Differentiate the function (xcos⁡x)x+(xsin⁡x)1x(x\cos x)^x + (x\sin x)^{\frac{1}{x}} with respect to xx.

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★est
39% · 110/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 separately on each term because the variable appears in both the base and the exponent. The derivative is

(xcos⁡x)x[log⁡(xcos⁡x)+x⋅cos⁡x−xsin⁡xxcos⁡x]+(xsin⁡x)1/x[−1x2log⁡(xsin⁡x)+1x⋅sin⁡x+xcos⁡xxsin⁡x].(x\cos x)^x\left[\log(x\cos x) + x\cdot\frac{\cos x - x\sin x}{x\cos x}\right] + (x\sin x)^{1/x}\left[-\frac{1}{x^2}\log(x\sin x) + \frac{1}{x}\cdot\frac{\sin x + x\cos x}{x\sin x}\right].

When a function has the variable in both the base and the exponent — like u(x)v(x)u(x)^{v(x)} — the standard power rule or exponential rule alone won't work. The trick is to take natural logs first, which brings the exponent down as a multiplier, then differentiate implicitly. That's the heart of logarithmic differentiation.

Here we have a sum of two such terms:

y=(xcos⁡x)x+(xsin⁡x)1/x.y = (x\cos x)^x + (x\sin x)^{1/x}.

Let’s call them y1y_1 and y2y_2:

y1=(xcos⁡x)x,y2=(xsin⁡x)1/x.y_1 = (x\cos x)^x, \quad y_2 = (x\sin x)^{1/x}.

Then y′=y1′+y2′y' = y_1' + y_2'. We'll handle each separately.


1. Differentiate y1=(xcos⁡x)xy_1 = (x\cos x)^x

Take natural log of both sides:

log⁡y1=log⁡((xcos⁡x)x)=xlog⁡(xcos⁡x).\log y_1 = \log\left((x\cos x)^x\right) = x \log(x\cos x).

Now differentiate both sides with respect to xx. On the left, by the chain rule:

1y1⋅y1′=ddx[xlog⁡(xcos⁡x)].\frac{1}{y_1} \cdot y_1' = \frac{d}{dx}\big[x \log(x\cos x)\big].

On the right, use the product rule:

ddx[xlog⁡(xcos⁡x)]=1⋅log⁡(xcos⁡x)+x⋅ddx[log⁡(xcos⁡x)].\frac{d}{dx}\big[x \log(x\cos x)\big] = 1 \cdot \log(x\cos x) + x \cdot \frac{d}{dx}\big[\log(x\cos x)\big].

Now differentiate log⁡(xcos⁡x)\log(x\cos x). Let u=xcos⁡xu = x\cos x. Then

ddxlog⁡u=1u⋅u′=1xcos⁡x⋅ddx(xcos⁡x).\frac{d}{dx}\log u = \frac{1}{u} \cdot u' = \frac{1}{x\cos x} \cdot \frac{d}{dx}(x\cos x).

Differentiate xcos⁡xx\cos x using the product rule:

ddx(xcos⁡x)=1⋅cos⁡x+x⋅(−sin⁡x)=cos⁡x−xsin⁡x.\frac{d}{dx}(x\cos x) = 1\cdot\cos x + x\cdot(-\sin x) = \cos x - x\sin x.

So

ddxlog⁡(xcos⁡x)=cos⁡x−xsin⁡xxcos⁡x.\frac{d}{dx}\log(x\cos x) = \frac{\cos x - x\sin x}{x\cos x}.

Putting it back:

ddx[xlog⁡(xcos⁡x)]=log⁡(xcos⁡x)+x⋅cos⁡x−xsin⁡xxcos⁡x.\frac{d}{dx}\big[x \log(x\cos x)\big] = \log(x\cos x) + x \cdot \frac{\cos x - x\sin x}{x\cos x}.

Thus

1y1y1′=log⁡(xcos⁡x)+cos⁡x−xsin⁡xcos⁡x.\frac{1}{y_1} y_1' = \log(x\cos x) + \frac{\cos x - x\sin x}{\cos x}.

Multiply through by y1y_1:

y1′=(xcos⁡x)x[log⁡(xcos⁡x)+cos⁡x−xsin⁡xcos⁡x].y_1' = (x\cos x)^x \left[ \log(x\cos x) + \frac{\cos x - x\sin x}{\cos x} \right].

Tip

Notice that cos⁡x−xsin⁡xcos⁡x=1−xtan⁡x\frac{\cos x - x\sin x}{\cos x} = 1 - x\tan x, but leaving it as a fraction is often cleaner for exam marking.


2. Differentiate y2=(xsin⁡x)1/xy_2 = (x\sin x)^{1/x}

Again, take logs:

log⁡y2=1xlog⁡(xsin⁡x).\log y_2 = \frac{1}{x} \log(x\sin x).

Differentiate:

1y2y2′=ddx[1xlog⁡(xsin⁡x)].\frac{1}{y_2} y_2' = \frac{d}{dx}\left[\frac{1}{x} \log(x\sin x)\right].

Use the product rule (or quotient rule — here it's a product of x−1x^{-1} and log⁡(xsin⁡x)\log(x\sin x)):

ddx[x−1log⁡(xsin⁡x)]=−1x2log⁡(xsin⁡x)+1x⋅ddx[log⁡(xsin⁡x)].\frac{d}{dx}\left[x^{-1} \log(x\sin x)\right] = -\frac{1}{x^2} \log(x\sin x) + \frac{1}{x} \cdot \frac{d}{dx}\big[\log(x\sin x)\big].

Now differentiate log⁡(xsin⁡x)\log(x\sin x). Let v=xsin⁡xv = x\sin x. Then

ddxlog⁡v=1v⋅v′=1xsin⁡x⋅ddx(xsin⁡x).\frac{d}{dx}\log v = \frac{1}{v} \cdot v' = \frac{1}{x\sin x} \cdot \frac{d}{dx}(x\sin x).

Differentiate xsin⁡xx\sin x:

ddx(xsin⁡x)=1⋅sin⁡x+x⋅cos⁡x=sin⁡x+xcos⁡x.\frac{d}{dx}(x\sin x) = 1\cdot\sin x + x\cdot\cos x = \sin x + x\cos x.

So …

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.