Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.5 · Q8: Differentiate (sin⁡x)x+sin⁡−1x(\sin x)^x+\sin^{-1}\sqrt x

Exercise 5.5Logarithmic differentiation · Section 5.5
The question

Differentiate the function w.r.t. xx⁠:

(sin⁡x)x+sin⁡−1x(\sin x)^x + \sin^{-1}\sqrt{x}
Exam answer

Let u=(sin⁡x)xu = (\sin x)^x and v=sin⁡−1xv = \sin^{-1}\sqrt x⁠, so y=u+vy = u + v⁠, where 0<x<10 < x < 1⁠.

Taking log on both sides, log⁡u=xlog⁡sin⁡x\log u = x\log\sin x⁠. Differentiating w.r.t. xx⁠,

1u⋅dudx=1⋅log⁡sin⁡x+x⋅cos⁡xsin⁡x=log⁡sin⁡x+xcot⁡x\begin{aligned} \frac1u\cdot\frac{du}{dx} &= 1\cdot\log\sin x + x\cdot\frac{\cos x}{\sin x} \\ &= \log\sin x + x\cot x \end{aligned} ∴ dudx=(sin⁡x)x×(xcot⁡x+log⁡sin⁡x)\begin{aligned} \therefore\ \frac{du}{dx} &= (\sin x)^x \\ &\quad\times(x\cot x + \log\sin x) \end{aligned}

By the chain rule,

dvdx=11−(x)2⋅ddx(x)=11−x⋅12x=12x−x2\begin{aligned} \frac{dv}{dx} &= \frac{1}{\sqrt{1 - (\sqrt x)^2}}\cdot\frac{d}{dx}(\sqrt x) \\ &= \frac{1}{\sqrt{1 - x}}\cdot\frac{1}{2\sqrt x} \\ &= \frac{1}{2\sqrt{x - x^2}} \end{aligned}

∴ dydx=(sin⁡x)x×(xcot⁡x+log⁡sin⁡x)+12x−x2\begin{aligned} \therefore\ \dfrac{dy}{dx} &= (\sin x)^x \\ &\quad\times(x\cot x + \log\sin x) \\ &\quad + \dfrac{1}{2\sqrt{x - x^2}} \end{aligned}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Two different kinds of term are added. (sin⁡x)x(\sin x)^x has a variable base and a variable exponent, so it needs logarithmic differentiation (base sin⁡x\sin x positive). sin⁡−1x\sin^{-1}\sqrt x is a composite: outer sin⁡−1\sin^{-1}⁠, inner x\sqrt x⁠, so it needs the chain rule. The domain is decided by sin⁡−1x\sin^{-1}\sqrt x⁠, which needs 0≤x≤10 \le \sqrt x \le 1⁠; with the base condition this leaves 0<x≤10 < x \le 1⁠, and the derivative formula holds for 0<x<10 < x < 1⁠.

Given, to find, and the plan
Given
y=u+wy = u + w⁠, with u=(sin⁡x)xu = (\sin x)^x and w=sin⁡−1xw = \sin^{-1}\sqrt x⁠.
To find
dydx\frac{dy}{dx}⁠, and where it holds.
Plan
(1) Domain of each term and of the sum. (2) u′u' by logarithmic differentiation. (3) w′w' by the chain rule. (4) The endpoint x=1x = 1⁠. (5) Add.

Basics you need

1Variable powers need a positive base

For p>0p > 0⁠: pq=eqlog⁡p>0p^q = e^{q\log p} > 0 and log⁡pq=qlog⁡p\log p^q = q\log p (Example 25, Section 5.4). Basics: exponentials and logarithms

2sin⁡−1\sin^{-1}⁠: domain, range, derivative

sin⁡−1t\sin^{-1}t is defined for −1≤t≤1-1 \le t \le 1 with principal range [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right] (Chapter 2), and ddtsin⁡−1t=11−t2\frac{d}{dt}\sin^{-1}t = \frac{1}{\sqrt{1-t^2}} for −1<t<1-1 < t < 1 (Section 5.3.3). Lesson: inverse trig derivatives

3Product rule, chain rule, ddxx\frac{d}{dx}\sqrt x

(fg)′=f′g+fg′(fg)' = f'g + fg' (Section 5.3); chain rule (Theorem 4); ddxx=12x\frac{d}{dx}\sqrt x = \frac{1}{2\sqrt x} for x>0x > 0 (power rule, n=12n = \frac12⁠). Basics: derivative rules

Solution

  1. Domain: 0<x≤10 < x \le 1

    • sin⁡−1x\sin^{-1}\sqrt x⁠: x\sqrt x needs x≥0x \ge 0⁠, and sin⁡−1\sin^{-1} needs x≤1\sqrt x \le 1⁠, i.e. x≤1x \le 1⁠. So 0≤x≤10 \le x \le 1⁠.
    • (sin⁡x)x(\sin x)^x⁠: the exponent varies, so the base must be positive, sin⁡x>0\sin x > 0⁠. On [0,1][0, 1] this holds for 0<x≤10 < x \le 1⁠, because 0<1<π0 < 1 < \pi and sin⁡x>0\sin x > 0 on (0,π)(0, \pi)⁠. At x=0x = 0 the term would be 000^0⁠, which is undefined.

    So yy is defined for 0<x≤10 < x \le 1⁠, and there u=(sin⁡x)x>0u = (\sin x)^x > 0⁠.

    The key gives the derivative with no domain; the square-root term x−x2\sqrt{x - x^2} in it already hints at 0<x<10 < x < 1⁠. Finding the domain first tells us which points the formula can possibly be about. (sin⁡1≈0.841\sin 1 \approx 0.841⁠, and 11 radian is about 57∘57^\circ⁠, well inside (0,π)(0, \pi)⁠.)
    Domain of sin⁡−1\sin^{-1} is [−1,1][-1, 1] (Chapter 2); sin⁡x>0\sin x > 0 for 0<x<π0 < x < \pi⁠. Basics: trigonometric identities
  2. u=(sin⁡x)xu = (\sin x)^x by logarithmic differentiation

    For 0<x≤10 < x \le 1⁠, log⁡u=xlog⁡sin⁡x\log u = x\log\sin x⁠. Product rule, with ddxlog⁡sin⁡x=cos⁡xsin⁡x=cot⁡x\frac{d}{dx}\log\sin x = \frac{\cos x}{\sin x} = \cot x (chain rule, inner sin⁡x>0\sin x > 0⁠):

    1u⋅dudx=1⋅log⁡sin⁡x+xcot⁡x.\begin{aligned} \frac1u\cdot\frac{du}{dx} &= 1\cdot\log\sin x + x\cot x. \end{aligned}

    So

    dudx=(sin⁡x)x (xcot⁡x+log⁡sin⁡x).\frac{du}{dx} = (\sin x)^x\,(x\cot x + \log\sin x).
    The exponent xx comes down as a factor; then the product rule handles x⋅log⁡sin⁡xx\cdot\log\sin x⁠. Multiplying by uu (positive) isolates dudx\frac{du}{dx}⁠. This part is fine at x=1x = 1 as well (as a one-sided derivative), since sin⁡1>0\sin 1 > 0⁠.
    log⁡pq=qlog⁡p\log p^q = q\log p⁠; product rule; ddxlog⁡g=g′g\frac{d}{dx}\log g = \frac{g'}{g} (Theorems 4 and 5). Lesson: logarithmic differentiation
  3. w=sin⁡−1xw = \sin^{-1}\sqrt x by the chain rule

    Outer function sin⁡−1t\sin^{-1}t⁠, inner t=xt = \sqrt x⁠. For 0<x<10 < x < 1 we have 0<t<10 < t < 1⁠, so both derivatives exist:

    dwdx=11−t2⋅dtdx=11−x⋅12x=12x−x2.\begin{aligned} \frac{dw}{dx} &= \frac{1}{\sqrt{1 - t^2}}\cdot\frac{dt}{dx} \\ &= \frac{1}{\sqrt{1 - x}}\cdot\frac{1}{2\sqrt x} \\ &= \frac{1}{2\sqrt{x - x^2}}. \end{aligned}
    t2=(x)2=xt^2 = (\sqrt x)^2 = x⁠, so 1−t2=1−x\sqrt{1 - t^2} = \sqrt{1 - x}⁠. Then 1−x x=x(1−x)=x−x2\sqrt{1 - x}\,\sqrt x = \sqrt{x(1 - x)} = \sqrt{x - x^2}⁠, allowed because both numbers under the roots are positive. The formula for ddtsin⁡−1t\frac{d}{dt}\sin^{-1}t needs −1<t<1-1 < t < 1⁠; that is why x=1x = 1 (where t=1t = 1⁠) and x=0x = 0 (where x\sqrt x has no derivative) are left out.
    ddtsin⁡−1t=11−t2\frac{d}{dt}\sin^{-1}t = \frac{1}{\sqrt{1-t^2}} (Section 5.3.3); ab=ab\sqrt a\sqrt b = \sqrt{ab} for a,b≥0a, b \ge 0⁠. Lesson: inverse trig derivatives
  4. What happens at the endpoint x=1x = 1⁠?

    At x=1x = 1 only a left-hand derivative could exist. For ww⁠, with small h>0h > 0⁠, put θ=sin⁡−1h\theta = \sin^{-1}\sqrt h⁠, so sin⁡θ=h\sin\theta = \sqrt h and cos⁡θ=1−h\cos\theta = \sqrt{1 - h} (θ\theta is in [0,π2]\left[0, \frac{\pi}{2}\right]⁠). Then sin⁡−11−h=π2−θ\sin^{-1}\sqrt{1-h} = \frac{\pi}{2} - \theta⁠, and

    w(1)−w(1−h)h=θh≥hh=1h,\frac{w(1) - w(1-h)}{h} = \frac{\theta}{h} \ge \frac{\sqrt h}{h} = \frac{1}{\sqrt h},

    which grows without bound as h→0+h \to 0^+⁠, using θ≥sin⁡θ=h\theta \ge \sin\theta = \sqrt h⁠.

    So ww⁠, and hence yy (since uu has a finite one-sided derivative there), has no derivative at x=1x = 1⁠: the graph arrives at (1,2.412)(1, 2.412) with a vertical tangent. The formula therefore holds on the open interval 0<x<10 < x < 1⁠. The figure below shows this.
    sin⁡−1c=π2−θ\sin^{-1}c = \frac{\pi}{2} - \theta when c=cos⁡θc = \cos\theta with θ∈[0,π2]\theta \in \left[0, \frac{\pi}{2}\right] (Chapter 2 principal range); sin⁡θ≤θ\sin\theta \le \theta for θ≥0\theta \ge 0 (Class XI, the inequality behind lim⁡sin⁡xx=1\lim\frac{\sin x}{x} = 1⁠). Basics: slope at a point
  5. Add the two derivatives

    For 0<x<10 < x < 1⁠,

    dydx= (sin⁡x)x (xcot⁡x+log⁡sin⁡x)+12x−x2.\begin{aligned} \frac{dy}{dx} = \ &(\sin x)^x\,(x\cot x + \log\sin x) \\ &+ \frac{1}{2\sqrt{x - x^2}}. \end{aligned}
    x y 0.25 0.5 0.75 1 1 2 vertical tangent at x = 1 (1, 2.412) open dot: x = 0 not in the domain y = (sin x)^x + sin⁻¹√x
    y=(sin⁡x)x+sin⁡−1xy = (\sin x)^x + \sin^{-1}\sqrt x on 0<x≤10 < x \le 1 (horizontal scale 440 px per unit, vertical 90 px per unit). As x→0+x \to 0^+⁠, y→1y \to 1 (open dot: x=0x = 0 is excluded). At x=1x = 1⁠, y=sin⁡1+π2≈2.412y = \sin 1 + \frac{\pi}{2} \approx 2.412 (filled dot), where the tangent is vertical.
    The sum rule adds u′u' (Step 2) and w′w' (Step 3). The textbook writes the second term as 12⋅1x−x2\frac12\cdot\frac{1}{\sqrt{x - x^2}}⁠, which is the same thing.
    Sum rule (Section 5.3). Basics: derivative rules
Result

The function is defined for 0<x≤10 < x \le 1⁠, and for 0<x<10 < x < 1

dydx= (sin⁡x)x (xcot⁡x+log⁡sin⁡x)+12x−x2.\begin{aligned} \frac{dy}{dx} = \ &(\sin x)^x\,(x\cot x + \log\sin x) \\ &+ \frac{1}{2\sqrt{x - x^2}}. \end{aligned}

(Textbook answer: (sin⁡x)x(xcot⁡x+log⁡sin⁡x)(\sin x)^x(x\cot x + \log\sin x) + 12⋅1x−x2+\ \frac12\cdot\frac{1}{\sqrt{x - x^2}}⁠, the same, without the interval.) At x=1x = 1 there is no derivative (vertical tangent).

Check it with numbers

At x=0.5x = 0.5⁠: sin⁡0.5=0.4794255\sin 0.5 = 0.4794255⁠, u=0.47942550.5=0.6924056u = 0.4794255^{0.5} = 0.6924056⁠, xcot⁡x=0.9152439x\cot x = 0.9152439⁠, log⁡sin⁡x=−0.7351667\log\sin x = -0.7351667⁠. So u′=0.6924056×0.1800772u' = 0.6924056\times 0.1800772 =0.1246864= 0.1246864⁠, and w′=120.25=1w' = \frac{1}{2\sqrt{0.25}} = 1⁠. Total 1.12468641.1246864⁠; the central difference quotient with h=0.0001h = 0.0001 gives 1.12468641.1246864⁠.

At x=0.25x = 0.25 the formula gives 0.86014460.8601446 and the difference quotient 0.86014460.8601446⁠.

Common mistakes
  1. Missing the inner derivative 12x\frac{1}{2\sqrt x} of x\sqrt x⁠, giving just 11−x\frac{1}{\sqrt{1 - x}}⁠.
  2. Power rule on (sin⁡x)x(\sin x)^x: x(sin⁡x)x−1cos⁡xx(\sin x)^{x-1}\cos x misses the log⁡sin⁡x\log\sin x part.
  3. ddxlog⁡sin⁡x=1sin⁡x\frac{d}{dx}\log\sin x = \frac{1}{\sin x}: the chain-rule factor cos⁡x\cos x is missing; the correct result is cot⁡x\cot x⁠.
  4. No domain: the function exists only for 0<x≤10 < x \le 1⁠, and the formula only for 0<x<10 < x < 1⁠.
What to take away
  1. Different terms may need different tools: log differentiation for variable powers, the chain rule for composites.
  2. ddxsin⁡−1x=12x−x2\frac{d}{dx}\sin^{-1}\sqrt x = \frac{1}{2\sqrt{x - x^2}} for 0<x<10 < x < 1⁠.
  3. The domain is the intersection of the terms' domains; endpoints need a separate look.

Every fact used, and where it comes from

FactUsed inSource
Domain [−1,1][-1, 1] and principal range [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right] of sin⁡−1\sin^{-1}Steps 1, 4Chapter 2, Section 2.2
Positive base for logarithmic differentiationSteps 1, 2Section 5.5 (Lesson: logarithmic differentiation)
log⁡pn=nlog⁡p\log p^n = n\log pStep 2Section 5.4
Product rule, sum ruleSteps 2, 5Algebra of derivatives (1), (2), Section 5.3
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠; chain ruleSteps 2, 3Theorem 5, Section 5.4; Theorem 4, Section 5.3.1
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠; power ruleSteps 2, 3Table 5.3
ddxsin⁡−1x=11−x2\frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1-x^2}}⁠, −1<x<1-1 < x < 1Step 3Section 5.3.3 (Example 24)
Derivative as a finite limitStep 4Section 5.3
sin⁡θ≤θ\sin\theta \le \theta for θ≥0\theta \ge 0Step 4Limits and Derivatives (Class XI); not proved in this chapter
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →