For the given differential equation find the particular solution satisfying the given conditions.
(x+y)dy+(x-y)dx=0, y=1 when x=1.
Given, (x+y)dy+(x-y)dx=0 ⇒dydx=y−xx+y ...(i)
Thus, the given differential equations is homogeneous.
So, put yx=v i.e., y=vx⇒dydx=v+xdvdx
Then, Eq. (i) becomes v+xdvdx=vx−xx+vx
⇒v+xdvdx=x(v−1)x(1+v)⇒v+xdvdx=v−11+v
⇒xdvdx=v−11+v−v⇒xdvdx=v−1−v−v21+v⇒−xdvdx=1+v21+v⇒(v+1)1+v2=−1xdx
On integrating both sides, we get
∫(v+1)1+v2dv=−∫dxx⇒∫v1+v2dv+∫11+v2dv=−∫dxx
In first integarl, put
v2+1=t⇒2v=dtdv⇒dv=dt2v∴∫vt×dt2v+∫11+v2dv=−∫dxx⇒12∫1tdt+∫11+v2dv=−∫dxx⇒12log|t|+tan−1v=−log|x|+C [∵∫11+x2dx=tan−1x]
⇒12log|v2+1|+tan−1v=−log|x|+C [∵t=v2+1]
⇒12log(y2+x2x2)+log|x|+tan−1(yx)=C (Put v=yx)
⇒log(y2+x2x2)+2log|x|+2tan−1(yx)=2C⇒log(y2+x2x2)+logx2+2tan−1(yx)=2C⇒log(y2+x2)x2x2+2tan−1(yx)=2C⇒log(x2+y2)+2tan−1(yx)=A (∵tan−1(1)=pi4)
On putting the value of A in Eq. (ii), we get
log(x2+y2)+2tan−1(yx)=pi2+log2
This is the required solution of the given differential equation.