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

Exercise 5.4 · Q1: Differentiate exsin⁡x\dfrac{e^x}{\sin x}

Exercise 5.4Derivative of eˣ with the quotient rule · Section 5.4
The question

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

exsin⁡x\frac{e^x}{\sin x}
Exam answer

Let y=exsin⁡xy = \frac{e^x}{\sin x}⁠. By the quotient rule,

dydx=sin⁡x⋅ex−ex⋅cos⁡xsin⁡2x\frac{dy}{dx} = \frac{\sin x\cdot e^x - e^x\cdot\cos x}{\sin^2 x}

∴ dydx=ex(sin⁡x−cos⁡x)sin⁡2x\therefore\ \dfrac{dy}{dx} = \dfrac{e^x(\sin x - \cos x)}{\sin^2 x} (x≠nπ, n∈Z)(x \ne n\pi,\ n \in \mathbf{Z})⁠.

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

The one idea this problem is built on

The function is one function divided by another, so the tool is the quotient rule. The only new ingredient from Section 5.4 is that exe^x is its own derivative (Theorem 5). Because we divide by sin⁡x\sin x⁠, everything (the function and its derivative) lives only where sin⁡x≠0\sin x \ne 0⁠.

Given, to find, and the plan
Given
y=exsin⁡xy = \dfrac{e^x}{\sin x}⁠.
To find
dydx\dfrac{dy}{dx}⁠, and the values of xx where it is valid.
Plan
(1) Find the domain. (2) Name the numerator u=exu = e^x and denominator v=sin⁡xv = \sin x and differentiate each. (3) Apply the quotient rule. (4) Factor and state where the answer holds.

Basics you need

1Theorem 5 (1)

ddxex=ex\dfrac{d}{dx}e^x = e^x for every real xx⁠. The natural exponential function is unchanged by differentiation. Basics: exponentials and logarithms

2Quotient rule

(uv)′=u′v−uv′v2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}⁠, wherever v≠0v \ne 0 (rule (3), Section 5.3). The order in the numerator matters: derivative of the top first. Basics: derivative rules

3Sine and its zeros

ddxsin⁡x=cos⁡x\dfrac{d}{dx}\sin x = \cos x (Table 5.3), and sin⁡x=0\sin x = 0 exactly when x=nπx = n\pi for an integer nn⁠. Basics: trigonometric identities

Solution

  1. Where is the function defined?

    The numerator exe^x is defined for every real xx⁠. The only danger is the denominator: we cannot divide by 00⁠, so we need sin⁡x≠0\sin x \ne 0⁠, that is

    x≠nπ,n∈Z.x \ne n\pi, \qquad n \in \Z.

    So the domain is all real numbers except 0,±π,±2π,…0, \pm\pi, \pm 2\pi, \dots

    A derivative can only exist where the function itself exists. Writing the domain down first also tells us in advance which condition the final formula will carry: the same sin⁡x\sin x will reappear, squared, in its denominator.
    sin⁡x=0\sin x = 0 exactly at the integer multiples of π\pi⁠. Basics: trigonometric identities
  2. Name the top and the bottom, and differentiate each

    u=ex,u′=ex,v=sin⁡x,v′=cos⁡x.\begin{aligned} u &= e^x, & u' &= e^x, \\ v &= \sin x, & v' &= \cos x. \end{aligned}
    The quotient rule is built from four ingredients: uu⁠, vv and their derivatives. Listing them separately before substituting avoids the most common error, mixing up which derivative goes where. u′=exu' = e^x is Theorem 5 (1); v′=cos⁡xv' = \cos x is from Table 5.3.
  3. Apply the quotient rule

    For x≠nπx \ne n\pi (so that v=sin⁡x≠0v = \sin x \ne 0⁠):

    dydx=u′v−uv′v2=ex⋅sin⁡x−ex⋅cos⁡xsin⁡2x.\begin{aligned} \frac{dy}{dx} &= \frac{u'v - uv'}{v^2} \\ &= \frac{e^x\cdot\sin x - e^x\cdot\cos x}{\sin^2 x}. \end{aligned}
    The rule reads "bottom times derivative of top, minus top times derivative of bottom, all over bottom squared". Here the "derivative of top" is exe^x again, which is why exe^x appears in both terms of the numerator.
    Quotient rule, rule (3) of Section 5.3, valid wherever the denominator is not zero. Basics: derivative rules
  4. Factor, and say where the result holds

    Both terms of the numerator contain exe^x⁠, so take it out:

    dydx=ex(sin⁡x−cos⁡x)sin⁡2x,\frac{dy}{dx} = \frac{e^x(\sin x - \cos x)}{\sin^2 x},

    for x≠nπx \ne n\pi⁠, n∈Zn \in \Z⁠. The denominator sin⁡2x\sin^2 x is positive at every point of the domain, so the formula gives a real number at every xx where the function is defined.

    Factoring makes the sign of the derivative easy to read. Since ex>0e^x > 0 and sin⁡2x>0\sin^2 x > 0⁠, the derivative has the same sign as sin⁡x−cos⁡x\sin x - \cos x⁠. For example it is zero where tan⁡x=1\tan x = 1 (such as x=π4x = \frac{\pi}{4}⁠), where the graph has a horizontal tangent.
    ex>0e^x > 0 for every xx⁠: the range of an exponential function is the positive reals (Section 5.4). Basics: exponentials and logarithms
Result ddx(exsin⁡x)=ex(sin⁡x−cos⁡x)sin⁡2x,\frac{d}{dx}\left(\frac{e^x}{\sin x}\right) = \frac{e^x(\sin x - \cos x)}{\sin^2 x},

valid for every x≠nπx \ne n\pi⁠, n∈Zn \in \Z (the whole domain of the function). (Textbook answer: ex(sin⁡x−cos⁡x)sin⁡2x\dfrac{e^x(\sin x - \cos x)}{\sin^2 x}⁠, x≠nπx \ne n\pi⁠, n∈Zn \in \Z⁠. The same.)

Check it with numbers

Take x=1x = 1 (radians), which is not a multiple of π\pi⁠. Then sin⁡1≈0.8414710\sin 1 \approx 0.8414710⁠, cos⁡1≈0.5403023\cos 1 \approx 0.5403023⁠, so sin⁡1−cos⁡1≈0.3011687\sin 1 - \cos 1 \approx 0.3011687 and sin⁡21≈0.7080734\sin^2 1 \approx 0.7080734⁠. The formula gives

e (0.3011687)0.7080734≈1.1561814.\frac{e\,(0.3011687)}{0.7080734} \approx 1.1561814.

A difference quotient of ex/sin⁡xe^x/\sin x with h=0.0001h = 0.0001 on each side of x=1x = 1 gives 1.156181.15618⁠. They agree.

Common mistakes
  1. Reversing the numerator. Writing uv′−u′vuv' - u'v gives ex(cos⁡x−sin⁡x)sin⁡2x\frac{e^x(\cos x - \sin x)}{\sin^2 x}⁠, the negative of the right answer.
  2. Dividing derivatives. (ex)′(sin⁡x)′=excos⁡x\dfrac{(e^x)'}{(\sin x)'} = \dfrac{e^x}{\cos x} is not the derivative of a quotient.
  3. Forgetting the domain. The answer means nothing at x=nπx = n\pi⁠, where neither the function nor its derivative exists.
What to take away
  1. exe^x behaves like any other function in the product and quotient rules; the only special thing is that its derivative is itself.
  2. A quotient is defined, and differentiable, only where its denominator is non-zero; carry that condition into the answer.

Every fact used, and where it comes from

FactUsed inSource
sin⁡x=0  ⟺  x=nπ\sin x = 0 \iff x = n\pi⁠, n∈Zn \in \ZStep 1Zeros of sine (Class XI trigonometry)
ddxex=ex\frac{d}{dx}e^x = e^xStep 2Theorem 5 (1), Section 5.4 (Lesson: exponential and logarithmic functions)
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos xStep 2Table 5.3, Section 5.3
Quotient ruleStep 3Rule (3), Section 5.3
ex>0e^x > 0 for all xxStep 4Feature (2) of exponential functions, Section 5.4
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 →