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

Miscellaneous · Q10: [e−2xx−yx]dxdy=1\left[\frac{e^{-2\sqrt x}}{\sqrt x} - \frac{y}{\sqrt x}\right]\frac{dx}{dy} = 1

Miscellaneous ExerciseLinear differential equations · Section 9.4.3
The question

10. Solve the differential equation [e−2xx−yx]dxdy=1\left[\dfrac{e^{-2\sqrt x}}{\sqrt x} - \dfrac{y}{\sqrt x}\right]\dfrac{dx}{dy} = 1 (x≠0)(x \ne 0)⁠.

Exam answer

The equation can be written as

dydx=e−2xx−yx\frac{dy}{dx} = \frac{e^{-2\sqrt x}}{\sqrt x} - \frac{y}{\sqrt x} ⇒ dydx+yx=e−2xx\Rightarrow\ \frac{dy}{dx} + \frac{y}{\sqrt x} = \frac{e^{-2\sqrt x}}{\sqrt x}

This is a linear differential equation of the form dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, where P=1xP = \frac{1}{\sqrt x} and Q=e−2xxQ = \frac{e^{-2\sqrt x}}{\sqrt x} (x>0)(x > 0)⁠.

Since ∫x−12dx=2x\int x^{-\frac{1}{2}}dx = 2\sqrt x⁠,

I.F.=e∫1xdx=e2x\begin{aligned} \text{I.F.} &= e^{\int\frac{1}{\sqrt x}dx} \\ &= e^{2\sqrt x} \end{aligned}

So the solution is given by

y e2x=∫e−2xx⋅e2x dx+C=∫1x dx+C=2x+C\begin{aligned} y\,e^{2\sqrt x} &= \int\frac{e^{-2\sqrt x}}{\sqrt x}\cdot e^{2\sqrt x}\,dx \\ &\qquad + C \\ &= \int\frac{1}{\sqrt x}\,dx + C \\ &= 2\sqrt x + C \end{aligned}

∴\therefore y e2x=2x+Cy\,e^{2\sqrt x} = 2\sqrt x + C is the general solution (x>0)(x > 0)⁠.

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

The one idea this problem is built on

The equation is given with dxdy\frac{dx}{dy}⁠, but the bracket contains yy only to the first power. Turning the equation over (dydx\frac{dy}{dx} is the reciprocal of dxdy\frac{dx}{dy}⁠) makes it dydx+1x y=e−2xx\frac{dy}{dx} + \frac{1}{\sqrt x}\,y = \frac{e^{-2\sqrt x}}{\sqrt x}⁠: linear in yy⁠. The integrating factor e∫P dx=e2xe^{\int P\,dx} = e^{2\sqrt x} is exactly what cancels the e−2xe^{-2\sqrt x} on the right, leaving the easy integral ∫dxx=2x\int\frac{dx}{\sqrt x} = 2\sqrt x⁠.

Given, to find, and the plan
Given
[e−2xx−yx]dxdy=1\left[\frac{e^{-2\sqrt x}}{\sqrt x} - \frac{y}{\sqrt x}\right]\frac{dx}{dy} = 1⁠, with x≠0x \ne 0⁠.
To find
The general solution.
Plan
(1) Turn the equation over to get dydx\frac{dy}{dx}⁠; note where it is defined. (2) Recognise the linear form and read off PP⁠, QQ⁠. (3) I.F. =e∫P dx= e^{\int P\,dx}⁠. (4) Multiply and see the product rule. (5) Integrate, with one constant. (6) Write the general solution and compare with the textbook. (7) Check by substituting back.

Basics you need

1First order linear equations

dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, with PP⁠, QQ functions of xx only; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C (Section 9.4.3). Lesson: linear equations, the integrating factor

2dydx\frac{dy}{dx} and dxdy\frac{dx}{dy} are reciprocals

Where neither is zero, dydx=1/dxdy\frac{dy}{dx} = 1\Big/\frac{dx}{dy}⁠. Basics: what a derivative means

3The power rule for integrals

∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n + 1}}{n + 1} + C for n≠−1n \ne -1 (Section 7.2, formula (i)). With n=−12n = -\frac{1}{2}⁠: ∫dxx=2x+C\int\frac{dx}{\sqrt x} = 2\sqrt x + C⁠. Basics: every method ends with an integral

4The chain rule for eue^{u}

ddxe2x=e2x⋅1x\frac{d}{dx}e^{2\sqrt x} = e^{2\sqrt x}\cdot\frac{1}{\sqrt x}⁠, since ddx(2x)=1x\frac{d}{dx}(2\sqrt x) = \frac{1}{\sqrt x}⁠. Basics: exponentials

Solution

  1. Turn the equation over

    The bracket times dxdy\frac{dx}{dy} equals 1, so dxdy≠0\frac{dx}{dy} \ne 0⁠, and

    dydx=1dx/dy=e−2xx−yx.\frac{dy}{dx} = \frac{1}{dx/dy} = \frac{e^{-2\sqrt x}}{\sqrt x} - \frac{y}{\sqrt x}.
    A product equal to 1 has no zero factor, so dxdy≠0\frac{dx}{dy} \ne 0 and the bracket equals its reciprocal dydx\frac{dy}{dx}⁠. Because of x\sqrt x in a denominator, the equation needs x>0x > 0⁠; the book's "(x≠0)(x \ne 0)" together with x\sqrt x means exactly this. The equation has order 1 and, as a polynomial in dydx\frac{dy}{dx}⁠, degree 1. (Strictly, the given form also needs dydx≠0\frac{dy}{dx} \ne 0⁠; the dydx\frac{dy}{dx} form below holds at every x>0x > 0⁠.)
    Reciprocal derivatives; Sections 9.2.1 and 9.2.2. Basics: what a derivative means
  2. Recognise the linear form: P=1xP = \frac{1}{\sqrt x}⁠, Q=e−2xxQ = \frac{e^{-2\sqrt x}}{\sqrt x}

    dydx+1x y=e−2xx.\frac{dy}{dx} + \frac{1}{\sqrt x}\,y = \frac{e^{-2\sqrt x}}{\sqrt x}.
    Move −yx-\frac{y}{\sqrt x} to the left. Now yy and dydx\frac{dy}{dx} appear only to the first power and are not multiplied together, and P=1xP = \frac{1}{\sqrt x}⁠, Q=e−2xxQ = \frac{e^{-2\sqrt x}}{\sqrt x} depend on xx only: the form dydx+Py=Q\frac{dy}{dx} + Py = Q of Section 9.4.3. Both are defined for every x>0x > 0⁠.
    Section 9.4.3, step (i). Lesson: linear equations
  3. The integrating factor: e2xe^{2\sqrt x}

    I.F.=e∫1x dx=e∫x−12 dx=e2x.\text{I.F.} = e^{\int\frac{1}{\sqrt x}\,dx} = e^{\int x^{-\frac{1}{2}}\,dx} = e^{2\sqrt x}.
    By the power rule with n=−12n = -\frac{1}{2}⁠: ∫x−12 dx=x1212=2x\int x^{-\frac{1}{2}}\,dx = \frac{x^{\frac{1}{2}}}{\frac{1}{2}} = 2\sqrt x⁠. Any antiderivative will do for the I.F., so no constant is added here.
    Section 9.4.3, step (ii); Section 7.2, formula (i). Basics: exponentials
  4. Multiply by e2xe^{2\sqrt x}⁠: the left side is one derivative

    e2xdydx+e2xx y=e−2xx⋅e2x⇒ ddx(y e2x)=1x.\begin{aligned} e^{2\sqrt x}\frac{dy}{dx} + \frac{e^{2\sqrt x}}{\sqrt x}\,y &= \frac{e^{-2\sqrt x}}{\sqrt x}\cdot e^{2\sqrt x} \\ \Rightarrow\ \frac{d}{dx}\left(y\,e^{2\sqrt x}\right) &= \frac{1}{\sqrt x}. \end{aligned}
    By the product and chain rules, ddx(y e2x)=e2xdydx+y⋅e2xx\frac{d}{dx}\left(y\,e^{2\sqrt x}\right) = e^{2\sqrt x}\frac{dy}{dx} + y\cdot\frac{e^{2\sqrt x}}{\sqrt x}⁠, which is the left side. On the right, e−2x⋅e2x=e0=1e^{-2\sqrt x}\cdot e^{2\sqrt x} = e^0 = 1⁠.
    Product rule (Chapter 5, Section 5.3). Basics: (y · g)′ = g(y′ + Py)
  5. Integrate, with one constant

    y e2x=∫e−2xx⋅e2x dx+C=∫dxx+C=2x+C.\begin{aligned} y\,e^{2\sqrt x} &= \int\frac{e^{-2\sqrt x}}{\sqrt x}\cdot e^{2\sqrt x}\,dx + C \\ &= \int\frac{dx}{\sqrt x} + C = 2\sqrt x + C. \end{aligned}
    This is y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C⁠. The CC is the one arbitrary constant of this first order equation.
    Section 9.4.3, step (iii). Basics: one constant for order 1
  6. The general solution

    y e2x=2x+C,that is,  y=(2x+C) e−2x,for x>0.\begin{aligned} &y\,e^{2\sqrt x} = 2\sqrt x + C, \\ &\text{that is, }\ y = (2\sqrt x + C)\,e^{-2\sqrt x}, \\ &\text{for } x > 0. \end{aligned}
    Multiply both sides by e−2xe^{-2\sqrt x} to solve for yy⁠. This is exactly the textbook's form ye2x=(2x+C)ye^{2\sqrt x} = (2\sqrt x + C)⁠. Each value of CC gives one solution curve, defined on the whole interval x>0x > 0⁠.
    Section 9.4.3: the general solution. Lesson: the Miscellaneous exercise player
  7. Check by substituting back

    From y=(2x+C)e−2xy = (2\sqrt x + C)e^{-2\sqrt x}⁠, by the product and chain rules,

    dydx=1x e−2x−(2x+C) e−2x⋅1x=e−2xx−yx,\begin{aligned} \frac{dy}{dx} &= \frac{1}{\sqrt x}\,e^{-2\sqrt x} \\ &\qquad - (2\sqrt x + C)\,e^{-2\sqrt x}\cdot\frac{1}{\sqrt x} \\ &= \frac{e^{-2\sqrt x}}{\sqrt x} - \frac{y}{\sqrt x}, \end{aligned}

    which is the bracket of the given equation. So the bracket times dxdy\frac{dx}{dy} is dydx⋅dxdy=1\frac{dy}{dx}\cdot\frac{dx}{dy} = 1⁠.

    ddx(2x)=1x\frac{d}{dx}(2\sqrt x) = \frac{1}{\sqrt x} and ddxe−2x=−1xe−2x\frac{d}{dx}e^{-2\sqrt x} = -\frac{1}{\sqrt x}e^{-2\sqrt x}⁠. Substituting the answer back returns the equation for every CC and every x>0x > 0⁠, so it is the general solution.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Lesson: general and particular solutions
Result

The general solution is y e2x=2x+Cy\,e^{2\sqrt x} = 2\sqrt x + C⁠, that is, y=(2x+C) e−2xy = (2\sqrt x + C)\,e^{-2\sqrt x}⁠, for x>0x > 0⁠. (Textbook answer: ye2x=(2x+C)ye^{2\sqrt x} = (2\sqrt x + C)⁠.)

Check it with numbers

Take C=0C = 0⁠, so y=2x e−2xy = 2\sqrt x\,e^{-2\sqrt x}⁠, and x=1x = 1⁠: y=2e−2≈0.2706706y = 2e^{-2} \approx 0.2706706⁠. The equation gives dydx=e−2−2e−2\frac{dy}{dx} = e^{-2} - 2e^{-2} =−e−2≈−0.1353353= -e^{-2} \approx -0.1353353⁠.

The curve itself: y(1.001)≈0.2705352650y(1.001) \approx 0.2705352650 and y(0.999)≈0.2708059356y(0.999) \approx 0.2708059356⁠, a difference of −0.0002706706-0.0002706706⁠, so

−0.00027067060.002≈−0.1353353.\frac{-0.0002706706}{0.002} \approx -0.1353353.
Common mistakes
  1. Treating it as linear in xx because it shows dxdy\frac{dx}{dy}⁠. The bracket contains x\sqrt x and e−2xe^{-2\sqrt x}⁠, not xx to the first power; turn it over and it is linear in yy⁠.
  2. Wrong sign for PP⁠: moving −yx-\frac{y}{\sqrt x} to the left makes it +yx+\frac{y}{\sqrt x}⁠, so P=+1xP = +\frac{1}{\sqrt x}⁠.
  3. ∫dxx=x\int\frac{dx}{\sqrt x} = \sqrt x or 12x\frac{1}{2}\sqrt x⁠. The power rule gives 2x2\sqrt x⁠.
What to take away
  1. An equation given with dxdy\frac{dx}{dy} is not automatically linear in xx⁠: look at which variable appears to the first power, and turn the equation over if needed.
  2. When the I.F. is the reciprocal of a factor in QQ⁠, the integral ∫Q×I.F. dx\int Q\times\text{I.F.}\,dx becomes simple; that is often a sign you are on the right track.

Every fact used, and where it comes from

FactUsed inSource
dydx=1/dxdy\frac{dy}{dx} = 1\Big/\frac{dx}{dy}⁠; order and degreeStep 1Chapter 5; Sections 9.2.1 and 9.2.2 (Lesson)
Linear equation; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + CSteps 2, 3, 5Section 9.4.3, steps (i) to (iii) (Lesson)
∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n + 1}}{n + 1} + C with n=−12n = -\frac{1}{2}Steps 3, 5Section 7.2, formula (i) (Basics)
Product rule and chain ruleSteps 4, 7Chapter 5, Sections 5.3 and 5.3.1 (Basics)
Substituting a solution backStep 7Section 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 →