The given differential equation is
x2dy+(xy+y2)dx=0
or
x2dy=−y(x+y)dx
⇒dxdy=−x2y(x+y)=−xy(1+xy)=F(xy)(i)
∴The given differential equation is homogeneous.
Substitution
Put
xy=v⇒y=vx
Differentiating with respect to x,
dxdy=v+xdxdv
Substituting in (i)
v+xdxdv=−v(1+v)=−v−v2
Transposing v to RHS,
xdxdv=−v2−2v
or
xdxdv=−v(v+2)
⇒xdv=−v(v+2)dx
or
v(v+2)dv=−xdx
Integrating both sides
∫v(v+2)1dv=−∫x1dx
⇒21∫(v1−v+21)dv=−log∣x∣
⇒log∣v∣−log∣v+2∣=logx−2+log∣c∣
⇒logv+2v=logx2c
⇒v+2v=±x2c
Substituting v=xy
xy+2xy=±x2c
⇒y+2xy=±x2c
or
x2y=C(y+2x)where C=±c(ii)
Finding the Constant C
Given y=1 when x=1.
Substituting in (ii),
1=C(1+2)⇒1=3C⇒C=31
Required Particular Solution
Substituting C=31 in (ii),
x2y=31(y+2x)
or
3x2y=y+2x