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

Example 12: Homogeneous in xy\frac{x}{y}⁠: 2yex/ydx+(y−2xex/y)dy=02ye^{x/y}dx + (y - 2xe^{x/y})dy = 0⁠, x=0x = 0 when y=1y = 1

ExamplesHomogeneous differential equations, particular solution · Section 9.4.2
The question

Show that the differential equation 2yexydx+(y−2xexy)dy=02ye^{\frac{x}{y}}dx + \left(y - 2xe^{\frac{x}{y}}\right)dy = 0 is homogeneous and find its particular solution, given that, x=0x = 0 when y=1y = 1⁠.

Exam answer

The equation can be written as

dxdy=2xex/y−y2yex/y=F(x,y)\frac{dx}{dy} = \frac{2xe^{x/y} - y}{2ye^{x/y}} = F(x, y)

Replacing xx by λx\lambda x and yy by λy\lambda y⁠,

F(λx,λy)=λ(2xex/y−y)λ(2yex/y)=λ0⋅F(x,y)\begin{aligned} &F(\lambda x, \lambda y) \\ &= \frac{\lambda\left(2xe^{x/y} - y\right)}{\lambda\left(2ye^{x/y}\right)} \\ &= \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=2vev−12evydvdy=2vev−12ev−v=−12ev\begin{aligned} v + y\frac{dv}{dy} &= \frac{2ve^v - 1}{2e^v} \\ y\frac{dv}{dy} &= \frac{2ve^v - 1}{2e^v} - v \\ &= -\frac{1}{2e^v} \end{aligned}

Separating the variables,

2ev dv=−dyy2e^v\,dv = -\frac{dy}{y}

Integrating both sides,

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

Putting v=xyv = \frac{x}{y}⁠,

2ex/y+log⁡∣y∣=C…(i)2e^{x/y} + \log|y| = C\quad\ldots(\text{i})

Putting x=0x = 0⁠, y=1y = 1 in (i): 2e0+log⁡1=C2e^0 + \log 1 = C⁠, so C=2C = 2⁠.

∴\therefore The particular solution is 2ex/y+log⁡∣y∣=22e^{x/y} + \log|y| = 2⁠.

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

The one idea this problem is built on

Here xx and yy meet inside the exponential only as the ratio xy\frac{x}{y}⁠, and the other terms 2y2y⁠, yy and 2x2x all have degree 1. So the equation is homogeneous, but it is the ratio xy\frac{x}{y} (not yx\frac{y}{x}⁠) that appears. The book's Note in Section 9.4.2 covers exactly this case: write the equation as dxdy=F(x,y)\frac{dx}{dy} = F(x, y)⁠, treat xx as the unknown function of yy⁠, and put x=vyx = vy⁠. Then the condition "x=0x = 0 when y=1y = 1" picks one curve of the family.

Given, to find, and the plan
Given
2yex/ydx+(y−2xex/y)dy=02ye^{x/y}dx + \left(y - 2xe^{x/y}\right)dy = 0⁠, with y≠0y \ne 0 (so that xy\frac{x}{y} is defined), and x=0x = 0 when y=1y = 1⁠.
To show and find
That the equation is homogeneous; then the particular solution through (0,1)(0, 1)⁠.
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 one constant. (7) Put v=xyv = \frac{x}{y} back. (8) Use the condition to find CC⁠. (9) Check, and see the curve.

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⁠. Lesson: homogeneous equations, put y = vx

3Two standard integrals

∫ev dv=ev+C\int e^v\,dv = e^v + C and ∫dyy=log⁡∣y∣+C\int\frac{dy}{y} = \log|y| + C (Section 7.2, formulas (xi) and (xii)). Basics: every method ends with an integral

4General and particular solutions

The general solution carries one arbitrary constant; a condition such as "x=0x = 0 when y=1y = 1" fixes it and gives a particular solution (Section 9.3). Lesson: general and particular solutions

Solution

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

    Move the dydy term across and divide by 2yex/y dy2ye^{x/y}\,dy⁠:

    2yex/y dx=(2xex/y−y)dydxdy=2xex/y−y2yex/y=F(x,y).…(1)\begin{aligned} 2ye^{x/y}\,dx &= \left(2xe^{x/y} - y\right)dy \\ \frac{dx}{dy} &= \frac{2xe^{x/y} - y}{2ye^{x/y}} \\ &= F(x, y).\quad\ldots(1) \end{aligned}
    The divisor 2yex/y2ye^{x/y} is never 0, because y≠0y \ne 0 and an exponential is always positive. We choose dxdy\frac{dx}{dy} rather than dydx\frac{dy}{dx} because the ratio inside the exponential is xy\frac{x}{y}⁠: with x=vyx = vy it becomes simply eve^v⁠. (The dydx\frac{dy}{dx} form would also need y−2xex/y≠0y - 2xe^{x/y} \ne 0⁠, 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 the exponentials do not change:

    F(λx,λy)=2λxex/y−λy2λyex/y=λ(2xex/y−y)λ(2yex/y)=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{2\lambda xe^{x/y} - \lambda y}{2\lambda ye^{x/y}} \\ &= \frac{\lambda\left(2xe^{x/y} - y\right)}{\lambda\left(2ye^{x/y}\right)} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

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

    Outside the exponentials, the top 2xex/y−y2xe^{x/y} - y and the bottom 2yex/y2ye^{x/y} both have degree 1, so one factor λ\lambda comes out of each and cancels. 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}⁠. In (1), cancelling yy from top and bottom:

    v+ydvdy=2vyev−y2yev=2vev−12ev.v + y\frac{dv}{dy} = \frac{2vye^v - y}{2ye^v} = \frac{2ve^v - 1}{2e^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=2vev−12ev−v=2vev−1−2vev2ev=−12ev.\begin{aligned} y\frac{dv}{dy} &= \frac{2ve^v - 1}{2e^v} - v \\ &= \frac{2ve^v - 1 - 2ve^v}{2e^v} = -\frac{1}{2e^v}. \end{aligned}
    Writing vv over the common denominator 2ev2e^v⁠, the 2vev2ve^v terms cancel. What is left has vv on one side and yy on the other, 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

    2ev dv=−dyy.2e^v\,dv = -\frac{dy}{y}.
    Multiply both sides by 2ev2e^v and by dyy\frac{dy}{y} (y≠0y \ne 0⁠). Now the left side has only vv⁠, the right side only yy⁠.
    Separating, as in Section 9.4.1. Basics: dy = y′ dx
  6. Integrate, with one constant

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

    where CC is an arbitrary constant.

    Each side gives its own constant, but their difference is still just one arbitrary number, so one CC on the right is enough. A first-order equation has exactly one arbitrary constant in its general solution.
    Section 7.2, formulas (xi) and (xii). Basics: one constant for order 1
  7. Put v=xyv = \frac{x}{y} back: the general solution

    2ex/y+log⁡∣y∣=C.…(2)2e^{x/y} + \log|y| = C.\quad\ldots(2)
    The answer must be in the original variables. Moving log⁡∣y∣\log|y| to the left gives the book's form.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Use the condition: x=0x = 0 when y=1y = 1

    Putting x=0x = 0⁠, y=1y = 1 in (2):

    2e0+log⁡∣1∣=C⇒ 2+0=C  ⇒  C=2.\begin{aligned} 2e^0 + \log|1| &= C \\ \Rightarrow\ 2 + 0 &= C \;\Rightarrow\; C = 2. \end{aligned}

    So the particular solution is

    2ex/y+log⁡∣y∣=2.2e^{x/y} + \log|y| = 2.
    The condition says the curve passes through the point (x,y)=(0,1)(x, y) = (0, 1)⁠. Of all the curves (2), only the one with C=2C = 2 does. Note the order in the question: it gives xx "when y=1y = 1", because here xx is the function and yy the variable.
    Section 9.3: a particular solution from the general one. Lesson: general and particular solutions
  9. Check by substituting back, and see the curve

    Check: differentiate (2) with respect to yy⁠, with xx a function of yy (quotient rule for xy\frac{x}{y}⁠):

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

    which is (1), for every CC⁠. So (2) solves the equation, and the particular solution passes through (0,1)(0, 1) since 2e0+log⁡1=22e^0 + \log 1 = 2⁠.

    Where the particular solution lives. It passes through y=1>0y = 1 > 0⁠, so on it y>0y > 0 and log⁡∣y∣=log⁡y\log|y| = \log y⁠. Then ex/y=1−12log⁡ye^{x/y} = 1 - \frac12\log y⁠, which must be positive, so log⁡y<2\log y < 2⁠, that is 0<y<e20 < y < e^2⁠. On that interval

    x=ylog⁡(1−12log⁡y).x = y\log\left(1 - \tfrac12\log y\right).
    X Y X′ (0, 1) particular solution O
    Direction field of dxdy=F(x,y)\frac{dx}{dy} = F(x, y) for y>0y > 0⁠, with equal scales, and the particular solution x=ylog⁡(1−12log⁡y)x = y\log\left(1 - \frac12\log y\right) through (0,1)(0, 1)⁠. As y→0+y \to 0^+ the curve runs into the origin (hollow dot: y=0y = 0 is not allowed); as yy rises towards e2≈7.39e^2 \approx 7.39 it runs off to the left.
    Getting the equation back proves the answer. The explicit form shows the facts the implicit answer hides: the curve exists only for 0<y<e20 < y < e^2⁠, it reaches its largest xx (about 0.15, near y=0.43y = 0.43⁠), and then crosses the yy-axis at (0,1)(0, 1)⁠.
    Implicit differentiation and the quotient rule (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 2ex/y+log⁡∣y∣=C2e^{x/y} + \log|y| = C (y≠0y \ne 0⁠), and the particular solution with x=0x = 0 when y=1y = 1 is 2ex/y+log⁡∣y∣=22e^{x/y} + \log|y| = 2⁠, that is x=ylog⁡(1−12log⁡y)x = y\log\left(1 - \frac12\log y\right) for 0<y<e20 < y < e^2⁠. (Textbook answer: 2exy+log⁡∣y∣=22e^{\frac{x}{y}} + \log|y| = 2⁠.)

Check it with numbers

Take y=2y = 2⁠. Then log⁡2≈0.6931472\log 2 \approx 0.6931472⁠, so 1−12log⁡2≈0.65342641 - \frac12\log 2 \approx 0.6534264 and the curve has x=2log⁡(0.6534264)≈−0.8510507x = 2\log(0.6534264) \approx -0.8510507⁠. So xy≈−0.4255254\frac{x}{y} \approx -0.4255254⁠, ex/y≈0.6534264e^{x/y} \approx 0.6534264⁠, and 2ex/y+log⁡22e^{x/y} + \log 2 ≈1.3068528+0.6931472\approx 1.3068528 + 0.6931472 =2.0000000= 2.0000000⁠.

The equation gives dxdy=2xex/y−y2yex/y≈−1.19072\frac{dx}{dy} = \frac{2xe^{x/y} - y}{2ye^{x/y}} \approx -1.19072 there. The curve itself: x(2.001)≈−0.8522417836x(2.001) \approx -0.8522417836 and x(1.999)≈−0.8498603386x(1.999) \approx -0.8498603386⁠, so

−0.8522417836+0.84986033860.002≈−1.19072.\begin{aligned} &\frac{-0.8522417836 + 0.8498603386}{0.002} \\ &\approx -1.19072. \end{aligned}
Common mistakes
  1. Putting y=vxy = vx out of habit. It works in principle, but the exponent becomes 1v\frac{1}{v} and the integral is much harder. The ratio in the equation is xy\frac{x}{y}⁠, so put x=vyx = vy⁠.
  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. Losing the minus sign in ydvdy=−12evy\frac{dv}{dy} = -\frac{1}{2e^v}⁠, which turns +log⁡∣y∣+\log|y| into −log⁡∣y∣-\log|y|⁠.
  4. Swapping the condition: "x=0x = 0 when y=1y = 1" is the point (0,1)(0, 1)⁠, not (1,0)(1, 0)⁠.
What to take away
  1. Look at the ratio inside the functions: yx\frac{y}{x} means y=vxy = vx⁠; xy\frac{x}{y} means dxdy\frac{dx}{dy} form and x=vyx = vy⁠.
  2. The steps are the same either way: show degree zero, substitute, simplify to a separable equation, integrate with one constant, put the ratio back.
  3. A particular solution comes from the general one by putting in the given point; then check it by differentiating 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 variablesStep 5Section 9.4.1 (Basics)
∫ev dv=ev+C\int e^v\,dv = e^v + C⁠; ∫dyy=log⁡∣y∣+C\int\frac{dy}{y} = \log|y| + CStep 6Section 7.2, formulas (xi) and (xii) (Basics)
Particular solution from a given pointStep 8Section 9.3 (Lesson)
Implicit differentiation; quotient rule; (eu)′=eu u′(e^u)' = e^u\,u'Step 9Chapter 5, Sections 5.3, 5.3.2 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 →