The given differential equation is
x2dxdy=x2−2y2+xy
The given differential equation looks to be homogeneous as all terms in x and y are of the same degree (here, degree =2).
Dividing both sides by x2,
dxdy=x2x2−x22y2+x2xy
⇒dxdy=1−2(xy)2+(xy)=F(xy)(i)
∴Differential equation (i) is homogeneous.
Substitution
Put
xy=v⇒y=vx
⇒dxdy=v+xdxdv
Substituting in (i)
v+xdxdv=1−2v2+v
⇒xdxdv=1−2v2
⇒xdv=(1−2v2)dx
Separating Variables
1−2v2dv=xdx
Integrating both sides
∫1−(2v)21dv=∫x1dx
⇒221log1−2v1+2v=log∣x∣+c
[∵∫a2−x21dx=2a1loga−xa+x]
Substituting v=xy
221log1−2xy1+2xy=log∣x∣+c
Multiplying numerator and denominator inside the logarithm by x,
221logx−2yx+2y=log∣x∣+c
Required Solution
221logx−2yx+2y=log∣x∣+c