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

Exercise 5.4 · Q4: Differentiate sin⁡(tan⁡−1e−x)\sin(\tan^{-1}e^{-x})

Exercise 5.4Chain rule with three links · Section 5.4
The question

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

sin⁡(tan⁡−1e−x)\sin\left(\tan^{-1} e^{-x}\right)
Exam answer

Let y=sin⁡(tan⁡−1e−x)y = \sin\left(\tan^{-1}e^{-x}\right)⁠. By the chain rule,

dydx=cos⁡(tan⁡−1e−x)×ddx(tan⁡−1e−x)=cos⁡(tan⁡−1e−x)×11+e−2x⋅(−e−x)\begin{aligned} \frac{dy}{dx} &= \cos\left(\tan^{-1}e^{-x}\right) \\ &\quad\times\frac{d}{dx}\left(\tan^{-1}e^{-x}\right) \\ &= \cos\left(\tan^{-1}e^{-x}\right) \\ &\quad\times\frac{1}{1 + e^{-2x}}\cdot\left(-e^{-x}\right) \end{aligned}

∴ dydx=−e−xcos⁡(tan⁡−1e−x)1+e−2x\therefore\ \dfrac{dy}{dx} = -\dfrac{e^{-x}\cos\left(\tan^{-1}e^{-x}\right)}{1 + e^{-2x}}⁠.

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

The one idea this problem is built on

Three functions are applied one after another: first e−xe^{-x}⁠, then tan⁡−1\tan^{-1}⁠, then sin⁡\sin⁠. The chain rule for three links multiplies the three link derivatives, each evaluated at the value coming into that link. As a bonus, a right triangle lets us simplify sin⁡(tan⁡−1u)\sin(\tan^{-1}u) and check the answer a second way.

Given, to find, and the plan
Given
y=sin⁡(tan⁡−1e−x)y = \sin\left(\tan^{-1}e^{-x}\right)⁠.
To find
dydx\dfrac{dy}{dx}⁠, and where it is valid.
Plan
(1) Domain. (2) Name the links u=e−xu = e^{-x}⁠, v=tan⁡−1uv = \tan^{-1}u⁠, y=sin⁡vy = \sin v⁠. (3) Differentiate each link. (4) Multiply and substitute back. (5) Cross-check by simplifying the function first.

Basics you need

1Inverse tangent

tan⁡−1u\tan^{-1}u is defined for every real uu⁠, and its principal value lies in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) (Chapter 2). Its derivative is 11+u2\dfrac{1}{1+u^2} for all real uu (table after Example 24, Section 5.3.3). Lesson: derivatives of inverse trig functions

2Derivative of e−xe^{-x}

ddxe−x=−e−x\dfrac{d}{dx}e^{-x} = -e^{-x} (Example 26 (i): chain rule with Theorem 5). Basics: exponentials and logarithms

3Chain rule for three functions

dydx=dydv⋅dvdu⋅dudx\dfrac{dy}{dx} = \dfrac{dy}{dv}\cdot\dfrac{dv}{du}\cdot\dfrac{du}{dx} (extension after Theorem 4, Section 5.3.1). Basics: composite functions

4Right-triangle ratios

In a right triangle, sin⁡\sin is opposite over hypotenuse, cos⁡\cos is adjacent over hypotenuse, tan⁡\tan is opposite over adjacent; Pythagoras gives the hypotenuse. Basics: trigonometric identities

Solution

  1. Where is the function defined?

    e−xe^{-x} is defined for every real xx (and is positive); tan⁡−1\tan^{-1} accepts every real number; sin⁡\sin accepts every real number. So yy is defined for all x∈Rx \in \R⁠. In fact, since e−x>0e^{-x} > 0⁠, the angle tan⁡−1e−x\tan^{-1}e^{-x} lies in (0,π2)\left(0, \frac{\pi}{2}\right)⁠.

    Unlike sin⁡−1\sin^{-1}⁠, the inverse tangent has no restriction on its input, so nothing is excluded. Knowing that the angle is between 00 and π2\frac{\pi}{2} will let us draw it in a right triangle in Step 5.
    Domain R\R and principal range (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) of tan⁡−1\tan^{-1}⁠, Chapter 2. Lesson: derivatives of inverse trig functions
  2. Name the three links and differentiate each

    u=e−xu = e^{-x}⁠,  v=tan⁡−1u\ v = \tan^{-1}u⁠,  y=sin⁡v\ y = \sin v⁠.

    dudx=−e−x,dvdu=11+u2,dydv=cos⁡v.\begin{aligned} \frac{du}{dx} &= -e^{-x}, \\ \frac{dv}{du} &= \frac{1}{1+u^2}, \\ \frac{dy}{dv} &= \cos v. \end{aligned}
    The order of the links is the order of calculation: first e−xe^{-x}⁠, then the inverse tangent of that number, then the sine of the angle. Each derivative is a standard one: e−xe^{-x} from Example 26 (i), tan⁡−1\tan^{-1} from the table after Example 24, sin⁡\sin from Table 5.3. All three hold for every real input, so the chain rule applies at every xx⁠.
    Standard derivatives: Section 5.3.3 for tan⁡−1\tan^{-1}⁠, Section 5.4 for e−xe^{-x}⁠. Basics: derivative rules
  3. Multiply and substitute back

    dydx=cos⁡v⋅11+u2⋅(−e−x)=−e−xcos⁡(tan⁡−1e−x)1+e−2x.\begin{aligned} \frac{dy}{dx} &= \cos v\cdot\frac{1}{1+u^2}\cdot\left(-e^{-x}\right) \\ &= -\frac{e^{-x}\cos\left(\tan^{-1}e^{-x}\right)}{1 + e^{-2x}}. \end{aligned}

    Here u2=(e−x)2=e−2xu^2 = (e^{-x})^2 = e^{-2x}⁠, and v=tan⁡−1e−xv = \tan^{-1}e^{-x}⁠. The denominator 1+e−2x1 + e^{-2x} is always positive, so the formula holds for every real xx⁠.

    Each rate is evaluated at the value entering its link: the sine link sees the angle v=tan⁡−1e−xv = \tan^{-1}e^{-x}⁠, so its rate is cos⁡(tan⁡−1e−x)\cos(\tan^{-1}e^{-x})⁠; the inverse-tangent link sees u=e−xu = e^{-x}⁠, so its rate is 11+e−2x\frac{1}{1+e^{-2x}}⁠. The index law (ea)2=e2a(e^{a})^2 = e^{2a} turns (e−x)2(e^{-x})^2 into e−2xe^{-2x}⁠.
    Chain rule for three functions, Section 5.3.1. Lesson: the chain rule
  4. Simplify the cosine with a right triangle

    Let v=tan⁡−1uv = \tan^{-1}u with u=e−x>0u = e^{-x} > 0⁠. Then vv is an acute angle with tan⁡v=u\tan v = u⁠, so it sits in a right triangle with adjacent side 11⁠, opposite side uu and hypotenuse 1+u2\sqrt{1+u^2}⁠:

    v 1 e⁻ˣ (opposite) √(1 + e⁻²ˣ) tan v = e⁻ˣ
    The angle v=tan⁡−1e−xv = \tan^{-1}e^{-x} in a right triangle (drawn for one value of xx⁠). From it, sin⁡v=u1+u2\sin v = \frac{u}{\sqrt{1+u^2}} and cos⁡v=11+u2\cos v = \frac{1}{\sqrt{1+u^2}} with u=e−xu = e^{-x}⁠.
    cos⁡v=11+e−2x,sin⁡v=e−x1+e−2x.\begin{aligned} \cos v &= \frac{1}{\sqrt{1+e^{-2x}}}, \\ \sin v &= \frac{e^{-x}}{\sqrt{1+e^{-2x}}}. \end{aligned}

    So the answer of Step 3 can also be written

    dydx=−e−x(1+e−2x)3/2=−e2x(1+e2x)3/2.\begin{aligned} \frac{dy}{dx} &= -\frac{e^{-x}}{\left(1+e^{-2x}\right)^{3/2}} \\ &= -\frac{e^{2x}}{\left(1+e^{2x}\right)^{3/2}}. \end{aligned}

    (For the last form, multiply top and bottom by e3x=(e2x)3/2e^{3x} = \left(e^{2x}\right)^{3/2}⁠; then e3xe−x=e2xe^{3x}e^{-x} = e^{2x} and e2x(1+e−2x)=e2x+1e^{2x}\left(1 + e^{-2x}\right) = e^{2x} + 1⁠.)

    The triangle picture is legitimate because vv is genuinely between 00 and π2\frac{\pi}{2} (Step 1), so cos⁡v>0\cos v > 0 and the positive square root is the right one. Multiplying 11+e−2x\frac{1}{1+e^{-2x}} by 11+e−2x\frac{1}{\sqrt{1+e^{-2x}}} gives the power 32\frac{3}{2}⁠.
    Right-triangle ratios and Pythagoras. Basics: trigonometric identities
  5. Cross-check: simplify first, then differentiate

    By Step 4, y=sin⁡v=e−x1+e−2xy = \sin v = \dfrac{e^{-x}}{\sqrt{1+e^{-2x}}}⁠. Multiplying top and bottom by exe^{x} (and using ex=e2xe^x = \sqrt{e^{2x}}⁠) gives

    y=1e2x+1=(1+e2x)−1/2.y = \frac{1}{\sqrt{e^{2x} + 1}} = \left(1 + e^{2x}\right)^{-1/2}.

    Now the chain rule with inner w=1+e2xw = 1 + e^{2x} (w′=2e2xw' = 2e^{2x}⁠) and outer w−1/2w^{-1/2}⁠:

    dydx=−12(1+e2x)−3/2⋅2e2x=−e2x(1+e2x)3/2.\begin{aligned} \frac{dy}{dx} &= -\tfrac12\left(1+e^{2x}\right)^{-3/2}\cdot 2e^{2x} \\ &= -\frac{e^{2x}}{\left(1+e^{2x}\right)^{3/2}}. \end{aligned}

    This is the same as Step 4, so the two routes agree.

    Getting the same result by two independent methods is strong evidence that neither contains a slip. The power rule with n=−12n = -\frac12 is used the same way the textbook uses fractional powers (Example 39), and ddxe2x=2e2x\frac{d}{dx}e^{2x} = 2e^{2x} is the chain rule with Theorem 5.
    Power rule and chain rule. Basics: derivative rules
Result dydx=−e−xcos⁡(tan⁡−1e−x)1+e−2x=−e2x(1+e2x)3/2,\begin{aligned} \frac{dy}{dx} &= -\frac{e^{-x}\cos\left(\tan^{-1}e^{-x}\right)}{1+e^{-2x}} \\ &= -\frac{e^{2x}}{\left(1+e^{2x}\right)^{3/2}}, \end{aligned}

valid for every real xx⁠. (Textbook answer: −e−xcos⁡(tan⁡−1e−x)1+e−2x-\dfrac{e^{-x}\cos(\tan^{-1}e^{-x})}{1+e^{-2x}}⁠. The same as our first form.)

Check it with numbers

At x=0x = 0⁠: u=e0=1u = e^0 = 1⁠, v=tan⁡−11=π4v = \tan^{-1}1 = \frac{\pi}{4}⁠, cos⁡π4≈0.7071068\cos\frac{\pi}{4} \approx 0.7071068⁠, and 1+e0=21 + e^{0} = 2⁠. The first form gives −1⋅0.70710682≈−0.3535534-\frac{1\cdot 0.7071068}{2} \approx -0.3535534⁠; the second gives −123/2=−122≈−0.3535534-\frac{1}{2^{3/2}} = -\frac{1}{2\sqrt2} \approx -0.3535534⁠. A difference quotient of sin⁡(tan⁡−1e−x)\sin(\tan^{-1}e^{-x}) with h=0.0001h = 0.0001 on each side of 00 gives −0.35355-0.35355⁠. All agree.

Common mistakes
  1. Losing the minus sign of e−xe^{-x}⁠. ddxe−x=−e−x\frac{d}{dx}e^{-x} = -e^{-x}⁠, not e−xe^{-x}⁠.
  2. Writing 11+x2\frac{1}{1+x^2}⁠. The inverse-tangent link sees u=e−xu = e^{-x}⁠, so its rate is 11+e−2x\frac{1}{1+e^{-2x}}⁠.
  3. Writing e−x2e^{-x^2} for (e−x)2(e^{-x})^2⁠. (e−x)2=e−2x(e^{-x})^2 = e^{-2x}⁠; e−x2e^{-x^2} is a different number.
What to take away
  1. For a chain of three functions, name every link, differentiate each at the value entering it, and multiply.
  2. sin⁡(tan⁡−1u)=u1+u2\sin(\tan^{-1}u) = \frac{u}{\sqrt{1+u^2}} and cos⁡(tan⁡−1u)=11+u2\cos(\tan^{-1}u) = \frac{1}{\sqrt{1+u^2}} for every real uu (the angle lies in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, where cosine is positive).

Every fact used, and where it comes from

FactUsed inSource
tan⁡−1\tan^{-1}⁠: domain R\R⁠, principal range (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)Steps 1, 4Chapter 2 (inverse trigonometric functions)
ddxe−x=−e−x\frac{d}{dx}e^{-x} = -e^{-x}Step 2Example 26 (i), Section 5.4 (Lesson: exponential and logarithmic functions)
ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1+u^2}Step 2Table after Example 24, Section 5.3.3
ddvsin⁡v=cos⁡v\frac{d}{dv}\sin v = \cos vStep 2Table 5.3, Section 5.3
Chain rule for three functionsStep 3Extension after Theorem 4, Section 5.3.1
Right-triangle ratios, PythagorasStep 4Class X and XI trigonometry
Power rule with n=−12n = -\frac12⁠; ddxe2x=2e2x\frac{d}{dx}e^{2x} = 2e^{2x}Step 5Table 5.3; chain rule with Theorem 5
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 →