Given, differential equation isxdxdy=y−xtan(xy)⇒dxdy=xy−tan(xy) . . . (i)Put y=vx⇒dxdy=v+xdxdv in Eq. (i), we getv+xdxdv=v−tanv⇒xdxdv=v−tanv−v=−tanv⇒tanvdv=−xdx⇒sinvcosvdv=x−dxOn integrating both sides, we get∫sinvcosvdv=−∫xdx⇒log(sinv)=−logx+logC⇒log(sinv)+logx=logC⇒log(xsinv)=logC⇒(∵logm+logn=logmn)xsinv=COn putting v=xy, we getxsin(xy)=Cwhich is the required solution.