A differential equation dxdy=F(x,y) is homogeneous when F(λx,λy)=λ0F(x,y), that is, when F depends only on xy. It is solved by the substitution y=vx, dxdy=v+xdxdv.
Given: (xey/x+y)dx=xdy, with y=0 when x=1. To find: the particular solution.
Step 1 — Show that it is homogeneous.
dxdy=xxey/x+y=ey/x+xy=F(x,y)
Then F(λx,λy)=eλy/λx+λxλy=λ0F(x,y), so F is homogeneous of degree zero and the equation is homogeneous.
Step 2 — Substitute y=vx.
v+xdxdv=ev+v⇒xdxdv=ev
Step 3 — Separate the variables and integrate.
e−vdv=xdx⇒−e−v=log∣x∣+C
Replacing v by xy, the general solution is −e−y/x=log∣x∣+C.
Step 4 — Use the condition. Put x=1, y=0: −e0=log1+C, so C=−1. Hence, for x>0,
e−y/x=1−logx
Step 5 — Write y explicitly. The left side is positive, so we need 1−logx>0, that is 0<x<e. Taking logarithms, −xy=log(1−logx).
Answer: e−y/x=1−logx, that is y=−xlog(1−logx) for 0<x<e.
Note: As x→e from the left, 1−logx→0+ and y→+∞, so the solution curve cannot be continued up to x=e.