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

Exercise 9.3 · Q5: General solution of (ex+e−x) dy−(ex−e−x) dx=0(e^x + e^{-x})\,dy - (e^x - e^{-x})\,dx = 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:

5. (ex+e−x) dy−(ex−e−x) dx=0(e^x + e^{-x})\,dy - (e^x - e^{-x})\,dx = 0

Exam answer

Since ex+e−x>0e^x + e^{-x} > 0⁠, separating the variables,

dy=ex−e−xex+e−x dxdy = \frac{e^x - e^{-x}}{e^x + e^{-x}}\,dx

Integrating both sides,

y=∫ex−e−xex+e−x dxy = \int\frac{e^x - e^{-x}}{e^x + e^{-x}}\,dx

Put ex+e−x=te^x + e^{-x} = t⁠. Then (ex−e−x) dx=dt(e^x - e^{-x})\,dx = dt⁠.

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

∴\therefore y=log⁡(ex+e−x)+Cy = \log(e^x + e^{-x}) + C is the general solution.

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

The one idea this problem is built on

The dydy term carries only xx as a coefficient, so dividing by ex+e−xe^x + e^{-x}⁠, which is always positive, leaves dydy on one side and a function of xx on the other. That function is "derivative over function": the top ex−e−xe^x - e^{-x} is the derivative of the bottom ex+e−xe^x + e^{-x}⁠, so it integrates to a logarithm.

Given, to find, and the plan
Given
(ex+e−x) dy−(ex−e−x) dx=0(e^x + e^{-x})\,dy - (e^x - e^{-x})\,dx = 0⁠, for all real xx⁠.
To find
The general solution, with one arbitrary constant.
Plan
(1) Separate by dividing by ex+e−x>0e^x + e^{-x} > 0⁠. (2) Integrate by the substitution t=ex+e−xt = e^x + e^{-x}⁠, one constant. (3) Check by differentiating back.

Basics you need

1Variables separable

If dydx=g(x) h(y)\frac{dy}{dx} = g(x)\,h(y) with h(y)≠0h(y) \ne 0⁠, then ∫dyh(y)=∫g(x) dx\int\frac{dy}{h(y)} = \int g(x)\,dx (Section 9.4.1). Here h(y)=1h(y) = 1⁠. Lesson: separate, then integrate

2Derivatives of exe^x and e−xe^{-x}

ddxex=ex\frac{d}{dx}e^x = e^x and ddxe−x=−e−x\frac{d}{dx}e^{-x} = -e^{-x} (chain rule). Basics: the exponential function

3Derivative over function

With t=f(x)t = f(x)⁠, dt=f′(x) dxdt = f'(x)\,dx⁠: ∫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). Basics: every method ends with an integral

4One arbitrary constant

A first order equation has one arbitrary constant in its general solution. Basics: order n gives n constants

Solution

  1. Separate: divide by ex+e−xe^x + e^{-x}

    Move the dxdx term across: (ex+e−x) dy=(ex−e−x) dx(e^x + e^{-x})\,dy = (e^x - e^{-x})\,dx⁠. Both exe^x and e−xe^{-x} are positive, so ex+e−x>0e^x + e^{-x} > 0⁠, and we may divide by it:

    dy=ex−e−xex+e−x dx.dy = \frac{e^x - e^{-x}}{e^x + e^{-x}}\,dx.
    The left side is now dydy alone and the right side holds only xx⁠. In the book's form, dydx=g(x)⋅1\frac{dy}{dx} = g(x)\cdot 1⁠, so h(y)=1h(y) = 1 and no value of yy needs to be set aside. The divisor is never 0, so the equation holds for every real xx⁠.
    Section 9.4.1: separate, then integrate. Lesson: separate, then integrate
  2. Integrate by the substitution t=ex+e−xt = e^x + e^{-x}

    Put t=ex+e−xt = e^x + e^{-x}⁠. Then dt=(ex−e−x) dxdt = (e^x - e^{-x})\,dx⁠, exactly the top times dxdx⁠:

    y=∫ex−e−xex+e−x dx=∫dtt=log⁡∣t∣+C=log⁡(ex+e−x)+C.\begin{aligned} y &= \int\frac{e^x - e^{-x}}{e^x + e^{-x}}\,dx = \int\frac{dt}{t} \\ &= \log|t| + C = \log(e^x + e^{-x}) + C. \end{aligned}

    Check the integral by differentiating:

    ddxlog⁡(ex+e−x)=ex−e−xex+e−x.\frac{d}{dx}\log(e^x + e^{-x}) = \frac{e^x - e^{-x}}{e^x + e^{-x}}.
    The derivative of ex+e−xe^x + e^{-x} is ex−e−xe^x - e^{-x} (the chain rule gives −e−x-e^{-x} for e−xe^{-x}⁠), so the fraction is "derivative over function". Since t=ex+e−x>0t = e^x + e^{-x} > 0⁠, ∣t∣=t|t| = t and no modulus is needed. The constants from ∫dy\int dy and from the right side combine into one CC⁠.
    Section 7.2, formula (xii), with a substitution (Section 7.3.1). Basics: every method ends with an integral
  3. One constant, and the general solution

    y=log⁡(ex+e−x)+C.y = \log(e^x + e^{-x}) + C.
    This has one arbitrary constant, as a first order equation needs, and gives yy explicitly. It is exactly the textbook's form.
    Section 9.3: general solution. Basics: order n gives n constants
  4. Check: substitute back

    For y=log⁡(ex+e−x)+Cy = \log(e^x + e^{-x}) + C⁠, Step 2 gives dydx=ex−e−xex+e−x\frac{dy}{dx} = \frac{e^x - e^{-x}}{e^x + e^{-x}}⁠, so

    (ex+e−x) dy=(ex−e−x) dx,(e^x + e^{-x})\,dy = (e^x - e^{-x})\,dx,

    which is the given equation. It holds for every CC and every real xx⁠.

    Substituting back is the definition of a solution (Section 9.3). Multiplying by ex+e−xe^x + e^{-x} is safe because it is positive.
    A solution makes L.H.S. = R.H.S. Lesson: general and particular solutions
Result

The general solution is y=log⁡(ex+e−x)+Cy = \log(e^x + e^{-x}) + C⁠, where CC is an arbitrary constant, valid for every real xx⁠. (Textbook answer: y=log⁡(ex+e−x)+Cy = \log(e^x + e^{-x}) + C⁠.)

Check it with numbers

Take C=0C = 0⁠. At x=0.5x = 0.5⁠, y=log⁡(e0.5+e−0.5)≈0.8132616875y = \log(e^{0.5} + e^{-0.5}) \approx 0.8132616875⁠, and the equation gives the slope e0.5−e−0.5e0.5+e−0.5\frac{e^{0.5} - e^{-0.5}}{e^{0.5} + e^{-0.5}}⁠, which is ≈0.46211716\approx 0.46211716⁠.

The curve itself: y(0.501)≈0.8137241978y(0.501) \approx 0.8137241978 and y(0.499)≈0.8127999637y(0.499) \approx 0.8127999637⁠, so

0.8137241978−0.81279996370.002≈0.46212.\begin{aligned} &\frac{0.8137241978 - 0.8127999637}{0.002} \\ &\approx 0.46212. \end{aligned}
Common mistakes
  1. Splitting the fraction into exex+e−x−e−xex+e−x\frac{e^x}{e^x + e^{-x}} - \frac{e^{-x}}{e^x + e^{-x}}⁠. Neither piece is easier; keep it whole and substitute.
  2. Sign of ddxe−x\frac{d}{dx}e^{-x}⁠. It is −e−x-e^{-x}⁠; that minus is what makes the top the derivative of the bottom.
  3. Writing log⁡(ex)+log⁡(e−x)\log(e^x) + \log(e^{-x}) for log⁡(ex+e−x)\log(e^x + e^{-x})⁠. The log of a sum is not a sum of logs.
What to take away
  1. Divide by the coefficient of dydy when it depends on xx only and is never 0.
  2. Spot "derivative over function": ∫f′(x)f(x) dx=log⁡∣f(x)∣\int\frac{f'(x)}{f(x)}\,dx = \log|f(x)|⁠.
  3. A positive argument needs no modulus: log⁡(ex+e−x)\log(e^x + e^{-x})⁠.

Every fact used, and where it comes from

FactUsed inSource
Variables separable: separate, then integrateStep 1Section 9.4.1 (Lesson)
ddxex=ex\frac{d}{dx}e^x = e^x⁠; ddxe−x=−e−x\frac{d}{dx}e^{-x} = -e^{-x}Step 2Section 7.2, formula (xi); chain rule (Basics)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠; substitutionStep 2Section 7.2, formula (xii); Section 7.3.1 (Basics)
One arbitrary constant for a first order equationStep 3Section 9.3 (Basics)
A solution makes L.H.S. = R.H.S.Step 4Section 9.3 (Lesson)
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 →