Solution
Given,
xdy−ydx=x2+y2dx
Step 1: Check whether the equation is homogeneous
Dividing throughout by dx,
xdxdy−y=x2+y2
Therefore,
dxdy=xx2+y2+y
=1+(xy)2+xy
Thus,
dxdy=f(xy),
so it is a homogeneous differential equation.
Step 2: Substitute y=vx
Put
y=vx
Then,
dxdy=v+xdxdv.
Substituting,
v+xdxdv=1+v2+v
Therefore,
xdxdv=1+v2
Separating the variables,
1+v2dv=xdx.
Step 3: Integrate
Integrating both sides,
∫1+v2dv=∫xdx
logv+1+v2=log∣x∣+logK,K>0.
Hence,
logv+1+v2=log∣Kx∣.
Therefore,
v+1+v2=Cx,
where C is an arbitrary constant.
Step 4: Substitute v=xy
xy+1+x2y2=Cx
Multiplying by x,
y+x2+y2=Cx2.
Hence, the required general solution is
y+x2+y2=Cx2.