Show that the given differential equation is homogeneous and then solve it.
(x-y)dy-(x+y)dx=0.
Given, ⇒(x−y)dy=(x+y)dx⇒dydx=x+yx−y ...(i)
Thus, the given differential equation is homogeneous.
So put y=vx⇒dydx=v+xdvdx
On putting values of dydx and y in Eq.(i), we get
v+xdvdx=x+vxx−vx⇒v+xdvdx=1+v1−v⇒xdvdx=1+v1−v−v⇒xdvdx=1+v−v+v21−v⇒1−v1+v2dv=dxx
On integrating both sides, we get
∫1−v1+v2dv=∫dxx⇒∫11+v2dv−∫v1+v2dx=log|x|+CLet 1+v2=t⇒2v=dtdv⇒dv=dt2v′ ∴tan−1v−∫vt×dt2v=log|x|+C⇒tan−1v−12log|t|=log|x|+C⇒2tan−1v−[log(1+v2)+2log(x)]=2C (Put t=1+v2)
⇒2tan−1v−log[(1+v2)x2]=2C
⇒2tan−1yx−log[(x2+y2x2)x2]=2C (Put v=yx)
⇒2tan−1yx−log(x2+y2)=2C⇒tan−1yx−12log(x2+y2)=C
This is the required solution of the given differential equation.