We are given:
2yex/ydx+(y−2xex/y)dy=0
Rearranging to express dydx:
dydx=−2yex/y(y−2xex/y)
=2yex/y2xex/y−y
=yx−2ex/y1
The repeated appearance of x/y suggests the substitution v=x/y.
Let v=yx, so x=vy.
dydx=v+ydydv
Substituting into the equation:
v+ydydv=v−2ev1
ydydv=−2ev1
2evdv=−ydy
∫2evdv=−∫ydy
2ev=−ln∣y∣+C
Substituting back v=x/y:
2ex/y+ln∣y∣=C
At x=1, y=1:
2e1/1+ln∣1∣=C
2e+0=C
C=2e
2ex/y+ln∣y∣=2e
ln∣y∣+2ex/y−2e=0
ln∣y∣+2(ex/y−e)=0