Show that the given differential equation is homogeneous and then solve it.
(1+exy)dx+exy(1−xy)dy=0
Given, (1+exy)dx+exy(1−xy)dy=0
⇒dxdy=ex/y(xy−1)ex/y+1 ...(i)
Thus, the given differential equation is homogeneous
So, put xy=v i.e., x=vy⇒dxdy=v+ydvdy
Then, Eq. (i) becomes
v+ydvdy=ev(v−1)ev+1⇒ydvdy=ev(v−1)ev+1−v⇒ydvdy=vev−ev−vev−vev+1⇒ev+1ev+vdv=−1ydy
On integrating both sides, we get
∫ev+1ev+vdv=−∫1ydyPut ev+v=t⇒ev+1=dtdv⇒dv=dtev+1∴∫ev+1tdtev+1=−log|y|+logC⇒log|t|+log|y|=logC⇒log|ev+v|+log|y|=logC [∵t=ev+v]
⇒log|(ev+v)y|=logC⇒|(ev+y)|=C⇒(ev+v)y=C
So, put xy=v, we get
(ex/y+xy)y=C⇒yex/y+x=C
This is the required solution of the given differential equation.