Take logarithms of both sides.
xlogy=y−x…(i)
A useful rearrangement. Collecting the x terms in (i):
x(1+logy)=y⟹x=1+logyy…(ii)
Differentiate (i) with respect to x, with the product rule on the left:
logy+x⋅y1dxdy=dxdy−1
Collecting the derivative on one side:
1+logy=dxdy(1−yx)=dxdy⋅yy−x
dxdy=y−xy(1+logy)
Eliminate x using (ii).
y−x=y−1+logyy=1+logyy(1+logy)−y=1+logyylogy
Substituting,
dxdy=1+logyylogyy(1+logy)=logy(1+logy)2
as required. Note that the answer is free of x, which is why step (ii) was needed: leaving y−x in the denominator would have been an incomplete answer.