Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2020-21 · Part B: Section IV · 3 marks

Q30: dydx\frac{dy}{dx} for y=exsin⁡2x+(sin⁡x)xy = e^{x\sin^2 x} + (\sin x)^x

The question

If y=exsin⁡2x+(sin⁡x)xy = e^{x\sin^2 x} + (\sin x)^x⁠, find dydx\dfrac{dy}{dx}⁠.

Exam answer

Let u=exsin⁡2xu = e^{x\sin^2 x} and v=(sin⁡x)xv = (\sin x)^x⁠, so that y=u+vy = u + v⁠.

⇒dydx=dudx+dvdx…(i)\Rightarrow \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \quad\ldots(\text{i})
Why?

(sin⁡x)x(\sin x)^x has xx in both the base and the power, so no single rule differentiates it; taking logs does. But logs do not split a sum:

log⁡(u+v)≠log⁡u+log⁡v\log(u + v) \ne \log u + \log v

So we name the two terms uu and vv⁠, and differentiate each one separately.

Now u=exsin⁡2xu = e^{x\sin^2 x}⁠. Differentiating both sides w.r.t. xx⁠,

dudx=exsin⁡2xddx(xsin⁡2x)=exsin⁡2x[x(2sin⁡xcos⁡x)+sin⁡2x]=exsin⁡2x[xsin⁡2x+sin⁡2x]…(ii)\begin{aligned} \frac{du}{dx} &= e^{x\sin^2 x}\frac{d}{dx}(x\sin^2 x) \\ &= e^{x\sin^2 x}[x(2\sin x\cos x) \\ &\qquad + \sin^2 x] \\ &= e^{x\sin^2 x}[x\sin 2x \\ &\qquad + \sin^2 x] \quad\ldots(\text{ii}) \end{aligned}
Why?

Chain rule: ddxeg(x)=eg(x) g′(x)\frac{d}{dx}e^{g(x)} = e^{g(x)}\,g'(x)⁠, with g(x)=xsin⁡2xg(x) = x\sin^2 x⁠.

Product rule for gg⁠, using ddxsin⁡2x=2sin⁡xcos⁡x\frac{d}{dx}\sin^2 x = 2\sin x\cos x⁠:

Write g=pqg = pq with the two parts and their derivatives:

p=x,p′=1q=sin⁡2x,q′=2sin⁡xcos⁡x\begin{aligned} p &= x, & p' &= 1 \\ q &= \sin^2 x, & q' &= 2\sin x\cos x \end{aligned}

For q′q'⁠, sin⁡2x=(sin⁡x)2\sin^2 x = (\sin x)^2⁠: the outside is a square, the inside is sin⁡x\sin x⁠. So q′=2(sin⁡x)1⋅cos⁡xq' = 2(\sin x)^1 \cdot \cos x⁠.

Then g′=pq′+qp′g' = pq' + qp'⁠:

g′(x)=x(2sin⁡xcos⁡x)+sin⁡2x⋅1\begin{aligned} g'(x) &= x(2\sin x\cos x) \\ &\quad + \sin^2 x \cdot 1 \end{aligned}

Then 2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin 2x⁠.

Also v=(sin⁡x)xv = (\sin x)^x⁠, so

log⁡v=xlog⁡(sin⁡x)\log v = x\log(\sin x)
Why?

Take logs of both sides and use log⁡(ab)=blog⁡a\log(a^b) = b\log a⁠, which brings the power xx down. This needs sin⁡x>0\sin x > 0⁠, which is where (sin⁡x)x(\sin x)^x is defined.

Differentiating both sides w.r.t. xx⁠,

1vdvdx=x⋅cos⁡xsin⁡x+log⁡(sin⁡x)=xcot⁡x+log⁡(sin⁡x)\begin{aligned} \frac1v\frac{dv}{dx} &= x\cdot\frac{\cos x}{\sin x} + \log(\sin x) \\ &= x\cot x + \log(\sin x) \end{aligned}
Why?

Left side, by the chain rule: ddxlog⁡v=1vdvdx\frac{d}{dx}\log v = \frac1v\frac{dv}{dx}⁠.

Right side, by the product rule, with

ddxlog⁡(sin⁡x)=cos⁡xsin⁡x\frac{d}{dx}\log(\sin x) = \frac{\cos x}{\sin x}

and cos⁡xsin⁡x=cot⁡x\frac{\cos x}{\sin x} = \cot x⁠.

p=x,p′=1q=log⁡(sin⁡x),q′=1sin⁡x⋅cos⁡x\begin{aligned} p &= x, & p' &= 1 \\ q &= \log(\sin x), & q' &= \frac{1}{\sin x}\cdot\cos x \end{aligned} pq′+qp′=x⋅cos⁡xsin⁡x+log⁡(sin⁡x)⋅1\begin{aligned} pq' + qp' &= x \cdot \frac{\cos x}{\sin x} \\ &\quad + \log(\sin x) \cdot 1 \end{aligned}
dvdx=(sin⁡x)x[xcot⁡x+log⁡(sin⁡x)]…(iii)\begin{aligned} \frac{dv}{dx} &= (\sin x)^x[x\cot x \\ &\qquad + \log(\sin x)] \quad\ldots(\text{iii}) \end{aligned}
Why?

Multiply both sides by vv⁠, and put back v=(sin⁡x)xv = (\sin x)^x⁠. Watch out: the answer must not contain vv⁠.

dvdx=v [xcot⁡x+log⁡(sin⁡x)]=(sin⁡x)x[xcot⁡x+log⁡(sin⁡x)]\begin{aligned} \frac{dv}{dx} &= v\,[x\cot x + \log(\sin x)] \\ &= (\sin x)^x[x\cot x \\ &\qquad + \log(\sin x)] \end{aligned}

Substituting (ii) and (iii) in (i),

dydx=exsin⁡2x[xsin⁡2x+sin⁡2x]\dfrac{dy}{dx} = e^{x\sin^2 x}[x\sin 2x + \sin^2 x] +(sin⁡x)x[xcot⁡x+ (\sin x)^x[x\cot x +log⁡(sin⁡x)]+ \log(\sin x)]

Where this comes from

Chapter 5, Continuity and Differentiability: Logarithmic differentiation of a sum.

Question type: Logarithmic differentiation

How to spot it: click to see

Type 7. Logarithmic differentiation: xx in the power

Spot it: a power whose exponent contains xx⁠, like xxx^x⁠, xsin⁡xx^{\sin x} or (log⁡x)cos⁡x(\log x)^{\cos x}⁠, or a long product.

Here: xx is in the power of sin⁡x\sin x in (sin⁡x)x(\sin x)^x⁠: name u=exsin⁡2xu = e^{x\sin^2x} and v=(sin⁡x)xv = (\sin x)^x⁠. Do uu by the chain rule, and take log of vv to get xlog⁡(sin⁡x)x\log(\sin x)⁠.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →