The given differential equation is
{xcos(xy)+ysin(xy)}ydx={ysin(xy)−xcos(xy)}xdy
Dividing both sides by dx,
dxdy=(ysinxy−xcosxy)x(xcosxy+ysinxy)y
=xysinxy−x2cosxyxycosxy+y2sinxy
Dividing numerator and denominator by x2,
dxdy=xysinxy−cosxyxycosxy+(xy)2sinxy=F(xy)(i)
∴The given differential equation is homogeneous.
Substitution
Let
xy=v⇒y=vx
⇒dxdy=v+xdxdv
Substituting in (i)
v+xdxdv=vsinv−cosvvcosv+v2sinv
⇒xdxdv=vsinv−cosvvcosv+v2sinv−v
=vsinv−cosvvcosv+v2sinv−v2sinv+vcosv
=vsinv−cosv2vcosv
Separating Variables
xdxdv=vsinv−cosv2vcosv
⇒x(vsinv−cosv)dv=2vcosvdx
⇒vcosvvsinv−cosvdv=2xdx
Integrating both sides
∫vcosvvsinv−cosvdv=2∫x1dx
Using
ca−b=ca−cb
∫(tanv−v1)dv=2∫x1dx
⇒log∣secv∣−log∣v∣=2log∣x∣+log∣c∣
⇒logvsecv=log∣x∣2+log∣c∣
⇒vsecv=∣c∣x2
Substituting v=xy
sec(xy)=Cx2xywhere C=±∣c∣
⇒sec(xy)=Cxy
⇒cos(xy)1=Cxy
⇒Cxycos(xy)=1
Required Solution
xycos(xy)=C1