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

Exercise 5.3 · Q11: dydx\frac{dy}{dx} if y=cos⁡−11−x21+x2y=\cos^{-1}\frac{1-x^2}{1+x^2}

Exercise 5.3Derivatives of inverse trigonometric functions · Section 5.3.3
The question

Find dydx\dfrac{dy}{dx} in the following:

y=cos⁡−1(1−x21+x2),0<x<1y = \cos^{-1}\left(\frac{1 - x^2}{1 + x^2}\right), \quad 0 < x < 1
Exam answer

Put x=tan⁡θx = \tan\theta⁠. As 0<x<10 < x < 1⁠, 0<θ<π40 < \theta < \frac{\pi}{4}⁠, so 0<2θ<π20 < 2\theta < \frac{\pi}{2}⁠.

Using cos⁡2θ=1−tan⁡2θ1+tan⁡2θ\cos 2\theta = \frac{1 - \tan^2\theta}{1 + \tan^2\theta}⁠,

y=cos⁡−1(1−tan⁡2θ1+tan⁡2θ)=cos⁡−1(cos⁡2θ)=2θ=2tan⁡−1x\begin{aligned} y &= \cos^{-1}\left(\frac{1 - \tan^2\theta}{1 + \tan^2\theta}\right) \\ &= \cos^{-1}(\cos 2\theta) = 2\theta \\ &= 2\tan^{-1}x \end{aligned}

∴ dydx=21+x2\therefore\ \dfrac{dy}{dx} = \dfrac{2}{1 + x^2} (0<x<1)(0 < x < 1)⁠.

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

The one idea this problem is built on

With x=tan⁡θx = \tan\theta⁠, the fraction 1−x21+x2\frac{1 - x^2}{1 + x^2} is cos⁡2θ\cos 2\theta⁠. So y=cos⁡−1(cos⁡2θ)y = \cos^{-1}(\cos 2\theta)⁠, which equals 2θ2\theta when 2θ2\theta lies in [0,π][0, \pi], the principal range of cos⁡−1\cos^{-1}⁠. For 0<x<10 < x < 1 we get 2θ∈(0,π2)2\theta \in \left(0, \frac{\pi}{2}\right)⁠, safely inside. So y=2tan⁡−1xy = 2\tan^{-1}x⁠, and its derivative is 21+x2\frac{2}{1 + x^2}⁠.

Given, to find, and the plan
Given
y=cos⁡−11−x21+x2y = \cos^{-1}\frac{1 - x^2}{1 + x^2} for 0<x<10 < x < 1⁠.
To find
dydx\dfrac{dy}{dx} on that interval.
Plan
(1) Put x=tan⁡θx = \tan\theta and locate θ\theta⁠. (2) Show the fraction is cos⁡2θ\cos 2\theta⁠. (3) Check 2θ2\theta is in [0,π][0, \pi] and simplify yy⁠. (4) Differentiate. (5) Confirm by the chain rule directly.

Basics you need

1Principal value of cos⁡−1\cos^{-1}

cos⁡−1:[−1,1]→[0,π]\cos^{-1}: [-1, 1] \to [0, \pi]⁠, and cos⁡−1(cos⁡ϕ)=ϕ\cos^{-1}(\cos\phi) = \phi exactly when ϕ∈[0,π]\phi \in [0, \pi] (Chapter 2, Sections 2.2 and 2.3). Basics: composite functions

2Double angle through tangent

1−tan⁡2θ1+tan⁡2θ=cos⁡2θ−sin⁡2θ=cos⁡2θ\frac{1 - \tan^2\theta}{1 + \tan^2\theta} = \cos^2\theta - \sin^2\theta = \cos 2\theta (Class XI). Basics: trigonometric identities

3tan⁡−1\tan^{-1} is increasing

tan⁡−10=0\tan^{-1}0 = 0⁠, tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}⁠, and inequalities pass through tan⁡−1\tan^{-1} unchanged.

4Derivatives of tan⁡−1\tan^{-1} and cos⁡−1\cos^{-1}

ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠; ddxcos⁡−1x=−11−x2\frac{d}{dx}\cos^{-1}x = \frac{-1}{\sqrt{1 - x^2}} for −1<x<1-1 < x < 1 (table after Example 24). Lesson: derivatives of inverse trig functions

Solution

  1. Substitute x=tan⁡θx = \tan\theta and locate θ\theta

    Let θ=tan⁡−1x\theta = \tan^{-1}x⁠, so x=tan⁡θx = \tan\theta (possible for every real xx⁠). Applying the increasing function tan⁡−1\tan^{-1} to 0<x<10 < x < 1⁠:

    0<θ<π4,so0<2θ<π2.0 < \theta < \frac{\pi}{4}, \quad\text{so}\quad 0 < 2\theta < \frac{\pi}{2}.
    We will need the range of 2θ2\theta⁠, because 2θ2\theta is the angle that ends up inside cos⁡−1(cos⁡⋅)\cos^{-1}(\cos\cdot)⁠.
    tan⁡−10=0\tan^{-1}0 = 0⁠, tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} (Chapter 2, Fig 2.5 (ii)). Basics: trigonometric identities
  2. The fraction is cos⁡2θ\cos 2\theta

    Using 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta⁠, that is, multiplying top and bottom by cos⁡2θ≠0\cos^2\theta \ne 0⁠:

    1−x21+x2=1−tan⁡2θ1+tan⁡2θ=cos⁡2θ−sin⁡2θ=cos⁡2θ.\begin{aligned} \frac{1 - x^2}{1 + x^2} &= \frac{1 - \tan^2\theta}{1 + \tan^2\theta} \\ &= \cos^2\theta - \sin^2\theta = \cos 2\theta. \end{aligned}
    This is the "cosine of a double angle in terms of tangent" formula. The denominator 1+x21 + x^2 is never zero, so the fraction is defined for every xx⁠.
    cos⁡2θ=cos⁡2θ−sin⁡2θ\cos 2\theta = \cos^2\theta - \sin^2\theta (Class XI). Basics: trigonometric identities
  3. Simplify yy⁠, checking the range

    Since 2θ∈(0,π2)⊂[0,π]2\theta \in \left(0, \frac{\pi}{2}\right) \subset [0, \pi]⁠,

    y=cos⁡−1(cos⁡2θ)=2θ=2tan⁡−1x.y = \cos^{-1}(\cos 2\theta) = 2\theta = 2\tan^{-1}x.
    cos⁡−1\cos^{-1} returns the unique angle in [0,π][0, \pi] with the given cosine. 2θ2\theta is such an angle, so it is the one returned.
    cos⁡−1(cos⁡ϕ)=ϕ\cos^{-1}(\cos\phi) = \phi for ϕ∈[0,π]\phi \in [0, \pi] (Chapter 2, Section 2.3). Basics: composite functions
  4. Differentiate

    dydx=2⋅11+x2=21+x2.\frac{dy}{dx} = 2\cdot\frac{1}{1 + x^2} = \frac{2}{1 + x^2}.
    ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2} (table after Example 24, Section 5.3.3). Lesson: derivatives of inverse trig functions
  5. Cross-check with the chain rule directly

    Let u=1−x21+x2u = \frac{1 - x^2}{1 + x^2}⁠. The quotient rule gives

    u′=−2x(1+x2)−(1−x2)2x(1+x2)2=−4x(1+x2)2.u' = \frac{-2x(1 + x^2) - (1 - x^2)2x}{(1 + x^2)^2} = \frac{-4x}{(1 + x^2)^2}.

    Also

    1−u2=(1+x2)2−(1−x2)2(1+x2)2=4x2(1+x2)2,\begin{aligned} 1 - u^2 &= \frac{(1 + x^2)^2 - (1 - x^2)^2}{(1 + x^2)^2} \\ &= \frac{4x^2}{(1 + x^2)^2}, \end{aligned}

    so 1−u2=2∣x∣1+x2\sqrt{1 - u^2} = \frac{2|x|}{1 + x^2}⁠. For x≠0x \ne 0⁠,

    dydx=−11−u2⋅u′=1+x22∣x∣⋅4x(1+x2)2=2x∣x∣ (1+x2).\begin{aligned} \frac{dy}{dx} &= \frac{-1}{\sqrt{1 - u^2}}\cdot u' \\ &= \frac{1 + x^2}{2|x|}\cdot\frac{4x}{(1 + x^2)^2} = \frac{2x}{|x|\,(1 + x^2)}. \end{aligned}

    For 0<x<10 < x < 1⁠, x∣x∣=1\frac{x}{|x|} = 1⁠, and this is 21+x2\frac{2}{1 + x^2}⁠, as in Step 4.

    The same calculation shows what happens outside the interval. For every x>0x > 0 the answer is 21+x2\frac{2}{1 + x^2} (indeed 2θ∈(0,π)2\theta \in (0, \pi) there), so the condition x<1x < 1 is not needed. For x<0x < 0 the answer is −21+x2-\frac{2}{1 + x^2}⁠, and at x=0x = 0 the one-sided derivatives ±2\pm2 differ.
    Chain rule, Theorem 4; quotient rule (3), Section 5.3; a2=∣a∣\sqrt{a^2} = |a|⁠. Basics: derivative rules
0 π/4 π/2 π θ = tan⁻¹x lies in (0, π/4) 2θ lies in (0, π/2) range of cos⁻¹ [0, π]
For 0<x<10 < x < 1⁠, θ=tan⁡−1x\theta = \tan^{-1}x lies on the gold arc (0,π4)\left(0, \frac{\pi}{4}\right) and 2θ2\theta on the blue arc (0,π2)\left(0, \frac{\pi}{2}\right)⁠, well inside the principal range [0,π][0, \pi] of cos⁡−1\cos^{-1} (violet; filled dots: endpoints included). So cos⁡−1(cos⁡2θ)=2θ\cos^{-1}(\cos 2\theta) = 2\theta⁠.
Result dydx=21+x2,0<x<1.\frac{dy}{dx} = \frac{2}{1 + x^2}, \quad 0 < x < 1.

(Textbook answer: 21+x2\dfrac{2}{1 + x^2}⁠, the same. It holds in fact for every x>0x > 0⁠.)

Check it with numbers

At x=0.5x = 0.5⁠: the fraction is 0.751.25=0.6\frac{0.75}{1.25} = 0.6⁠, and y=cos⁡−10.6≈0.9272952y = \cos^{-1}0.6 \approx 0.9272952⁠, equal to 2tan⁡−10.52\tan^{-1}0.5⁠. With h=0.0001h = 0.0001⁠, y(0.5001)≈0.9274552y(0.5001) \approx 0.9274552 and y(0.4999)≈0.9271352y(0.4999) \approx 0.9271352⁠; the difference quotient is 1.60000001.6000000⁠, and 21.25=1.6\frac{2}{1.25} = 1.6⁠. ✓

Common mistakes
  1. Not checking that 2θ2\theta is in [0,π][0, \pi]⁠. That check is what turns cos⁡−1(cos⁡2θ)\cos^{-1}(\cos 2\theta) into 2θ2\theta⁠.
  2. Using the wrong formula: 1−tan⁡2θ1+tan⁡2θ\frac{1 - \tan^2\theta}{1 + \tan^2\theta} is cos⁡2θ\cos 2\theta⁠, while 2tan⁡θ1+tan⁡2θ\frac{2\tan\theta}{1 + \tan^2\theta} is sin⁡2θ\sin 2\theta⁠.
  3. In the direct method, writing 4x2=2x\sqrt{4x^2} = 2x without saying x>0x > 0⁠. It is 2∣x∣2|x|⁠.
What to take away
  1. cos⁡−11−x21+x2=2tan⁡−1x\cos^{-1}\frac{1 - x^2}{1 + x^2} = 2\tan^{-1}x for x≥0x \ge 0⁠; the derivative is 21+x2\frac{2}{1 + x^2}⁠.
  2. Compare Q12, where sin⁡−1\sin^{-1} of the same fraction needs a different angle, π2−2θ\frac{\pi}{2} - 2\theta⁠.

Every fact used, and where it comes from

FactUsed inSource
cos⁡−1:[−1,1]→[0,π]\cos^{-1}: [-1, 1] \to [0, \pi]⁠; tan⁡−1:R→(−π2,π2)\tan^{-1}: \mathbf{R} \to \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, increasingSteps 1, 3Chapter 2, Section 2.2 and Fig 2.5 (ii)
cos⁡−1(cos⁡ϕ)=ϕ\cos^{-1}(\cos\phi) = \phi for ϕ∈[0,π]\phi \in [0, \pi]Step 3Chapter 2, Section 2.3
1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta⁠; cos⁡2θ=cos⁡2θ−sin⁡2θ\cos 2\theta = \cos^2\theta - \sin^2\thetaStep 2Class XI, Trigonometric Functions
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠; ddxcos⁡−1x=−11−x2\frac{d}{dx}\cos^{-1}x = \frac{-1}{\sqrt{1 - x^2}}Steps 4, 5Table after Example 24, Section 5.3.3 (Lesson: derivatives of inverse trig functions)
Chain rule; quotient ruleStep 5Theorem 4, Section 5.3.1; rule (3), Section 5.3
Numerical valuesCheckRecomputed in the site's verification script
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 →