The given differential equation is
(x+y)dy+(x−y)dx=0,y=1 when x=1(i)
It looks to be a homogeneous differential equation because each coefficient of
dx and dy is of the same degree (here, degree =1).
From (i),
(x+y)dy=−(x−y)dx
⇒dxdy=−x+yx−y=y+xy−x
Dividing numerator and denominator by x,
dxdy=xy+1xy−1=f(xy)(ii)
∴The given differential equation is homogeneous.
Put
xy=v⇒y=vx
⇒dxdy=v+xdxdv
v+xdxdv=v+1v−1
⇒xdxdv=v+1v−1−v=v+1v−1−v(v+1)=−v+1v2+1
xdxdv=−v+1v2+1
⇒x(v+1)dv=−(v2+1)dx
⇒v2+1v+1dv=−xdx
Integrating both sides
∫v2+1vdv+∫v2+11dv=−∫x1dx
⇒21∫v2+12vdv+tan−1v=−logx+c
⇒21log(v2+1)+tan−1v=−logx+c
Substituting v=xy
21log(x2y2+1)+tan−1(xy)=−logx+c
⇒21log(x2x2+y2)+tan−1(xy)=−logx+c
⇒21log(x2+y2)−21logx2+tan−1(xy)=−logx+c
⇒21log(x2+y2)+tan−1(xy)=c(iii)
Finding the Constant c
Given y=1 when x=1.
Substituting in (iii),
21log2+tan−11=c
⇒c=21log2+4π
Required Particular Solution
Substituting c in (iii),
21log(x2+y2)+tan−1(xy)=21log2+4π
Multiplying throughout by 2,
log(x2+y2)+2tan−1(xy)=log2+2π