Solution:
Concept: Since logy−logx=logxy, the right side is a function of xy and the equation is homogeneous. We put y=vx; then dxdy=v+xdxdv. Here x>0 and y>0, because logx and logy appear.
Step 1 — Write dxdy in terms of xy.
We divide by x and combine the logs.
dxdy=xy(logxy+1)
Step 2 — Substitute y=vx.
We replace dxdy by v+xdxdv, and the v terms cancel.
v+xdxdv=v(logv+1)
xdxdv=vlogv
Step 3 — Separate the variables.
We divide by vlogv (with v=1) and by x.
vlogvdv=xdx
Step 4 — Integrate.
On the left we put logv=t, so vdv=dt and the integral is log∣t∣. We write the constant as logc.
log∣logv∣=logx+logc
logv=cx
Step 5 — Put back v=xy.
We take the exponential of both sides and multiply by x.
xy=ecx
y=xecx
Therefore, the general solution is y=xecx, where c is an arbitrary constant.