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

Exercise 9.4 · Q10: Homogeneous in xy\frac{x}{y}⁠: (1+ex/y) dx(1 + e^{x/y})\,dx + ex/y(1−xy) dy=0+\ e^{x/y}(1 - \frac{x}{y})\,dy = 0

Exercise 9.4Homogeneous differential equations · Section 9.4.2
The question

In each of the Exercises 1 to 10, show that the given differential equation is homogeneous and solve each of them.

10. (1+exy)dx+exy(1−xy)dy=0\left(1 + e^{\frac{x}{y}}\right)dx + e^{\frac{x}{y}}\left(1 - \dfrac{x}{y}\right)dy = 0

Exam answer

The equation can be written as

dxdy=−ex/y(1−xy)1+ex/y=F(x,y)\begin{aligned} \frac{dx}{dy} &= \frac{-e^{x/y}\left(1 - \frac{x}{y}\right)}{1 + e^{x/y}} \\ &= F(x, y) \end{aligned}

Replacing xx by λx\lambda x and yy by λy\lambda y⁠, since λxλy=xy\frac{\lambda x}{\lambda y} = \frac{x}{y}⁠,

F(λx,λy)=−ex/y(1−xy)1+ex/y=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{-e^{x/y}\left(1 - \frac{x}{y}\right)}{1 + e^{x/y}} \\ &= \lambda^0\cdot F(x, y) \end{aligned}

So FF is homogeneous of degree zero, and the equation is homogeneous.

Put x=vyx = vy⁠. Then dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy}⁠.

v+ydvdy=−ev(1−v)1+evydvdy=−ev+vev1+ev−v=−ev+vev−v−vev1+ev=−ev−v1+ev\begin{aligned} v + y\frac{dv}{dy} &= \frac{-e^v(1 - v)}{1 + e^v} \\ y\frac{dv}{dy} &= \frac{-e^v + ve^v}{1 + e^v} - v \\ &= \frac{-e^v + ve^v - v - ve^v}{1 + e^v} \\ &= \frac{-e^v - v}{1 + e^v} \end{aligned}

Separating the variables,

1+evv+ev dv=−dyy\frac{1 + e^v}{v + e^v}\,dv = -\frac{dy}{y}

Integrating both sides (the numerator is the derivative of v+evv + e^v⁠),

log⁡∣v+ev∣=−log⁡∣y∣+log⁡∣C∣log⁡∣y(v+ev)∣=log⁡∣C∣y(v+ev)=±C\begin{aligned} \log|v + e^v| &= -\log|y| + \log|C| \\ \log|y(v + e^v)| &= \log|C| \\ y(v + e^v) &= \pm C \end{aligned}

Putting v=xyv = \frac{x}{y} and writing CC for ±C\pm C⁠,

y(xy+ex/y)=Cy\left(\frac{x}{y} + e^{x/y}\right) = C

∴\therefore x+yexy=Cx + ye^{\dfrac{x}{y}} = C is the general solution.

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

The one idea this problem is built on

Here xx and yy meet only through the ratio xy\frac{x}{y}⁠: inside the exponential and in 1−xy1 - \frac{x}{y}⁠. So the equation is homogeneous, and because the ratio is xy\frac{x}{y} (not yx\frac{y}{x}⁠), we follow the book's Note in Section 9.4.2: write it as dxdy=F(x,y)\frac{dx}{dy} = F(x, y) and put x=vyx = vy⁠. After that, the vv-integral has the derivative of its denominator on top, so it is a single logarithm.

Given, to find, and the plan
Given
(1+ex/y)dx+ex/y(1−xy)dy=0\left(1 + e^{x/y}\right)dx + e^{x/y}\left(1 - \frac{x}{y}\right)dy = 0⁠, with y≠0y \ne 0 (so that xy\frac{x}{y} is defined).
To show and find
That the equation is homogeneous; then its general solution.
Plan
(1) Write it as dxdy=F(x,y)\frac{dx}{dy} = F(x, y)⁠. (2) Show F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)⁠. (3) Put x=vyx = vy⁠. (4) Simplify to ydvdy=…y\frac{dv}{dy} = \ldots⁠. (5) Separate. (6) Integrate, with the constant as log⁡∣C∣\log|C|⁠. (7) Put v=xyv = \frac{x}{y} back. (8) Check by differentiating back.

Basics you need

1Homogeneous functions and equations

F(x,y)F(x, y) is homogeneous of degree nn when F(λx,λy)=λnF(x,y)F(\lambda x, \lambda y) = \lambda^nF(x, y) for every nonzero λ\lambda⁠; an equation dxdy=F(x,y)\frac{dx}{dy} = F(x, y) with FF of degree zero is homogeneous (Section 9.4.2 and its Note). Basics: scale x and y together

2The substitution x=vyx = vy

With xx a function of yy⁠, the product rule gives dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy}⁠. This is the mirror image of y=vxy = vx⁠; Example 12 uses it too. Lesson: homogeneous equations, put y = vx

3The integral ∫f′(v)f(v) dv=log⁡∣f(v)∣+C\int\frac{f'(v)}{f(v)}\,dv = \log|f(v)| + C

Put t=f(v)t = f(v)⁠, dt=f′(v) dvdt = f'(v)\,dv⁠; then it is ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C (Sections 7.2 and 7.3.1). Basics: every method ends with an integral

4The constant written as log⁡∣C∣\log|C|

Every real number is log⁡∣C∣\log|C| for some C≠0C \ne 0⁠, so "+log⁡∣C∣+\log|C|" is one arbitrary constant, and log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠. Basics: one constant for order 1

Solution

  1. Write the equation as dxdy=F(x,y)\frac{dx}{dy} = F(x, y)

    Move the dydy term across and divide by (1+ex/y)dy\left(1 + e^{x/y}\right)dy⁠:

    dxdy=−ex/y(1−xy)1+ex/y=F(x,y).…(1)\begin{aligned} \frac{dx}{dy} &= \frac{-e^{x/y}\left(1 - \frac{x}{y}\right)}{1 + e^{x/y}} \\ &= F(x, y).\quad\ldots(1) \end{aligned}
    Dividing loses no solution: 1+ex/y1 + e^{x/y} is never 0, because an exponential is always positive. We choose dxdy\frac{dx}{dy} rather than dydx\frac{dy}{dx} because the ratio in the equation is xy\frac{x}{y}⁠; with x=vyx = vy it becomes simply vv⁠. (The dydx\frac{dy}{dx} form would mean dividing by ex/y(1−xy)e^{x/y}\left(1 - \frac{x}{y}\right)⁠, which is 0 on the line x=yx = y⁠: an extra condition we do not need.)
    Section 9.4.2, Note: the form dxdy=F(x,y)\frac{dx}{dy} = F(x, y)⁠. Lesson: homogeneous equations
  2. Show that it is homogeneous: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

    For any λ≠0\lambda \ne 0⁠, λxλy=xy\frac{\lambda x}{\lambda y} = \frac{x}{y}⁠, so nothing in FF changes:

    F(λx,λy)=−eλx/λy(1−λxλy)1+eλx/λy=−ex/y(1−xy)1+ex/y=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{-e^{\lambda x/\lambda y}\left(1 - \frac{\lambda x}{\lambda y}\right)}{1 + e^{\lambda x/\lambda y}} \\ &= \frac{-e^{x/y}\left(1 - \frac{x}{y}\right)}{1 + e^{x/y}} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

    So FF is a homogeneous function of degree zero, and (1) is a homogeneous differential equation.

    FF is built from the ratio xy\frac{x}{y} alone, and a ratio does not change when both xx and yy are scaled by the same λ\lambda⁠. Degree zero is exactly the condition for a homogeneous equation.
    Section 9.4.2: homogeneous function of degree nn⁠. Basics: scale x and y together
  3. Substitute x=vyx = vy

    Put x=vyx = vy⁠, so xy=v\frac{x}{y} = v⁠. Differentiating with respect to yy (product rule): dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy}⁠. Then (1) becomes

    v+ydvdy=−ev(1−v)1+ev.v + y\frac{dv}{dy} = \frac{-e^v(1 - v)}{1 + e^v}.
    Since FF depends only on xy\frac{x}{y}⁠, the right side becomes a function of vv alone. Here yy is the independent variable and xx (hence vv⁠) depends on it, so we differentiate with respect to yy⁠.
    Section 9.4.2, Note: x=vyx = vy⁠. Lesson: put y = vx (here x = vy)
  4. Simplify to ydvdy=…y\frac{dv}{dy} = \ldots

    ydvdy=−ev+vev1+ev−v=−ev+vev−v−vev1+ev=−v+ev1+ev.\begin{aligned} y\frac{dv}{dy} &= \frac{-e^v + ve^v}{1 + e^v} - v \\ &= \frac{-e^v + ve^v - v - ve^v}{1 + e^v} \\ &= -\frac{v + e^v}{1 + e^v}. \end{aligned}
    Expand −ev(1−v)=−ev+vev-e^v(1 - v) = -e^v + ve^v and write vv over the common denominator 1+ev1 + e^v⁠. The vevve^v terms cancel, and the right side is a function of vv only, so it separates.
    Section 9.4.2, equation (4), with the roles of xx and yy swapped. Lesson: homogeneous equations
  5. Separate vv and yy

    1+evv+ev dv=−dyy.\frac{1 + e^v}{v + e^v}\,dv = -\frac{dy}{y}.
    Multiply by 1+evv+ev\frac{1 + e^v}{v + e^v} and by dyy\frac{dy}{y} (y≠0y \ne 0⁠). This divides by v+evv + e^v⁠, so look at where it is 0. Its derivative 1+ev1 + e^v is positive, so v+evv + e^v increases and is 0 at exactly one value, v=α≈−0.567v = \alpha \approx -0.567⁠. The constant v=αv = \alpha makes both sides of Step 4 zero, so the line x=αyx = \alpha y is a solution that this division sets aside. Step 7 shows the final answer brings it back with C=0C = 0⁠, so nothing is lost.
    Section 9.4.2, equation (5); separating as in Section 9.4.1. Basics: dy = y′ dx
  6. Integrate, writing the constant as log⁡∣C∣\log|C|

    The top 1+ev1 + e^v is the derivative of the bottom v+evv + e^v⁠, so the left side is ∫f′(v)f(v) dv\int\frac{f'(v)}{f(v)}\,dv⁠:

    ∫1+evv+ev dv=−∫dyylog⁡∣v+ev∣=−log⁡∣y∣+log⁡∣C∣,\begin{aligned} \int\frac{1 + e^v}{v + e^v}\,dv &= -\int\frac{dy}{y} \\ \log|v + e^v| &= -\log|y| + \log|C|, \end{aligned}

    where C≠0C \ne 0 is an arbitrary constant. Check: ddvlog⁡∣v+ev∣=1+evv+ev\frac{d}{dv}\log|v + e^v| = \frac{1 + e^v}{v + e^v}⁠, the integrand.

    The equation has order 1 (and degree 1, since it is a polynomial in the derivative), so its general solution has exactly one arbitrary constant (chapter Summary). Writing it as log⁡∣C∣\log|C| lets the logs combine in the next step.
    Section 7.2, formula (xii), with the substitution t=v+evt = v + e^v (Section 7.3.1). Basics: every method ends with an integral
  7. Put v=xyv = \frac{x}{y} back: the general solution

    Move log⁡∣y∣\log|y| across and combine: log⁡∣y(v+ev)∣=log⁡∣C∣\log|y(v + e^v)| = \log|C|⁠, so y(v+ev)=±Cy(v + e^v) = \pm C⁠. Writing CC for ±C\pm C (still an arbitrary constant) and v=xyv = \frac{x}{y}⁠:

    y(xy+ex/y)=C,y\left(\frac{x}{y} + e^{x/y}\right) = C,

    that is,

    x+yexy=C.…(2)x + ye^{\frac{x}{y}} = C.\quad\ldots(2)
    Two numbers with the same absolute value are equal up to sign, and the sign can be absorbed into the arbitrary constant. Now the case set aside in Step 5: C=0C = 0 gives y(v+ev)=0y\left(v + e^v\right) = 0⁠, and since y≠0y \ne 0 this means v=αv = \alpha⁠, the line x=αyx = \alpha y⁠. So (2), with CC any real number, contains every solution. It holds wherever y≠0y \ne 0⁠.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Check by substituting back

    Differentiate (2) with respect to yy⁠, with xx a function of yy and ddyxy=yx′−xy2\frac{d}{dy}\frac{x}{y} = \frac{yx' - x}{y^2}⁠:

    x′+ex/y+yex/y⋅yx′−xy2=0x′+ex/y+ex/y(x′−xy)=0(1+ex/y)x′+ex/y(1−xy)=0,\begin{aligned} x' + e^{x/y} + ye^{x/y}\cdot\frac{yx' - x}{y^2} &= 0 \\ x' + e^{x/y} + e^{x/y}\left(x' - \frac{x}{y}\right) &= 0 \\ \left(1 + e^{x/y}\right)x' + e^{x/y}\left(1 - \frac{x}{y}\right) &= 0, \end{aligned}

    which is the given equation (multiply by dydy⁠), for every CC⁠.

    Getting the equation back proves the answer. For C=0C = 0 the check covers the line x=αyx = \alpha y too: there x′=αx' = \alpha and eα=−αe^{\alpha} = -\alpha⁠, so the left side is α(1−α)−α(1−α)=0\alpha(1 - \alpha) - \alpha(1 - \alpha) = 0⁠.
    Implicit differentiation, product and chain rules (Chapter 5). Basics: a rule for slopes
Result

The equation is homogeneous, since F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠. Its general solution is x+yexy=Cx + ye^{\frac{x}{y}} = C⁠, where CC is an arbitrary constant (y≠0y \ne 0⁠); C=0C = 0 gives the line x=αyx = \alpha y⁠, α≈−0.567\alpha \approx -0.567⁠. (Textbook answer: yexy+x=Cye^{\frac{x}{y}} + x = C⁠.)

Check it with numbers

Take the curve through (0,1)(0, 1)⁠: there 0+1⋅e0=C0 + 1\cdot e^0 = C⁠, so C=1C = 1⁠. At y=2y = 2⁠, solving x+2ex/2=1x + 2e^{x/2} = 1 numerically gives x≈−0.5324972x \approx -0.5324972⁠. Then xy≈−0.2662486\frac{x}{y} \approx -0.2662486⁠, ex/y≈0.7662486e^{x/y} \approx 0.7662486⁠, and x+2ex/yx + 2e^{x/y} ≈−0.5324972+1.5324972\approx -0.5324972 + 1.5324972 =1.0000000= 1.0000000⁠.

The equation gives dxdy≈−0.54933\frac{dx}{dy} \approx -0.54933 there. The curve itself: x(2.001)≈−0.5330465595x(2.001) \approx -0.5330465595 and x(1.999)≈−0.5319478906x(1.999) \approx -0.5319478906⁠, a difference of −0.0010986689-0.0010986689⁠, so

−0.00109866890.002≈−0.54933.\frac{-0.0010986689}{0.002} \approx -0.54933.
Common mistakes
  1. Putting y=vxy = vx out of habit. The ratio here is xy\frac{x}{y}⁠; y=vxy = vx turns it into 1v\frac{1}{v} and the integral becomes much harder.
  2. Differentiating x=vyx = vy with respect to xx⁠. Here yy is the variable: dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy}⁠.
  3. Missing that the top is the derivative of the bottom. 1+evv+ev\frac{1 + e^v}{v + e^v} integrates in one line to log⁡∣v+ev∣\log|v + e^v|⁠.
  4. Insisting on C≠0C \ne 0⁠. C=0C = 0 gives the line x=αyx = \alpha y⁠, which is a solution too.
What to take away
  1. Look at the ratio inside the functions: xy\frac{x}{y} means the dxdy\frac{dx}{dy} form and x=vyx = vy⁠.
  2. Before integrating a fraction, check whether its top is the derivative of its bottom.
  3. When you divide by something like v+evv + e^v⁠, find its zeros and see whether the final constant brings them back.

Every fact used, and where it comes from

FactUsed inSource
The form dxdy=F(x,y)\frac{dx}{dy} = F(x, y) and the substitution x=vyx = vySteps 1, 3Section 9.4.2, Note (Lesson)
Homogeneous function of degree zero; homogeneous equationStep 2Section 9.4.2 (Basics)
Product rule: ddy(vy)=v+ydvdy\frac{d}{dy}(vy) = v + y\frac{dv}{dy}Step 3Chapter 5, Section 5.3 (Basics)
Separating the variables; a solution set aside by the division is checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠) (Basics)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠; substitution t=v+evt = v + e^vStep 6Section 7.2, formula (xii); Section 7.3.1 (Basics)
One arbitrary constant for a first order equation, written as log⁡∣C∣\log|C|Steps 6, 7Chapter Summary (Basics)
Implicit differentiation; quotient rule; (eu)′=eu u′(e^u)' = e^u\,u'Step 8Chapter 5, Sections 5.3 and 5.4 (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 →