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

Exercise 5.7 · Q12: d2ydx2\frac{d^2y}{dx^2} in terms of yy for y=cos⁡−1xy=\cos^{-1}x

Exercise 5.7Second order derivative · Section 5.7
The question

12. If y=cos⁡−1xy = \cos^{-1}x⁠, Find d2ydx2\dfrac{d^2y}{dx^2} in terms of yy alone.

Exam answer

Let y=cos⁡−1xy = \cos^{-1}x⁠, −1<x<1-1 \lt x \lt 1⁠. Then x=cos⁡yx = \cos y and 0<y<π0 \lt y \lt \pi⁠, so sin⁡y>0\sin y \gt 0 and 1−x2=sin⁡y\sqrt{1 - x^2} = \sin y⁠.

dydx=−11−x2=−1sin⁡y=−cosec⁡y\begin{aligned} \frac{dy}{dx} &= -\frac{1}{\sqrt{1 - x^2}} = -\frac{1}{\sin y} \\ &= -\operatorname{cosec} y \end{aligned}

Differentiating again w.r.t. xx by the chain rule,

d2ydx2=ddx(−cosec⁡y)=cosec⁡ycot⁡y⋅dydx=cosec⁡ycot⁡y⋅(−cosec⁡y)\begin{aligned} \frac{d^2y}{dx^2} &= \frac{d}{dx}(-\operatorname{cosec} y) \\ &= \operatorname{cosec} y\cot y\cdot\frac{dy}{dx} \\ &= \operatorname{cosec} y\cot y\cdot(-\operatorname{cosec} y) \end{aligned}

∴ d2ydx2=−cot⁡ycosec⁡2y\therefore\ \dfrac{d^2y}{dx^2} = -\cot y\operatorname{cosec}^2 y (0<y<π)(0 \lt y \lt \pi)

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

The one idea this problem is built on

Since y=cos⁡−1xy = \cos^{-1}x⁠, we have x=cos⁡yx = \cos y⁠, and then 1−x2=sin⁡y\sqrt{1-x^2} = \sin y (this needs sin⁡y≥0\sin y \ge 0⁠, which the principal range [0,π][0, \pi] guarantees). So the first derivative can be written using yy only,

dydx=−11−x2=−1sin⁡y=−cosec⁡y.\frac{dy}{dx} = -\frac{1}{\sqrt{1-x^2}} = -\frac{1}{\sin y} = -\operatorname{cosec} y.

Differentiating this with respect to xx needs the chain rule, because yy depends on xx⁠, and the factor dydx\frac{dy}{dx} that appears is again −cosec⁡y-\operatorname{cosec} y⁠.

Given, to find, and the plan
Given
y=cos⁡−1xy = \cos^{-1}x⁠, defined for −1≤x≤1-1 \le x \le 1 with values in [0,π][0, \pi]⁠. Its derivative exists only for −1<x<1-1 \lt x \lt 1⁠, so we work there.
To find
d2ydx2\dfrac{d^2y}{dx^2}⁠, written with yy only (no xx⁠).
Plan
(1) Pin down where yy lies, so that sin⁡y>0\sin y \gt 0⁠. (2) Express 1−x2\sqrt{1-x^2} as sin⁡y\sin y⁠. (3) Write dydx=−cosec⁡y\frac{dy}{dx} = -\operatorname{cosec} y⁠. (4) Differentiate again with the chain rule. (5) Confirm by differentiating in xx and converting at the end.

Basics you need

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

cos⁡−1:[−1,1]→[0,π]\cos^{-1} : [-1, 1] \to [0, \pi]⁠, and cos⁡(cos⁡−1x)=x\cos(\cos^{-1}x) = x for −1≤x≤1-1 \le x \le 1 (Chapter 2, Section 2.2). Also cos⁡−11=0\cos^{-1}1 = 0 and cos⁡−1(−1)=π\cos^{-1}(-1) = \pi⁠. Lesson: derivatives of inverse trig functions

2Derivative of cos⁡−1x\cos^{-1}x

ddxcos⁡−1x=−11−x2\frac{d}{dx}\cos^{-1}x = -\frac{1}{\sqrt{1-x^2}} for −1<x<1-1 \lt x \lt 1 (table in Section 5.3.3). Lesson: derivatives of inverse trig functions

3Pythagorean identity and square roots

sin⁡2y+cos⁡2y=1\sin^2 y + \cos^2 y = 1⁠, and p2=∣p∣\sqrt{p^2} = |p|⁠, which equals pp only when p≥0p \ge 0⁠. Basics: trigonometric identities

4Derivative of cosec⁡y\operatorname{cosec} y

cosec⁡y=(sin⁡y)−1\operatorname{cosec} y = (\sin y)^{-1}⁠, so by the chain rule (outer u−1u^{-1}⁠, inner u=sin⁡yu = \sin y⁠)

ddycosec⁡y=−(sin⁡y)−2cos⁡y=−cosec⁡ycot⁡y.\begin{aligned} \frac{d}{dy}\operatorname{cosec} y &= -(\sin y)^{-2}\cos y \\ &= -\operatorname{cosec} y\cot y. \end{aligned}

Lesson: chain rule

5Chain rule when yy depends on xx

For a function g(y)g(y) of yy⁠, where yy is a function of xx⁠: ddxg(y)=g′(y) dydx\frac{d}{dx}g(y) = g'(y)\,\frac{dy}{dx} (Theorem 4, Section 5.3.1; used for implicit functions in Section 5.3.2). Lesson: implicit differentiation

Solution

  1. Where yy lies, and the sign of sin⁡y\sin y

    We need −1<x<1-1 \lt x \lt 1 for the derivative to exist (Basic 2). By Basic 1, y=cos⁡−1xy = \cos^{-1}x lies in [0,π][0, \pi]⁠. The end values are taken only at the ends: y=0y = 0 only for x=1x = 1⁠, and y=πy = \pi only for x=−1x = -1⁠. So for −1<x<1-1 \lt x \lt 1⁠,

    0<y<π,hencesin⁡y>0.0 \lt y \lt \pi, \qquad\text{hence}\qquad \sin y \gt 0.
    The next step takes a square root, and sin⁡2y\sqrt{\sin^2 y} equals sin⁡y\sin y only if sin⁡y\sin y is not negative. The principal range is what guarantees this. Without it the answer could have the wrong sign.
    sin⁡y>0\sin y \gt 0 for 0<y<π0 \lt y \lt \pi (sine is positive in the first and second quadrants). Basics: trigonometric identities
  2. Write 1−x2\sqrt{1-x^2} in terms of yy

    By Basic 1, x=cos⁡(cos⁡−1x)=cos⁡yx = \cos(\cos^{-1}x) = \cos y⁠. So

    1−x2=1−cos⁡2y=sin⁡2y,1−x2=∣sin⁡y∣=sin⁡y,\begin{aligned} 1 - x^2 &= 1 - \cos^2 y = \sin^2 y, \\ \sqrt{1 - x^2} &= |\sin y| = \sin y, \end{aligned}

    the last equality because sin⁡y>0\sin y \gt 0 (Step 1).

    The question wants the answer in yy alone, so every xx must be replaced. The relation x=cos⁡yx = \cos y does that, and the Pythagorean identity turns 1−cos⁡2y1 - \cos^2 y into sin⁡2y\sin^2 y⁠.
  3. First derivative in terms of yy

    By Basic 2 and Step 2, for −1<x<1-1 \lt x \lt 1⁠,

    dydx=−11−x2=−1sin⁡y=−cosec⁡y.\frac{dy}{dx} = -\frac{1}{\sqrt{1-x^2}} = -\frac{1}{\sin y} = -\operatorname{cosec} y.
    This is the derivative of cos⁡−1x\cos^{-1}x rewritten in yy⁠. You can also get it directly as in Example 24: from x=cos⁡yx = \cos y⁠, dxdy=−sin⁡y\frac{dx}{dy} = -\sin y⁠, so dydx=−1sin⁡y\frac{dy}{dx} = -\frac{1}{\sin y}⁠.
    Table of derivatives of inverse trigonometric functions, Section 5.3.3. Lesson: derivatives of inverse trig functions
  4. Differentiate again, with the chain rule

    −cosec⁡y-\operatorname{cosec} y is a function of yy⁠, and yy is a function of xx⁠. By Basics 5 and 4,

    d2ydx2=ddx(−cosec⁡y)=−(−cosec⁡ycot⁡y)⋅dydx=cosec⁡ycot⁡y⋅dydx.\begin{aligned} \frac{d^2y}{dx^2} &= \frac{d}{dx}(-\operatorname{cosec} y) \\ &= -(-\operatorname{cosec} y\cot y)\cdot\frac{dy}{dx} \\ &= \operatorname{cosec} y\cot y\cdot\frac{dy}{dx}. \end{aligned}
    We differentiate with respect to xx⁠, not yy⁠. So we differentiate −cosec⁡y-\operatorname{cosec} y as if yy were the variable, and then multiply by dydx\frac{dy}{dx}⁠, just as in implicit differentiation.
    Chain rule, Theorem 4, Section 5.3.1. Lesson: chain rule
  5. Substitute dydx=−cosec⁡y\frac{dy}{dx} = -\operatorname{cosec} y

    d2ydx2=cosec⁡ycot⁡y⋅(−cosec⁡y)=−cot⁡ycosec⁡2y,\begin{aligned} \frac{d^2y}{dx^2} &= \operatorname{cosec} y\cot y\cdot(-\operatorname{cosec} y) \\ &= -\cot y\operatorname{cosec}^2 y, \end{aligned}

    valid for 0<y<π0 \lt y \lt \pi⁠, that is, for −1<x<1-1 \lt x \lt 1⁠.

    Replacing dydx\frac{dy}{dx} by its value from Step 3 removes the last trace of xx⁠, so the answer is in yy alone, as asked. This is exactly the answer key's form.
  6. Check: differentiate in xx⁠, convert at the end

    Write dydx=−(1−x2)−12\frac{dy}{dx} = -(1-x^2)^{-\frac12}⁠. By the chain rule (outer u−12u^{-\frac12}⁠, inner u=1−x2u = 1-x^2⁠, dudx=−2x\frac{du}{dx} = -2x⁠):

    d2ydx2=−(−12)(1−x2)−32⋅(−2x)=−x(1−x2)3/2.\begin{aligned} \frac{d^2y}{dx^2} &= -\left(-\tfrac12\right)(1-x^2)^{-\frac32}\cdot(-2x) \\ &= -\frac{x}{(1-x^2)^{3/2}}. \end{aligned}

    Now put x=cos⁡yx = \cos y and 1−x2=sin⁡2y1 - x^2 = \sin^2 y⁠, so (1−x2)3/2=(sin⁡2y)3/2=sin⁡3y(1-x^2)^{3/2} = (\sin^2 y)^{3/2} = \sin^3 y (again because sin⁡y>0\sin y \gt 0⁠):

    d2ydx2=−cos⁡ysin⁡3y=−cos⁡ysin⁡y⋅1sin⁡2y=−cot⁡ycosec⁡2y.\begin{aligned} \frac{d^2y}{dx^2} &= -\frac{\cos y}{\sin^3 y} \\ &= -\frac{\cos y}{\sin y}\cdot\frac{1}{\sin^2 y} \\ &= -\cot y\operatorname{cosec}^2 y. \end{aligned}
    An independent route to the same answer. The three minus signs in the first line multiply to a minus. Converting to yy only at the end needs the same fact as before, sin⁡y>0\sin y \gt 0⁠.
    Power rule (Table 5.3) with the chain rule; (p2)3/2=p3(p^2)^{3/2} = p^3 for p>0p \gt 0⁠.
x y −1 1 O π π/2 y″ = 0 y = cos⁻¹x y″ > 0 bends up y″ < 0 bends down
y=cos⁡−1xy = \cos^{-1}x (equal scales). For x<0x \lt 0⁠, π2<y<π\frac{\pi}{2} \lt y \lt \pi and cot⁡y<0\cot y \lt 0⁠, so d2ydx2=−cot⁡ycosec⁡2y>0\frac{d^2y}{dx^2} = -\cot y\operatorname{cosec}^2 y \gt 0⁠: the graph bends upward. For x>0x \gt 0 it bends downward, and at (0,π2)(0, \frac{\pi}{2}) the second derivative is 00⁠. At the end points the tangent is vertical and no derivative exists.
Result

For −1<x<1-1 \lt x \lt 1⁠, that is 0<y<π0 \lt y \lt \pi⁠,

d2ydx2=−cot⁡ycosec⁡2y.\frac{d^2y}{dx^2} = -\cot y\operatorname{cosec}^2 y.

(Textbook answer: −cot⁡ycosec⁡2y-\cot y\operatorname{cosec}^2 y⁠, the same.) In terms of xx it is −x(1−x2)3/2-\dfrac{x}{(1-x^2)^{3/2}}⁠.

Check it with numbers

Take x=0.5x = 0.5⁠, so y=cos⁡−10.5=π3≈1.0471976y = \cos^{-1}0.5 = \frac{\pi}{3} \approx 1.0471976⁠. Then cot⁡π3=13≈0.5773503\cot\frac{\pi}{3} = \frac{1}{\sqrt3} \approx 0.5773503 and cosec⁡2π3=43≈1.3333333\operatorname{cosec}^2\frac{\pi}{3} = \frac43 \approx 1.3333333⁠, so

−cot⁡ycosec⁡2y=−433≈−0.7698004.-\cot y\operatorname{cosec}^2 y = -\frac{4}{3\sqrt3} \approx -0.7698004.

The xx-form gives −0.50.753/2≈−0.7698004-\frac{0.5}{0.75^{3/2}} \approx -0.7698004⁠, the same. From values of cos⁡−1\cos^{-1} alone, with h=0.001h = 0.001⁠, the second difference y(0.501)−2y(0.5)+y(0.499)h2\frac{y(0.501) - 2y(0.5) + y(0.499)}{h^2} is about −0.76980-0.76980⁠.

Common mistakes
  1. Writing 1−x2=±sin⁡y\sqrt{1-x^2} = \pm\sin y or ignoring the sign. On the principal range (0,π)(0, \pi)⁠, sin⁡y>0\sin y \gt 0⁠, so it is exactly sin⁡y\sin y⁠.
  2. Differentiating −cosec⁡y-\operatorname{cosec} y with respect to yy and stopping. We need the derivative with respect to xx⁠, so a factor dydx\frac{dy}{dx} must appear.
  3. Leaving an xx in the answer. The question asks for yy alone; substitute dydx=−cosec⁡y\frac{dy}{dx} = -\operatorname{cosec} y⁠.
  4. Forgetting the minus in ddxcos⁡−1x\frac{d}{dx}\cos^{-1}x⁠. Without it the final answer has the wrong sign.
What to take away
  1. "In terms of yy alone": write the first derivative in yy⁠, then differentiate with respect to xx using the chain rule and substitute dydx\frac{dy}{dx} again.
  2. Converting 1−x2\sqrt{1-x^2} to sin⁡y\sin y is legitimate because of the principal range; always say why the sign is right.

Every fact used, and where it comes from

FactUsed inSource
cos⁡−1:[−1,1]→[0,π]\cos^{-1} : [-1, 1] \to [0, \pi]⁠; cos⁡(cos⁡−1x)=x\cos(\cos^{-1}x) = xSteps 1, 2Chapter 2, Section 2.2 (principal value branches)
ddxcos⁡−1x=−11−x2\frac{d}{dx}\cos^{-1}x = -\frac{1}{\sqrt{1-x^2}}⁠, −1<x<1-1 \lt x \lt 1Steps 3, 6Table after Example 24, Section 5.3.3 (Lesson: derivatives of inverse trig functions)
sin⁡2y+cos⁡2y=1\sin^2 y + \cos^2 y = 1⁠; p2=∣p∣\sqrt{p^2} = |p|Steps 2, 6Class XI, Trigonometric Functions (Basics: trigonometric identities)
Chain rule; ddycosec⁡y=−cosec⁡ycot⁡y\frac{d}{dy}\operatorname{cosec} y = -\operatorname{cosec} y\cot ySteps 4, 6Theorem 4, Section 5.3.1, with ddysin⁡y=cos⁡y\frac{d}{dy}\sin y = \cos y (Table 5.3) (Lesson: chain rule)
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Steps 4, 6Section 5.7 (Lesson: second order derivative)
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 →