Given
xdy=(ey−1)dx
Rewrite as
ey−1dy=xdx.
Integrating both sides:
∫ey−1dy=∫xdx.
Since
ey−11=1−e−ye−y,
let
u=1−e−y,du=e−ydy.
Then
∫ey−1dy=∫udu=ln∣u∣+C=ln∣1−e−y∣+C.
Also,
∫xdx=ln∣x∣+C.
Hence,
ln∣1−e−y∣=ln∣x∣+C.
Exponentiating both sides,
1−e−y=Cx.
Therefore, the general solution is
1−e−y=Cx.
Equivalently,
y=−ln(1−Cx).