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

Example 40: Derivatives of cos⁡−1(sin⁡x)\cos^{-1}(\sin x)⁠, tan⁡−1sin⁡x1+cos⁡x\tan^{-1}\frac{\sin x}{1+\cos x}⁠, sin⁡−12x+11+4x\sin^{-1}\frac{2^{x+1}}{1+4^x}

ExamplesInverse-trig simplification and principal ranges · Miscellaneous Examples
The question

Differentiate the following w.r.t. xx⁠.

(i) cos⁡−1(sin⁡x)\cos^{-1}(\sin x)     (ii) tan⁡−1(sin⁡x1+cos⁡x)\tan^{-1}\left(\dfrac{\sin x}{1+\cos x}\right)     (iii) sin⁡−1(2x+11+4x)\sin^{-1}\left(\dfrac{2^{x+1}}{1+4^x}\right)

Exam answer

(i) Let f(x)=cos⁡−1(sin⁡x)f(x) = \cos^{-1}(\sin x)⁠.

For −π2<x<π2-\frac{\pi}{2} < x < \frac{\pi}{2}⁠, 0<π2−x<π0 < \frac{\pi}{2} - x < \pi⁠. So

f(x)=cos⁡−1(cos⁡(π2−x))=π2−x\begin{aligned} f(x) &= \cos^{-1}\left(\cos\left(\frac{\pi}{2} - x\right)\right) \\ &= \frac{\pi}{2} - x \end{aligned}

∴ f′(x)=−1\therefore\ f'(x) = -1 (−π2<x<π2)(-\frac{\pi}{2} < x < \frac{\pi}{2})⁠.

(ii) Let f(x)=tan⁡−1(sin⁡x1+cos⁡x)f(x) = \tan^{-1}\left(\frac{\sin x}{1 + \cos x}\right)⁠.

For −π<x<π-\pi < x < \pi⁠, −π2<x2<π2-\frac{\pi}{2} < \frac{x}{2} < \frac{\pi}{2}⁠. So

f(x)=tan⁡−1(2sin⁡x2cos⁡x22cos⁡2x2)=tan⁡−1(tan⁡x2)=x2\begin{aligned} f(x) &= \tan^{-1}\left(\frac{2\sin\frac{x}{2}\cos\frac{x}{2}}{2\cos^2\frac{x}{2}}\right) \\ &= \tan^{-1}\left(\tan\frac{x}{2}\right) = \frac{x}{2} \end{aligned}

On ((2n−1)π,(2n+1)π)((2n - 1)\pi, (2n + 1)\pi)⁠, in the same way f(x)=x2−nπf(x) = \frac{x}{2} - n\pi⁠.

∴ f′(x)=12\therefore\ f'(x) = \frac12 (x≠(2n+1)π, n∈Z)(x \ne (2n + 1)\pi,\ n \in \Z)⁠.

(iii) Let f(x)=sin⁡−1(2x+11+4x)f(x) = \sin^{-1}\left(\frac{2^{x+1}}{1 + 4^x}\right)⁠.

Put 2x=tan⁡θ2^x = \tan\theta⁠, 0<θ<π20 < \theta < \frac{\pi}{2}⁠. Then

2x+11+4x=2tan⁡θ1+tan⁡2θ=sin⁡2θ\frac{2^{x+1}}{1 + 4^x} = \frac{2\tan\theta}{1 + \tan^2\theta} = \sin 2\theta

For x≤0x \le 0⁠, 0<2θ≤π20 < 2\theta \le \frac{\pi}{2}⁠, so f(x)=2θ=2tan⁡−1(2x)f(x) = 2\theta = 2\tan^{-1}(2^x)⁠.

For x>0x > 0⁠, π2<2θ<π\frac{\pi}{2} < 2\theta < \pi⁠, so 0<π−2θ<π20 < \pi - 2\theta < \frac{\pi}{2}⁠. As sin⁡2θ=sin⁡(π−2θ)\sin 2\theta = \sin(\pi - 2\theta)⁠, f(x)=sin⁡−1(sin⁡(π−2θ))f(x) = \sin^{-1}(\sin(\pi - 2\theta)) =π−2θ= \pi - 2\theta =π−2tan⁡−1(2x)= \pi - 2\tan^{-1}(2^x)⁠.

Differentiating w.r.t. xx⁠,

ddx 2tan⁡−1(2x)=2⋅2xlog⁡21+4x\frac{d}{dx}\,2\tan^{-1}(2^x) = \frac{2\cdot 2^x\log 2}{1 + 4^x}

At x=0x = 0⁠, LHD=log⁡2\text{LHD} = \log 2 and RHD=−log⁡2\text{RHD} = -\log 2⁠, so ff is not differentiable at x=0x = 0⁠.

∴\therefore For x<0x < 0⁠, f′(x)=2x+1log⁡21+4xf'(x) = \dfrac{2^{x+1}\log 2}{1 + 4^x}⁠; for x>0x > 0⁠, f′(x)=−2x+1log⁡21+4xf'(x) = -\dfrac{2^{x+1}\log 2}{1 + 4^x}⁠.

The textbook gives 2x+1log⁡21+4x\frac{2^{x+1}\log 2}{1 + 4^x} for every xx⁠; that is correct only for x<0x < 0⁠.

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

The one idea this problem is built on

Each function simplifies with a trigonometric identity into something of the form cos⁡−1(cos⁡θ)\cos^{-1}(\cos\theta)⁠, tan⁡−1(tan⁡θ)\tan^{-1}(\tan\theta) or sin⁡−1(sin⁡θ)\sin^{-1}(\sin\theta)⁠. The tempting shortcut is "the inverse cancels the function, leaving θ\theta". But that is true only when θ\theta lies in the principal range of the inverse function (Chapter 2). So for each part we find exactly where the simplification holds, differentiate there, and then see what happens elsewhere. In part (i) the answer changes sign outside (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2})⁠; in part (ii) it does not; in part (iii) the textbook's formula is right only for x<0x < 0⁠.

Given, to find, and the plan
Given
(i) f(x)=cos⁡−1(sin⁡x)f(x) = \cos^{-1}(\sin x)⁠; (ii) f(x)=tan⁡−1sin⁡x1+cos⁡xf(x) = \tan^{-1}\frac{\sin x}{1+\cos x}⁠; (iii) f(x)=sin⁡−12x+11+4xf(x) = \sin^{-1}\frac{2^{x+1}}{1+4^x}⁠.
To find
f′(x)f'(x) in each part, with the set of xx where it is valid.
Plan
Find the domain. Use an identity to write the inside as a trigonometric function of an angle θ\theta⁠. Check when θ\theta lies in the principal range; there the inverse cancels. Differentiate, then handle the remaining xx (shift the angle into the principal range) and the joining points (one-sided derivatives). Confirm with the inverse-trig derivative formulas.

Basics you need

1Principal ranges

sin⁡−1\sin^{-1} returns angles in [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}]⁠, cos⁡−1\cos^{-1} in [0,π][0, \pi]⁠, tan⁡−1\tan^{-1} in (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}) (Chapter 2, Section 2.2). Hence cos⁡−1(cos⁡θ)=θ\cos^{-1}(\cos\theta) = \theta only for θ∈[0,π]\theta \in [0,\pi]⁠, and similarly for the others (Section 2.3). Lesson: inverse trig derivatives

2Identities

sin⁡x=cos⁡(π2−x)\sin x = \cos(\frac{\pi}{2} - x)⁠; sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac x2\cos\frac x2⁠; 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac x2⁠; 2tan⁡θ1+tan⁡2θ=sin⁡2θ\dfrac{2\tan\theta}{1+\tan^2\theta} = \sin 2\theta⁠. Basics: trigonometric identities

3Inverse-trig derivatives

(sin⁡−1x)′=11−x2(\sin^{-1}x)' = \dfrac{1}{\sqrt{1-x^2}}⁠, (cos⁡−1x)′=−11−x2(\cos^{-1}x)' = \dfrac{-1}{\sqrt{1-x^2}} on (−1,1)(-1,1)⁠, and (tan⁡−1x)′=11+x2(\tan^{-1}x)' = \dfrac{1}{1+x^2} on R\R (table in Section 5.3.3). Lesson: inverse trig derivatives

4ddx(ax)=axlog⁡a\frac{d}{dx}(a^x) = a^x\log a

For a positive constant aa (Example 28, Section 5.5). So ddx2x=2xlog⁡2\frac{d}{dx}2^x = 2^x\log 2⁠. Basics: exponentials and logarithms

5One-sided derivatives

At a point where a function changes formula, compute the left-hand and right-hand limits of f(c+h)−f(c)h\frac{f(c+h)-f(c)}{h} separately. The derivative exists only if both are finite and equal (Section 5.3). Lesson: differentiability

Part (i): f(x)=cos⁡−1(sin⁡x)f(x) = \cos^{-1}(\sin x)

  1. Domain

    For every real xx⁠, −1≤sin⁡x≤1-1 \le \sin x \le 1⁠, which is exactly the domain of cos⁡−1\cos^{-1}⁠. So ff is defined for all real xx⁠, with values in [0,π][0,\pi]⁠.

    Before simplifying, we check where the function exists, so that we know which xx the final answer must cover: here, every real number.
    cos⁡−1\cos^{-1} has domain [−1,1][-1,1] and range [0,π][0,\pi] (Chapter 2, Section 2.2).
  2. Rewrite sine as a cosine

    sin⁡x=cos⁡(π2−x),sof(x)=cos⁡−1(cos⁡(π2−x)).\begin{aligned} \sin x &= \cos\left(\tfrac{\pi}{2} - x\right), \quad\text{so} \\ f(x) &= \cos^{-1}\left(\cos\left(\tfrac{\pi}{2} - x\right)\right). \end{aligned}
    An inverse cosine "undoes" a cosine, not a sine. The complementary-angle identity turns the sine into a cosine so the two can meet.
    Complementary angles: cos⁡(π2−x)=sin⁡x\cos(\frac{\pi}{2} - x) = \sin x for every real xx⁠. Basics: trigonometric identities
  3. Where does the inverse cancel?

    cos⁡−1(cos⁡θ)=θ\cos^{-1}(\cos\theta) = \theta holds exactly when θ∈[0,π]\theta \in [0,\pi]⁠. With θ=π2−x\theta = \frac{\pi}{2} - x⁠:

    0≤π2−x≤π  ⟺  −π2≤x≤π2.0 \le \tfrac{\pi}{2} - x \le \pi \iff -\tfrac{\pi}{2} \le x \le \tfrac{\pi}{2}.

    So f(x)=π2−xf(x) = \frac{\pi}{2} - x for −π2≤x≤π2-\frac{\pi}{2} \le x \le \frac{\pi}{2}⁠. This is the textbook's simplification, and this interval is where it is valid.

    cos⁡−1\cos^{-1} can only return an angle in [0,π][0,\pi]⁠. If π2−x\frac{\pi}{2} - x were outside that range, it could not be the output. For instance at x=πx = \pi the formula π2−x\frac{\pi}{2} - x gives −π2-\frac{\pi}{2}⁠, a negative number, while f(π)=cos⁡−1(0)=π2f(\pi) = \cos^{-1}(0) = \frac{\pi}{2}⁠.
    Section 2.3: the cancellation results hold only within the principal value branch. Lesson: inverse trig derivatives
  4. Differentiate on (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2})

    f′(x)=ddx(π2−x)=−1,−π2<x<π2.f'(x) = \frac{d}{dx}\left(\tfrac{\pi}{2} - x\right) = -1, \qquad -\tfrac{\pi}{2} < x < \tfrac{\pi}{2}.
    On this open interval ff is the straight line π2−x\frac{\pi}{2} - x of slope −1-1⁠. We use the open interval because at its end points ff also has neighbours outside the interval, where the formula is different (Part (i), Step 6).
    The derivative of a constant is 0 (Class XI) and of xx is 1 (Table 5.3 with n=1n = 1⁠).
  5. What happens outside that interval

    Take π2≤x≤3π2\frac{\pi}{2} \le x \le \frac{3\pi}{2}⁠. Then θ=π2−x\theta = \frac{\pi}{2} - x lies in [−π,0][-\pi, 0]⁠, outside the range. But cosine is even, so cos⁡θ=cos⁡(−θ)\cos\theta = \cos(-\theta)⁠, and −θ=x−π2-\theta = x - \frac{\pi}{2} lies in [0,π][0,\pi]⁠. Hence

    f(x)=cos⁡−1(cos⁡(x−π2))=x−π2,f(x) = \cos^{-1}\left(\cos\left(x - \tfrac{\pi}{2}\right)\right) = x - \tfrac{\pi}{2},

    with f′(x)=+1f'(x) = +1 on (π2,3π2)(\frac{\pi}{2}, \frac{3\pi}{2})⁠. Because sin⁡x\sin x has period 2π2\pi⁠, so does ff⁠, and the graph is a zigzag:

    x y −π −π/2 π/2 π 3π/2 2π π/2 π slope −1 slope +1 slope +1 corner
    y=cos⁡−1(sin⁡x)y = \cos^{-1}(\sin x)⁠. On (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}) (gold) it is π2−x\frac{\pi}{2} - x⁠, slope −1-1⁠. On the neighbouring intervals the slope is +1+1⁠. At the corners (rose dots, odd multiples of π2\frac{\pi}{2}⁠) there is no tangent line.
    To use cos⁡−1(cos⁡θ)=θ\cos^{-1}(\cos\theta) = \theta we need an angle in [0,π][0,\pi] with the same cosine. Replacing θ\theta by −θ-\theta supplies one. In general, f′(x)=−1f'(x) = -1 wherever cos⁡x>0\cos x > 0 and +1+1 wherever cos⁡x<0\cos x < 0⁠.
    cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta⁠; sin⁡(x+2π)=sin⁡x\sin(x + 2\pi) = \sin x⁠. Basics: trigonometric identities
  6. Confirm with the inverse-cosine formula

    Where ∣sin⁡x∣<1|\sin x| < 1⁠, the chain rule with u=sin⁡xu = \sin x and (cos⁡−1u)′=−11−u2(\cos^{-1}u)' = \frac{-1}{\sqrt{1-u^2}} gives

    f′(x)=−cos⁡x1−sin⁡2x=−cos⁡x∣cos⁡x∣,f'(x) = \frac{-\cos x}{\sqrt{1 - \sin^2 x}} = \frac{-\cos x}{|\cos x|},

    because cos⁡2x=∣cos⁡x∣\sqrt{\cos^2 x} = |\cos x|⁠, not cos⁡x\cos x⁠. This is −1-1 when cos⁡x>0\cos x > 0 and +1+1 when cos⁡x<0\cos x < 0⁠, exactly as in Part (i), Step 5.

    At x=π2x = \frac{\pi}{2} (where sin⁡x=1\sin x = 1⁠) the formula does not apply, so we use difference quotients. Here f(π2)=cos⁡−11=0f(\frac{\pi}{2}) = \cos^{-1}1 = 0⁠, and for small h>0h > 0⁠, Part (i), Steps 3 and 5 give f(π2−h)=hf(\frac{\pi}{2} - h) = h and f(π2+h)=hf(\frac{\pi}{2} + h) = h⁠. So

    LHD=lim⁡h→0+f(π2−h)−0−h=−1,RHD=lim⁡h→0+f(π2+h)−0h=+1.\begin{aligned} \text{LHD} &= \lim_{h\to0^+}\frac{f(\frac{\pi}{2}-h) - 0}{-h} = -1, \\ \text{RHD} &= \lim_{h\to0^+}\frac{f(\frac{\pi}{2}+h) - 0}{h} = +1. \end{aligned}

    They differ, so ff is not differentiable at π2\frac{\pi}{2}⁠; the same happens at every odd multiple of π2\frac{\pi}{2}⁠.

    The formula route and the simplification route must agree, and they do. The step cos⁡2x=∣cos⁡x∣\sqrt{\cos^2 x} = |\cos x| is where the sign information lives: dropping the absolute value would wrongly give −1-1 everywhere.
    Table in Section 5.3.3; a2=∣a∣\sqrt{a^2} = |a|⁠; left and right derivatives (Section 5.3). Lesson: differentiability

Part (ii): f(x)=tan⁡−1sin⁡x1+cos⁡xf(x) = \tan^{-1}\frac{\sin x}{1+\cos x}

  1. Domain

    The fraction needs 1+cos⁡x≠01 + \cos x \ne 0⁠, that is cos⁡x≠−1\cos x \ne -1⁠, that is xx is not an odd multiple of π\pi⁠. tan⁡−1\tan^{-1} accepts every real number, so ff is defined exactly for

    x≠(2n+1)π,n∈Z.x \ne (2n+1)\pi, \qquad n \in \Z.
    The textbook says the function is defined for all real numbers where cos⁡x≠−1\cos x \ne -1⁠, "i.e., at all odd multiplies of π\pi" (it means multiples). The odd multiples of π\pi are the excluded points: cos⁡x=−1\cos x = -1 exactly there.
    cos⁡x=−1\cos x = -1 exactly when x=(2n+1)πx = (2n+1)\pi⁠. The domain of tan⁡−1\tan^{-1} is R\R⁠. Basics: trigonometric identities
  2. Half-angle identities

    sin⁡x1+cos⁡x=2sin⁡x2cos⁡x22cos⁡2x2=sin⁡x2cos⁡x2=tan⁡x2.\begin{aligned} \frac{\sin x}{1+\cos x} &= \frac{2\sin\frac x2\cos\frac x2}{2\cos^2\frac x2} \\ &= \frac{\sin\frac x2}{\cos\frac x2} = \tan\frac x2. \end{aligned}
    We cancel one factor cos⁡x2\cos\frac x2⁠. That is allowed because cos⁡x2=0\cos\frac x2 = 0 would need x2\frac x2 to be an odd multiple of π2\frac{\pi}{2}⁠, that is xx an odd multiple of π\pi⁠, and those points are not in the domain.
    sin⁡2A=2sin⁡Acos⁡A\sin 2A = 2\sin A\cos A and 1+cos⁡2A=2cos⁡2A1 + \cos 2A = 2\cos^2 A⁠, with A=x2A = \frac x2⁠. Basics: trigonometric identities
  3. Where does the inverse cancel?

    tan⁡−1(tan⁡θ)=θ\tan^{-1}(\tan\theta) = \theta holds exactly when −π2<θ<π2-\frac{\pi}{2} < \theta < \frac{\pi}{2}⁠. With θ=x2\theta = \frac x2 this means −π<x<π-\pi < x < \pi⁠. There

    f(x)=tan⁡−1(tan⁡x2)=x2,f′(x)=12.\begin{aligned} f(x) &= \tan^{-1}\left(\tan\tfrac x2\right) = \tfrac x2, \\ f'(x) &= \tfrac12. \end{aligned}
    This is the textbook's computation, valid on (−π,π)(-\pi, \pi)⁠. The principal range of tan⁡−1\tan^{-1} is open, so no end points need special treatment.
    Principal range of tan⁡−1\tan^{-1}⁠: (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}) (Section 2.2).
  4. The other intervals of the domain

    On ((2n−1)π,(2n+1)π)((2n-1)\pi, (2n+1)\pi) the angle x2−nπ\frac x2 - n\pi lies in (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2})⁠, and tan⁡(x2−nπ)=tan⁡x2\tan(\frac x2 - n\pi) = \tan\frac x2 because tangent has period π\pi⁠. So

    f(x)=x2−nπ,f′(x)=12.f(x) = \tfrac x2 - n\pi, \qquad f'(x) = \tfrac12.
    x y −3π −2π −π π 2π 3π −π/2 π/2 y = x/2 on (−π, π) y = x/2 − π on (π, 3π) y = x/2 + π on (−3π, −π)
    y=tan⁡−1sin⁡x1+cos⁡xy = \tan^{-1}\frac{\sin x}{1+\cos x} is a "sawtooth" of parallel pieces, each of slope 12\frac12⁠. The open dots at odd multiples of π\pi are points outside the domain. The formula changes from piece to piece, but the slope never does.
    Subtracting nπn\pi shifts the angle into the principal range without changing its tangent. Only a constant changes from piece to piece, and constants do not affect derivatives. So f′(x)=12f'(x) = \frac12 at every point of the domain, and the textbook's answer needs no restriction here.
    tan⁡(θ−nπ)=tan⁡θ\tan(\theta - n\pi) = \tan\theta⁠. Basics: trigonometric identities
  5. Confirm with the inverse-tangent formula

    With u=tan⁡x2u = \tan\frac x2⁠, u′=12sec⁡2x2u' = \frac12\sec^2\frac x2 and (tan⁡−1u)′=11+u2(\tan^{-1}u)' = \frac{1}{1+u^2}⁠:

    f′(x)=12sec⁡2x21+tan⁡2x2=12sec⁡2x2sec⁡2x2=12.f'(x) = \frac{\frac12\sec^2\frac x2}{1+\tan^2\frac x2} = \frac{\frac12\sec^2\frac x2}{\sec^2\frac x2} = \frac12.
    The chain rule needs no principal-range check, because it never cancels an inverse; it works at every point of the domain at once and agrees with Part (ii), Step 4.
    1+tan⁡2A=sec⁡2A1 + \tan^2 A = \sec^2 A⁠; table in Section 5.3.3. Lesson: inverse trig derivatives

Part (iii): f(x)=sin⁡−12x+11+4xf(x) = \sin^{-1}\frac{2^{x+1}}{1+4^x}

  1. Domain: the inside is between 0 and 1

    Write u=2x+11+4x=2⋅2x1+(2x)2u = \frac{2^{x+1}}{1+4^x} = \frac{2\cdot 2^x}{1+(2^x)^2}⁠. It is positive. And

    u≤1  ⟺  2⋅2x≤1+(2x)2  ⟺  0≤(2x−1)2,\begin{aligned} u \le 1 &\iff 2\cdot 2^x \le 1 + (2^x)^2 \\ &\iff 0 \le (2^x - 1)^2, \end{aligned}

    which is true for every xx⁠, with equality only when 2x=12^x = 1⁠, that is x=0x = 0⁠. So 0<u≤10 < u \le 1⁠, ff is defined for all real xx⁠, and u=1u = 1 only at x=0x = 0⁠.

    sin⁡−1\sin^{-1} needs its input in [−1,1][-1,1]⁠. The textbook divides by 2x2^x and uses 2≤2−x+2x2 \le 2^{-x} + 2^x⁠; moving everything to one side shows the same thing as a perfect square. Knowing that uu reaches 11 at x=0x = 0 will matter: that is where sin⁡−1\sin^{-1} has its steepest point.
    4x=(22)x=(2x)24^x = (2^2)^x = (2^x)^2 and 2x+1=2⋅2x2^{x+1} = 2\cdot 2^x (laws of exponents); a square is never negative. Basics: exponentials and logarithms
  2. Substitute 2x=tan⁡θ2^x = \tan\theta and check it is legitimate

    Since 2x>02^x > 0⁠, we can take θ=tan⁡−1(2x)\theta = \tan^{-1}(2^x)⁠, which lies in (0,π2)(0, \frac{\pi}{2}) and satisfies tan⁡θ=2x\tan\theta = 2^x⁠. Then

    u=2tan⁡θ1+tan⁡2θ=sin⁡2θ,0<2θ<π.u = \frac{2\tan\theta}{1+\tan^2\theta} = \sin 2\theta, \qquad 0 < 2\theta < \pi.
    Defining θ\theta as tan⁡−1(2x)\tan^{-1}(2^x) makes the substitution exact and tells us precisely which angle we have. Its range (0,π2)(0,\frac{\pi}{2}) is what decides the next step.
    2tan⁡θ1+tan⁡2θ=2tan⁡θsec⁡2θ=2sin⁡θcos⁡θ=sin⁡2θ\frac{2\tan\theta}{1+\tan^2\theta} = \frac{2\tan\theta}{\sec^2\theta} = 2\sin\theta\cos\theta = \sin 2\theta⁠. Basics: trigonometric identities
  3. Where does the inverse sine cancel?

    sin⁡−1(sin⁡2θ)=2θ\sin^{-1}(\sin 2\theta) = 2\theta needs 2θ≤π22\theta \le \frac{\pi}{2}⁠, that is θ≤π4\theta \le \frac{\pi}{4}⁠, that is 2x≤12^x \le 1⁠, that is x≤0x \le 0⁠. For x>0x > 0 we have π2<2θ<π\frac{\pi}{2} < 2\theta < \pi⁠; then π−2θ\pi - 2\theta lies in (0,π2)(0, \frac{\pi}{2}) and has the same sine. So

    f(x)={2tan⁡−1(2x),x≤0,π−2tan⁡−1(2x),x>0.f(x) = \begin{cases} 2\tan^{-1}(2^x), & x \le 0, \\ \pi - 2\tan^{-1}(2^x), & x > 0. \end{cases}
    The textbook writes sin⁡−1(sin⁡2θ)=2θ\sin^{-1}(\sin 2\theta) = 2\theta for all xx⁠. That is only true for x≤0x \le 0⁠. For x>0x > 0⁠, 2θ2\theta exceeds π2\frac{\pi}{2}⁠, but sin⁡−1\sin^{-1} never returns more than π2\frac{\pi}{2}⁠. Example: at x=1x = 1⁠, 2tan⁡−12≈2.21429742\tan^{-1}2 \approx 2.2142974⁠, yet f(1)=sin⁡−145≈0.9272952f(1) = \sin^{-1}\frac45 \approx 0.9272952⁠, which is π−2.2142974\pi - 2.2142974⁠.
    sin⁡(π−A)=sin⁡A\sin(\pi - A) = \sin A⁠; principal range of sin⁡−1\sin^{-1} is [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}] (Section 2.2). Lesson: inverse trig derivatives
  4. Differentiate each piece

    By the chain rule with (tan⁡−1v)′=11+v2(\tan^{-1}v)' = \frac{1}{1+v^2} and (2x)′=2xlog⁡2(2^x)' = 2^x\log 2⁠:

    ddx 2tan⁡−1(2x)=21+(2x)2⋅2xlog⁡2=2x+1log⁡21+4x.\begin{aligned} \frac{d}{dx}\,2\tan^{-1}(2^x) &= \frac{2}{1+(2^x)^2}\cdot 2^x\log 2 \\ &= \frac{2^{x+1}\log 2}{1+4^x}. \end{aligned}

    So f′(x)=2x+1log⁡21+4xf'(x) = \dfrac{2^{x+1}\log 2}{1+4^x} for x<0x < 0⁠, and f′(x)=−2x+1log⁡21+4xf'(x) = -\dfrac{2^{x+1}\log 2}{1+4^x} for x>0x > 0 (the constant π\pi has derivative 00⁠).

    For x<0x < 0 this is exactly the textbook's answer. For x>0x > 0 the minus sign in π−2tan⁡−1(2x)\pi - 2\tan^{-1}(2^x) flips it.
    Chain rule (Theorem 4); tan⁡−1\tan^{-1} derivative (Section 5.3.3); (ax)′=axlog⁡a(a^x)' = a^x\log a (Example 28). Lesson: the chain rule
  5. The point x=0x = 0⁠: one-sided derivatives

    f(0)=sin⁡−11=π2f(0) = \sin^{-1}1 = \frac{\pi}{2}⁠. Let g(x)=2tan⁡−1(2x)g(x) = 2\tan^{-1}(2^x)⁠, which is differentiable everywhere with g(0)=π2g(0) = \frac{\pi}{2} and g′(0)=2log⁡22=log⁡2g'(0) = \frac{2\log 2}{2} = \log 2⁠. Then f=gf = g on x≤0x \le 0 and f=π−gf = \pi - g on x≥0x \ge 0⁠, so

    LHD=lim⁡h→0−g(h)−g(0)h=log⁡2,RHD=lim⁡h→0+−(g(h)−g(0))h=−log⁡2.\begin{aligned} \text{LHD} &= \lim_{h\to0^-}\frac{g(h) - g(0)}{h} = \log 2, \\ \text{RHD} &= \lim_{h\to0^+}\frac{-(g(h) - g(0))}{h} = -\log 2. \end{aligned}

    Since log⁡2≠−log⁡2\log 2 \ne -\log 2⁠, ff is not differentiable at x=0x = 0: the graph has a corner at its peak.

    x y −4 −3 −2 −1 1 2 3 4 π/2 π corner at (0, π/2) y = 2 tan⁻¹(2ˣ) y = f(x) y = f(x)
    Blue: the true graph of ff⁠, symmetric about the yy-axis, peaking at (0,π2)(0, \frac{\pi}{2}) with a corner. Gold, dashed: 2tan⁡−1(2x)2\tan^{-1}(2^x) for x>0x > 0⁠, the textbook's formula for ff⁠, which keeps rising above π2\frac{\pi}{2}⁠, impossible for a value of sin⁡−1\sin^{-1}⁠.
    At x=0x = 0 the formula for ff changes, so we must not just plug 00 into a derivative formula. Using gg on each side turns both one-sided quotients into the ordinary derivative of gg at 00⁠, with a sign.
    Left- and right-hand derivatives (Section 5.3). Lesson: differentiability
  6. Two independent confirmations

    Symmetry. u(−x)=2⋅2−x1+4−xu(-x) = \frac{2\cdot 2^{-x}}{1+4^{-x}}⁠; multiplying top and bottom by 4x4^x gives 2⋅2x4x+1=u(x)\frac{2\cdot 2^x}{4^x+1} = u(x)⁠. So ff is even, and the derivative of an even function is odd: f′(−x)=−f′(x)f'(-x) = -f'(x)⁠. The textbook's expression 2x+1log⁡21+4x\frac{2^{x+1}\log2}{1+4^x} is even and never zero, so it cannot be f′f' on both sides of 00⁠.

    The inverse-sine formula. u′=2x+1log⁡2 (1−4x)(1+4x)2u' = \dfrac{2^{x+1}\log 2\,(1-4^x)}{(1+4^x)^2} and 1−u2=∣1−4x∣1+4x\sqrt{1-u^2} = \dfrac{|1-4^x|}{1+4^x}⁠, so for x≠0x \ne 0

    f′(x)=u′1−u2=2x+1log⁡21+4x⋅1−4x∣1−4x∣.\begin{aligned} f'(x) &= \frac{u'}{\sqrt{1-u^2}} \\ &= \frac{2^{x+1}\log 2}{1+4^x}\cdot\frac{1-4^x}{|1-4^x|}. \end{aligned}

    The last factor is +1+1 for x<0x < 0 and −1-1 for x>0x > 0⁠, matching Part (iii), Step 4.

    Two arguments that use no principal-range reasoning at all reach the same conclusion. The second one shows where the sign comes from: 1−u2=(1−4x)2(1+4x)21 - u^2 = \frac{(1-4^x)^2}{(1+4^x)^2}⁠, and its square root is an absolute value.
    Quotient rule for u′u'⁠; a2=∣a∣\sqrt{a^2} = |a|⁠; (sin⁡−1u)′=u′1−u2(\sin^{-1}u)' = \frac{u'}{\sqrt{1-u^2}} for ∣u∣<1|u| < 1 (Section 5.3.3). Basics: derivative rules
Result

(i) f′(x)=−1f'(x) = -1 for −π2<x<π2-\frac{\pi}{2} < x < \frac{\pi}{2} (the textbook's answer, valid on this interval). In general f′(x)=−cos⁡x∣cos⁡x∣f'(x) = -\dfrac{\cos x}{|\cos x|}⁠: −1-1 where cos⁡x>0\cos x > 0⁠, +1+1 where cos⁡x<0\cos x < 0⁠; there is no derivative at odd multiples of π2\frac{\pi}{2}⁠.

(ii) f′(x)=12f'(x) = \frac12 at every point of the domain x≠(2n+1)πx \ne (2n+1)\pi (the textbook's answer; f(x)=x2f(x) = \frac x2 itself holds only on (−π,π)(-\pi,\pi)⁠).

(iii) f′(x)=2x+1log⁡21+4xf'(x) = \dfrac{2^{x+1}\log 2}{1+4^x} for x<0x < 0⁠, f′(x)=−2x+1log⁡21+4xf'(x) = -\dfrac{2^{x+1}\log 2}{1+4^x} for x>0x > 0⁠, and ff is not differentiable at x=0x = 0⁠. The textbook gives 2x+1log⁡21+4x\dfrac{2^{x+1}\log 2}{1+4^x} for every xx⁠; that is correct only for x<0x < 0⁠, because its step sin⁡−1(sin⁡2θ)=2θ\sin^{-1}(\sin 2\theta) = 2\theta needs 2θ≤π22\theta \le \frac{\pi}{2}⁠, that is x≤0x \le 0⁠.

Check it with numbers

(i) f(0.5)=cos⁡−1(sin⁡0.5)f(0.5) = \cos^{-1}(\sin 0.5) ≈1.0707963\approx 1.0707963⁠, which is π2−0.5\frac{\pi}{2} - 0.5⁠, and a difference quotient at 0.50.5 gives −1.00000-1.00000⁠. At x=2x = 2 (where cos⁡2<0\cos 2 < 0⁠): f(2)≈0.4292037=2−π2f(2) \approx 0.4292037 = 2 - \frac{\pi}{2}⁠, and the difference quotient gives +1.00000+1.00000⁠.

(ii) f(0.5)=0.25f(0.5) = 0.25 and f(4)≈−1.1415927=2−πf(4) \approx -1.1415927 = 2 - \pi (the piece with n=1n = 1⁠); difference quotients at both points give 0.500000.50000⁠.

(iii) f(−1)=f(1)=sin⁡−10.8f(-1) = f(1) = \sin^{-1}0.8⁠, about 0.92729520.9272952⁠. The formula gives log⁡21.25≈0.5545177\frac{\log 2}{1.25} \approx 0.5545177 at x=−1x = -1 and −0.5545177-0.5545177 at x=1x = 1⁠; difference quotients give 0.554520.55452 and −0.55452-0.55452⁠. The textbook's formula would give +0.5545177+0.5545177 at x=1x = 1⁠, the opposite sign to the derivative there.

Common mistakes
  1. Cancelling an inverse without checking the range. cos⁡−1(cos⁡θ)=θ\cos^{-1}(\cos\theta) = \theta⁠, tan⁡−1(tan⁡θ)=θ\tan^{-1}(\tan\theta) = \theta and sin⁡−1(sin⁡θ)=θ\sin^{-1}(\sin\theta) = \theta each hold only when θ\theta is in the principal range.
  2. Writing cos⁡2x=cos⁡x\sqrt{\cos^2 x} = \cos x⁠. It is ∣cos⁡x∣|\cos x|⁠. This is exactly the step that decides the sign in parts (i) and (iii).
  3. Differentiating at a corner by formula. At x=π2x = \frac{\pi}{2} in part (i) and x=0x = 0 in part (iii), the left and right derivatives differ, so there is no derivative.
  4. Misreading the domain in part (ii). The odd multiples of π\pi are excluded, not the only points included.
What to take away
  1. Simplifying inverse(trig(θ))\text{inverse}(\text{trig}(\theta)) to θ\theta is a powerful shortcut, but always state the interval where θ\theta is in the principal range.
  2. Outside that interval, shift or reflect the angle into the range: the result differs by a constant (slope unchanged, part (ii)) or by a sign change (slope flips, parts (i) and (iii)).
  3. When in doubt, differentiate directly with the inverse-trig formula and keep the absolute value from a2=∣a∣\sqrt{a^2} = |a|⁠.

Every fact used, and where it comes from

FactUsed inSource
Principal ranges of sin⁡−1\sin^{-1}⁠, cos⁡−1\cos^{-1}⁠, tan⁡−1\tan^{-1}Part (i), Steps 1, 3; Part (ii), Step 3; Part (iii), Step 3Chapter 2, Section 2.2
Inverse cancels the function only inside the principal rangePart (i), Steps 3, 5; Part (ii), Steps 3, 4; Part (iii), Step 3Chapter 2, Section 2.3
sin⁡x=cos⁡(π2−x)\sin x = \cos(\frac{\pi}{2}-x)⁠, cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\thetaPart (i), Steps 2, 5Trigonometric identities (Class XI)
sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac x2\cos\frac x2⁠, 1+cos⁡x=2cos⁡2x21+\cos x = 2\cos^2\frac x2⁠, tan⁡(θ−nπ)=tan⁡θ\tan(\theta - n\pi) = \tan\thetaPart (ii), Steps 2, 4Trigonometric identities (Class XI)
2tan⁡θ1+tan⁡2θ=sin⁡2θ\frac{2\tan\theta}{1+\tan^2\theta} = \sin 2\theta⁠, sin⁡(π−A)=sin⁡A\sin(\pi - A) = \sin APart (iii), Steps 2, 3Trigonometric identities (Class XI)
Derivatives of sin⁡−1\sin^{-1}⁠, cos⁡−1\cos^{-1}⁠, tan⁡−1\tan^{-1}Part (i), Step 6; Part (ii), Step 5; Part (iii), Steps 4, 6Table in Section 5.3.3 (Lesson: inverse trig derivatives)
Chain rulePart (i), Step 6; Part (ii), Step 5; Part (iii), Step 4Theorem 4, Section 5.3.1
(ax)′=axlog⁡a(a^x)' = a^x\log aPart (iii), Step 4Example 28, Section 5.5 (Example 28)
Left- and right-hand derivativesPart (i), Step 6; Part (iii), Step 5Section 5.3 (Lesson: differentiability)
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 →