(First Method)
The given differential equation is
ydx+xlog(xy)dy−2xdy=0
⇒ydx=2xdy−xlog(xy)dy
or
ydx=x(2−log(xy))dy
Dividing both sides by dx,
dxdy=2−log(y/x)y/x=F(xy)(i)
Since
dxdy=F(xy),
the given differential equation is homogeneous.
Substitution
Put
xy=v⇒y=vx
so that
dxdy=v+xdxdv
Substituting in (i)
v+xdxdv=2−logvv
⇒xdxdv=2−logvv−v
=2−logvv−2v+vlogv=2−logvv(logv−1)
Separating Variables
x(2−logv)dv=v(logv−1)dx
⇒v(logv−1)2−logvdv=xdx
or
(v(logv−1)1−v1)dv=xdx
Integrating both sides
∫(v(logv−1)1−v1)dv=∫xdx
⇒log∣logv−1∣−log∣v∣=log∣x∣+log∣c∣
⇒logvlogv−1=log∣cx∣
⇒vlogv−1=cx
Substituting v=xy
log(xy)−1=cx(xy)
or
log(xy)−1=Cy
This is a primitive (solution) of the given differential equation.
Second Method
The given differential equation is
ydx+xlog(xy)dy−2xdy=0
Dividing every term by dy,
ydydx+xlog(xy)−2x=0
Using
log(xy)=logy−logx
Dividing every term by y,
dydx−yxlog(yx)−2yx=0
⇒dydx=yxlog(yx)+2yx=F(yx)(i)
Hence, the given differential equation is homogeneous.
Substitution
Put
yx=v⇒x=vy
so that
dydx=v+ydydv
Substituting in (i)
v+ydydv=vlogv+2v
⇒ydydv=v(logv+1)
Separating Variables
v(logv+1)dv=ydy
Integrating both sides
∫v(logv+1)1dv=∫y1dy
⇒log∣logv+1∣=log∣y∣+log∣c∣
⇒logv+1=Cy
Substituting v=yx
log(yx)+1=Cy
or
−log(xy)+1=Cy
Dividing by −1,
log(xy)−1=C1y
which is a primitive (solution) of the given differential equation.