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

Miscellaneous · Q8: yex/y dx=(xex/y+y2) dyye^{x/y}\,dx = (xe^{x/y} + y^2)\,dy

Miscellaneous ExerciseSubstitution x = vy, then variables separable · Sections 9.4.1 and 9.4.2
The question

8. Solve the differential equation y exy dx=(x exy+y2)dyy\,e^{\frac{x}{y}}\,dx = \left(x\,e^{\frac{x}{y}} + y^2\right)dy (y≠0)(y \ne 0)⁠.

Exam answer

The equation can be written as

dxdy=xex/y+y2yex/y=xy+ye−x/y\begin{aligned} \frac{dx}{dy} &= \frac{xe^{x/y} + y^2}{ye^{x/y}} \\ &= \frac{x}{y} + ye^{-x/y} \end{aligned}

It is not homogeneous (the term y2y^2 has degree 2), but it involves xy\frac{x}{y}⁠, so we use the substitution x=vyx = vy⁠. Then dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy}⁠.

v+ydvdy=v+ye−vydvdy=ye−vdvdy=e−v(y≠0)\begin{aligned} v + y\frac{dv}{dy} &= v + ye^{-v} \\ y\frac{dv}{dy} &= ye^{-v} \\ \frac{dv}{dy} &= e^{-v}\quad(y \ne 0) \end{aligned}

The variables are now separable:

ev dv=dye^v\,dv = dy

Integrating both sides,

∫ev dv=∫dy ⇒ ev=y+C\int e^v\,dv = \int dy\ \Rightarrow\ e^v = y + C

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

∴\therefore ex/y=y+Ce^{x/y} = 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

The exponential contains xy\frac{x}{y}⁠, which suggests treating xx as the function of yy and putting x=vyx = vy⁠, as the Note of Section 9.4.2 does for homogeneous equations in xy\frac{x}{y}⁠. This equation is not homogeneous, because of the y2y^2 term, but the substitution still works: the vv-terms cancel and what is left, dvdy=e−v\frac{dv}{dy} = e^{-v}⁠, separates at once.

Given, to find, and the plan
Given
yex/y dx=(xex/y+y2)dyye^{x/y}\,dx = \left(xe^{x/y} + y^2\right)dy⁠, with y≠0y \ne 0⁠.
To find
Its general solution.
Plan
(1) Write it as dxdy=F(x,y)\frac{dx}{dy} = F(x, y)⁠. (2) Test for homogeneity (it fails). (3) Put x=vyx = vy all the same. (4) Simplify to dvdy=e−v\frac{dv}{dy} = e^{-v}⁠. (5) Separate and integrate, with one constant. (6) Put v=xyv = \frac{x}{y} back and state the domain. (7) Check by substituting back.

Basics you need

1The dxdy\frac{dx}{dy} form and x=vyx = vy

When the ratio xy\frac{x}{y} appears, write the equation as dxdy=F(x,y)\frac{dx}{dy} = F(x, y) and put x=vyx = vy⁠; then dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy} (Section 9.4.2, Note). Lesson: homogeneous equations, put y = vx

2Homogeneous functions

FF is homogeneous of degree zero when F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y) for every λ≠0\lambda \ne 0 (Section 9.4.2). Basics: scale x and y together

3Variables separable

dvdy=g(y) h(v)\frac{dv}{dy} = g(y)\,h(v) separates as dvh(v)=g(y) dy\frac{dv}{h(v)} = g(y)\,dy (Section 9.4.1). Lesson: variables separable

4∫ev dv\int e^v\,dv

∫ev dv=ev+C\int e^v\,dv = e^v + C (Section 7.2, formula (xi)), and e−v=1eve^{-v} = \frac{1}{e^v}⁠. Basics: e^{kt} and its rate

Solution

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

    Divide both sides by yex/y dyye^{x/y}\,dy⁠, which is not 0 because y≠0y \ne 0 and ex/y>0e^{x/y} > 0⁠:

    dxdy=xex/y+y2yex/y=xy+ye−x/y=F(x,y).…(1)\begin{aligned} \frac{dx}{dy} &= \frac{xe^{x/y} + y^2}{ye^{x/y}} \\ &= \frac{x}{y} + ye^{-x/y} = F(x, y).\quad\ldots(1) \end{aligned}
    We choose dxdy\frac{dx}{dy} because the divisor yex/yye^{x/y} is never 0, while the dydx\frac{dy}{dx} form would need xex/y+y2≠0xe^{x/y} + y^2 \ne 0⁠. Splitting the fraction: xex/yyex/y=xy\frac{xe^{x/y}}{ye^{x/y}} = \frac{x}{y} and y2yex/y=ye−x/y\frac{y^2}{ye^{x/y}} = ye^{-x/y}⁠.
    Section 9.4.2, Note: the form dxdy=F(x,y)\frac{dx}{dy} = F(x, y)⁠. Example 12 uses the same form
  2. Test for homogeneity: it fails

    For λ≠0\lambda \ne 0⁠, λxλy=xy\frac{\lambda x}{\lambda y} = \frac{x}{y}⁠, so

    F(λx,λy)=xy+λ ye−x/y.F(\lambda x, \lambda y) = \frac{x}{y} + \lambda\,ye^{-x/y}.

    This is not F(x,y)F(x, y) unless λ=1\lambda = 1 (for example at x=0x = 0⁠, y=1y = 1⁠: F(0,λ)=λF(0, \lambda) = \lambda⁠, but F(0,1)=1F(0, 1) = 1⁠). So the equation is not homogeneous.

    The terms yex/y dxye^{x/y}\,dx and xex/y dyxe^{x/y}\,dy have degree 1 outside the exponential, but y2 dyy^2\,dy has degree 2, and that mismatch breaks homogeneity. We still try x=vyx = vy⁠, because everything else depends only on xy\frac{x}{y}⁠.
    Section 9.4.2: definition of a homogeneous function. Basics: scale x and y together
  3. Substitute x=vyx = vy

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

    v+ydvdy=v+ye−v.v + y\frac{dv}{dy} = v + ye^{-v}.
    Here yy is the independent variable and xx⁠, hence vv⁠, depends on it. The first term xy\frac{x}{y} of FF becomes vv⁠, the second ye−vye^{-v}⁠.
    Section 9.4.2, Note: x=vyx = vy⁠. Lesson: homogeneous equations
  4. Simplify to dvdy=e−v\frac{dv}{dy} = e^{-v}

    The vv on each side cancels: ydvdy=ye−vy\frac{dv}{dy} = ye^{-v}⁠. Dividing by y≠0y \ne 0⁠,

    dvdy=e−v.\frac{dv}{dy} = e^{-v}.
    For a homogeneous equation the right side would become a function of vv alone. Here an extra factor yy appears, but it is the same factor that multiplies dvdy\frac{dv}{dy}⁠, so it cancels. The result is even simpler than usual: yy has gone completely.
    Simplifying as in Section 9.4.2, equation (4). Lesson: Miscellaneous exercise player
  5. Separate and integrate, with one constant

    Multiply by ev dye^v\,dy⁠:

    ev dv=dy,∫ev dv=∫dy,ev=y+C,\begin{aligned} e^v\,dv &= dy, \\ \int e^v\,dv &= \int dy, \\ e^v &= y + C, \end{aligned}

    where CC is an arbitrary constant.

    Now vv is on the left only and yy on the right only. Since ev>0e^v > 0⁠, we never divide by 0. One constant suffices for a first order equation.
    Section 9.4.1; Section 7.2, formula (xi). Basics: every method ends with an integral
  6. Put v=xyv = \frac{x}{y} back: the general solution

    ex/y=y+C.e^{x/y} = y + C.

    It lives where y≠0y \ne 0 and y+C>0y + C > 0 (an exponential is positive); there it gives x=ylog⁡(y+C)x = y\log(y + C)⁠.

    The answer must be in the original variables. Taking logarithms gives the explicit form xy=log⁡(y+C)\frac{x}{y} = \log(y + C)⁠, which shows the domain restriction plainly.
    eu>0e^u > 0 and log⁡\log is its inverse (Chapter 5, Section 5.4). Basics: e^{kt} and log
  7. Check by substituting back

    Differentiate ex/y=y+Ce^{x/y} = y + C with respect to yy⁠, with xx a function of yy (quotient rule for xy\frac{x}{y}⁠):

    ex/y⋅ydxdy−xy2=1,yex/ydxdy−xex/y=y2,yex/y dx=(xex/y+y2)dy,\begin{aligned} e^{x/y}\cdot\frac{y\frac{dx}{dy} - x}{y^2} &= 1, \\ ye^{x/y}\frac{dx}{dy} - xe^{x/y} &= y^2, \\ ye^{x/y}\,dx &= \left(xe^{x/y} + y^2\right)dy, \end{aligned}

    which is the given equation, for every CC⁠.

    Getting the equation back proves the answer. The same lines read backwards give a second solution: ex/y⋅y dx−x dyy2=dye^{x/y}\cdot\frac{y\,dx - x\,dy}{y^2} = dy says d(ex/y)=dyd\left(e^{x/y}\right) = dy⁠, which integrates at once.
    Implicit differentiation, quotient rule, (eu)′=euu′(e^u)' = e^u u' (Chapter 5). Basics: a rule for slopes
Result

The equation is not homogeneous, but x=vyx = vy reduces it to ev dv=dye^v\,dv = dy⁠. The general solution is

ex/y=y+C,e^{x/y} = y + C,

where y≠0y \ne 0 and y+C>0y + C > 0⁠. (Textbook answer: exy=y+Ce^{\frac{x}{y}} = y + C⁠.)

Check it with numbers

Take C=0C = 0⁠: ex/y=ye^{x/y} = y⁠, that is x=ylog⁡yx = y\log y for y>0y > 0⁠. At y=2y = 2⁠: x=2log⁡2≈1.386294x = 2\log 2 \approx 1.386294⁠, and xy=log⁡2\frac{x}{y} = \log 2⁠, so e−x/y=12e^{-x/y} = \frac12⁠. The equation gives

dxdy=log⁡2+2⋅12=1+log⁡2≈1.693147.\begin{aligned} \frac{dx}{dy} &= \log 2 + 2\cdot\tfrac12 \\ &= 1 + \log 2 \approx 1.693147. \end{aligned}

The curve itself: x(2.001)≈1.3879877583x(2.001) \approx 1.3879877583 and x(1.999)≈1.3846014640x(1.999) \approx 1.3846014640⁠. Their difference is

1.3879877583−1.3846014640=0.0033862943,\begin{aligned} &1.3879877583 - 1.3846014640 \\ &= 0.0033862943, \end{aligned}

and 0.0033862943÷0.002≈1.6931470.0033862943 \div 0.002 \approx 1.693147⁠, the slope the equation gives.

Common mistakes
  1. Calling the equation homogeneous. F(λx,λy)≠F(x,y)F(\lambda x, \lambda y) \ne F(x, y) because of y2y^2⁠; the substitution works for a different reason (the extra yy cancels).
  2. Putting y=vxy = vx⁠. The ratio in the exponent is xy\frac{x}{y}⁠, so x=vyx = vy is the substitution that makes the exponential simply eve^v⁠.
  3. Differentiating x=vyx = vy with respect to xx⁠. Here yy is the variable: dxdy=v+ydvdy\frac{dx}{dy} = v + y\frac{dv}{dy}⁠.
  4. Writing e−v dv=dye^{-v}\,dv = dy⁠. From dvdy=e−v\frac{dv}{dy} = e^{-v}⁠, multiplying by eve^v gives ev dv=dye^v\,dv = dy⁠.
What to take away
  1. A ratio xy\frac{x}{y} in the equation: try the dxdy\frac{dx}{dy} form and x=vyx = vy⁠.
  2. The substitution can help even when the equation is not homogeneous; test, do not assume.
  3. Combinations such as y dx−x dyy2=d(xy)\frac{y\,dx - x\,dy}{y^2} = d\left(\frac{x}{y}\right) are worth recognising.

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 zeroStep 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 (Lesson)
∫ev dv=ev+C\int e^v\,dv = e^v + CStep 5Section 7.2, formula (xi) (Basics)
eu>0e^u > 0⁠; log⁡\log inverts eeStep 6Chapter 5, Section 5.4 (Basics)
Implicit differentiation; quotient ruleStep 7Chapter 5, Sections 5.3 and 5.3.2 (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 →