Lets take the given differential equation
(1+exy)dx+exy(1−xy)dy=0
It can be written as
dxdy=exy(xy−1)(1+exy) ...(1)
R.H.S. is a function of x and y
∴dxdy=f(x,y)=exy(xy−1)(1+exy)
Put x=λx and y=λy, we get
f(λx,λy)=eλxλy(λxλy−1)(1+eλxλy)
⇒f(λx,λy)=λ0⎡⎢
⎢
⎢
⎢⎣exy(xy−1)(1+exy)⎤⎥
⎥
⎥
⎥⎦
⇒f(λx,λy)=λ0f(x,y)
∴f(x,y) is a homogeneous function of degree zero.
Hence, the given differential equation is homogeneous differential equation.
To solve this homogeneous differential equation,
Put x=vy
Differentiate on both sides,
dxdy=v+ydvdy
Hence eqn(1) becomes,
v+ydvdy=ev(v−1)(1+ev)
⇒ydvdy=ev(v−1)−v(1+ev)(1+ev)
⇒ydvdy=−(ev+v)(1+ev)
On saparating the variables,
(1+ev)(v+ev)dv=−dyy
Integrate on both sides,
∫(1+ev)(v+ev)dv=−∫dyy
⇒log(v+ev)=−logy+logC (∵∫f′(x)f(x)dx=log(f(x)))
⇒log(ev+v)=logCy
Take anti-log on both sides,
⇒(ev+v)=Cy
⇒y(exy+xy)=C
To find the value of C,
put x=0 and y=1 we get, C=1.
∴x+yexy=1