Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations

Exercise 9.3 · Q10: General solution of extan⁡y dx+(1−ex)sec⁡2y dy=0e^x\tan y\,dx + (1 - e^x)\sec^2y\,dy = 0

Exercise 9.3Variables separable · Section 9.4.1
The question

For each of the differential equations in Exercises 1 to 10, find the general solution:

10. extan⁡y dx+(1−ex)sec⁡2y dy=0e^x\tan y\,dx + (1 - e^x)\sec^2y\,dy = 0

Exam answer

Dividing by (1−ex)tan⁡y(1 - e^x)\tan y (≠0\ne 0⁠),

ex1−ex dx+sec⁡2ytan⁡y dy=0\frac{e^x}{1 - e^x}\,dx + \frac{\sec^2y}{\tan y}\,dy = 0

Integrating both sides,

∫ex1−ex dx+∫sec⁡2ytan⁡y dy=log⁡∣C∣\begin{aligned} &\int\frac{e^x}{1 - e^x}\,dx \\ &\quad + \int\frac{\sec^2y}{\tan y}\,dy = \log|C| \end{aligned}

Put 1−ex=t1 - e^x = t⁠, tan⁡y=u\tan y = u⁠. Then −ex dx=dt-e^x\,dx = dt and sec⁡2y dy=du\sec^2y\,dy = du⁠.

−∫dtt+∫duu=log⁡∣C∣−log⁡∣t∣+log⁡∣u∣=log⁡∣C∣log⁡∣tan⁡y∣=log⁡∣C∣+log⁡∣t∣log⁡∣tan⁡y∣=log⁡∣C(1−ex)∣\begin{aligned} -\int\frac{dt}{t} + \int\frac{du}{u} &= \log|C| \\ -\log|t| + \log|u| &= \log|C| \\ \log|\tan y| &= \log|C| + \log|t| \\ \log|\tan y| &= \log|C(1 - e^x)| \end{aligned}

∴\therefore tan⁡y=C(1−ex)\tan y = C(1 - e^x) is the general solution.

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

The one idea this problem is built on

Both terms are products of an xx part and a yy part: ex⋅tan⁡ye^x\cdot\tan y and (1−ex)⋅sec⁡2y(1 - e^x)\cdot\sec^2y⁠. Dividing by (1−ex)tan⁡y(1 - e^x)\tan y separates them. Each resulting fraction is "derivative over function" (up to a sign), so both integrate to logarithms, and a constant written as log⁡∣C∣\log|C| combines everything into tan⁡y=C(1−ex)\tan y = C(1 - e^x)⁠.

Given, to find, and the plan
Given
extan⁡y dx+(1−ex)sec⁡2y dy=0e^x\tan y\,dx + (1 - e^x)\sec^2y\,dy = 0⁠, for yy with cos⁡y≠0\cos y \ne 0⁠.
To find
The general solution, with one arbitrary constant.
Plan
(1) Divide by (1−ex)tan⁡y(1 - e^x)\tan y⁠, saying where that is allowed. (2) Integrate each term by a substitution, one constant log⁡∣C∣\log|C|⁠. (3) Combine the logs and remove them. (4) Check by implicit differentiation.

Basics you need

1Variables separable

An equation f1(x) g1(y) dx+f2(x) g2(y) dy=0f_1(x)\,g_1(y)\,dx + f_2(x)\,g_2(y)\,dy = 0 separates on dividing by g1(y) f2(x)g_1(y)\,f_2(x)⁠, where that is nonzero (Section 9.4.1). Lesson: separate, then integrate

2Derivative over function

With t=f(x)t = f(x)⁠: ∫f′(x)f(x) dx=log⁡∣f(x)∣+C\int\frac{f'(x)}{f(x)}\,dx = \log|f(x)| + C (Sections 7.2 and 7.3.1). Here ddx(1−ex)=−ex\frac{d}{dx}(1 - e^x) = -e^x and ddytan⁡y=sec⁡2y\frac{d}{dy}\tan y = \sec^2y⁠. Basics: every method ends with an integral

3Laws of logarithms

log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠, and equal logs mean equal moduli.

4One arbitrary constant

Writing the constant as log⁡∣C∣\log|C| is still one arbitrary constant. Basics: order n gives n constants

Solution

  1. Divide by (1−ex)tan⁡y(1 - e^x)\tan y⁠: the variables separate

    Take x≠0x \ne 0 (so 1−ex≠01 - e^x \ne 0⁠) and yy with cos⁡y≠0\cos y \ne 0 and tan⁡y≠0\tan y \ne 0⁠. Dividing every term by (1−ex)tan⁡y(1 - e^x)\tan y⁠:

    ex1−ex dx+sec⁡2ytan⁡y dy=0.\frac{e^x}{1 - e^x}\,dx + \frac{\sec^2y}{\tan y}\,dy = 0.
    In the first term tan⁡y\tan y cancels and in the second 1−ex1 - e^x cancels, so each term keeps one variable. Dividing needs 1−ex≠01 - e^x \ne 0 (that is x≠0x \ne 0⁠) and tan⁡y≠0\tan y \ne 0⁠. The lines tan⁡y=0\tan y = 0 (y=nπy = n\pi⁠) satisfy the equation (tan⁡y=0\tan y = 0⁠, dy=0dy = 0⁠); they return as C=0C = 0 in Step 3.
    Section 9.4.1: separate by dividing by a nonzero factor. Lesson: separate, then integrate
  2. Integrate each term, with one constant log⁡∣C∣\log|C|

    Put t=1−ext = 1 - e^x⁠, so dt=−ex dxdt = -e^x\,dx⁠, and u=tan⁡yu = \tan y⁠, so du=sec⁡2y dydu = \sec^2y\,dy⁠:

    −∫dtt+∫duu=log⁡∣C∣-\int\frac{dt}{t} + \int\frac{du}{u} = \log|C| −log⁡∣1−ex∣+log⁡∣tan⁡y∣=log⁡∣C∣.-\log|1 - e^x| + \log|\tan y| = \log|C|.

    Check each integral by differentiating: ddylog⁡∣tan⁡y∣=sec⁡2ytan⁡y\frac{d}{dy}\log|\tan y| = \frac{\sec^2y}{\tan y}⁠, and

    ddx(−log⁡∣1−ex∣)=−−ex1−ex=ex1−ex.\begin{aligned} &\frac{d}{dx}\left(-\log|1 - e^x|\right) \\ &= -\frac{-e^x}{1 - e^x} = \frac{e^x}{1 - e^x}. \end{aligned}
    The top exe^x is minus the derivative of 1−ex1 - e^x⁠, which explains the minus sign in front of the first log. The integral of 0 is a constant, written log⁡∣C∣\log|C| (C≠0C \ne 0⁠) so that the logs combine.
    Section 7.2, formulas (iv), (xi), (xii), with substitutions (Section 7.3.1). Basics: every method ends with an integral
  3. Combine the logs and remove them

    log⁡∣tan⁡y∣=log⁡∣C∣+log⁡∣1−ex∣=log⁡∣C(1−ex)∣\begin{aligned} \log|\tan y| &= \log|C| + \log|1 - e^x| \\ &= \log|C(1 - e^x)| \end{aligned}

    so ∣tan⁡y∣=∣C(1−ex)∣|\tan y| = |C(1 - e^x)| and, writing CC for ±C\pm C⁠,

    tan⁡y=C(1−ex).\tan y = C(1 - e^x).
    log⁡\log is one-one, so the moduli are equal. Along a solution curve tan⁡y1−ex\frac{\tan y}{1 - e^x} is continuous and never 0 here, so its sign is fixed and absorbed into CC⁠. Allowing C=0C = 0 adds back the lines tan⁡y=0\tan y = 0⁠.
    log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠. Basics: one arbitrary constant
  4. Check: differentiate the answer back

    Differentiate tan⁡y=C(1−ex)\tan y = C(1 - e^x) with respect to xx⁠:

    sec⁡2y dydx=−Cex.\sec^2y\,\frac{dy}{dx} = -Ce^x.

    From the answer, C=tan⁡y1−exC = \frac{\tan y}{1 - e^x}⁠, so

    sec⁡2y dydx=−extan⁡y1−ex.\sec^2y\,\frac{dy}{dx} = -\frac{e^x\tan y}{1 - e^x}.

    Multiplying by (1−ex) dx(1 - e^x)\,dx gives extan⁡y dx+(1−ex)sec⁡2y dy=0e^x\tan y\,dx + (1 - e^x)\sec^2y\,dy = 0⁠, the given equation.

    Eliminating CC gives back the equation itself, so every member of the family is a solution (Section 9.3).
    Chain rule (Chapter 5). Basics: y′ is the slope
Result

The general solution is tan⁡y=C(1−ex)\tan y = C(1 - e^x)⁠, where CC is an arbitrary constant, for yy with cos⁡y≠0\cos y \ne 0⁠. (Textbook answer: tan⁡y=C(1−ex)\tan y = C(1 - e^x)⁠.)

Check it with numbers

Take C=1C = 1⁠: y=tan⁡−1(1−ex)y = \tan^{-1}(1 - e^x)⁠. At x=0.5x = 0.5⁠, y≈−0.5754757643y \approx -0.5754757643⁠, and the equation dydx=−extan⁡y(1−ex)sec⁡2y\frac{dy}{dx} = -\frac{e^x\tan y}{(1 - e^x)\sec^2y} gives the slope ≈−1.16038547\approx -1.16038547⁠.

The curve itself: y(0.501)≈−0.5766358559y(0.501) \approx -0.5766358559 and y(0.499)≈−0.5743150861y(0.499) \approx -0.5743150861⁠, so

−0.5766358559+0.57431508610.002≈−1.1604.\begin{aligned} &\frac{-0.5766358559 + 0.5743150861}{0.002} \\ &\approx -1.1604. \end{aligned}
Common mistakes
  1. ∫ex1−ex dx=log⁡∣1−ex∣\int\frac{e^x}{1 - e^x}\,dx = \log|1 - e^x|⁠. The derivative of 1−ex1 - e^x is −ex-e^x⁠, so the integral is −log⁡∣1−ex∣-\log|1 - e^x|⁠.
  2. Ending with tan⁡y=C1−ex\tan y = \frac{C}{1 - e^x} after a sign slip. Check by differentiating back.
  3. Forgetting that x≠0x \ne 0 was needed to divide by 1−ex1 - e^x⁠.
What to take away
  1. Divide by the "wrong-variable" factors, here (1−ex)tan⁡y(1 - e^x)\tan y⁠, to separate.
  2. Watch the sign when the top is minus the derivative of the bottom.
  3. Log on every term: write the constant as log⁡∣C∣\log|C| and combine.

Every fact used, and where it comes from

FactUsed inSource
Variables separable: divide by a nonzero factor and integrateStep 1Section 9.4.1 (Lesson)
ddxex=ex\frac{d}{dx}e^x = e^x⁠; ddytan⁡y=sec⁡2y\frac{d}{dy}\tan y = \sec^2y⁠; ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 2Section 7.2, formulas (xi), (iv), (xii) (Basics)
Integration by substitutionStep 2Section 7.3.1
One arbitrary constant, here written log⁡∣C∣\log|C|Steps 2, 3Section 9.3 (Basics)
log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|Step 3Laws of logarithms
Chain ruleStep 4Chapter 5 (Basics)
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 →