Given
(x2−y2)dx+2xydy=0.
Rearrange:
2xydxdy=−(x2−y2),
so
dxdy=2xyy2−x2.
Dividing numerator and denominator by x2,
dxdy=2(xy)(xy)2−1=g(xy).
Also, with F(x,y)=2xyy2−x2, F(λx,λy)=λ2⋅2xyλ2(y2−x2)=F(x,y), so F is homogeneous of degree zero and the given equation is a homogeneous differential equation.
Let
y=vx.
Then
dxdy=v+xdxdv.
Substituting:
v+xdxdv=2vv2−1.
Hence
xdxdv=−2vv2+1.
Separate variables:
v2+12vdv=−xdx.
Integrating:
∫v2+12vdv=−∫xdx.
Therefore,
ln(v2+1)=−ln∣x∣+C.
Hence
v2+1=xC.
Substituting v=y/x,
1+x2y2=xC.
Multiplying by x2,
x2+y2=Cx.
Therefore, the general solution is
x2+y2=Cx.