The correct option is A y2=−1+(x+1)lncx+1
Given differential eqn
dydx=y2−x2y(x+1)
⇒dydx=y2(x+1)−x2y(x+1)
⇒dydx−y2(x+1)=−x2y(x+1) ....(1)
which is a Bernoulli's equation.
Multiplying eqn (1) by y, we get
ydydx−y22(x+1)=−x2(x+1) .....(2)
Put y2=z
2ydydx=dzdx
So, eqn (2) becomes
12dzdx−z2(x+1)=−x2(x+1)
⇒dzdx−z(x+1)=−x(x+1)
which is a linear differential equation with z as dependent variable.
Here, P=−1x+1;Q=−x(x+1)
Integrating factor I.F.=e∫Pdx
=e∫−1x+1dx
=e−log(x+1)
I.F.=1x+1
Solution of differential equation is given by
z1x+1=∫1x+1×−xx+1dx
z1x+1=−∫x+1−1(x+1)2dx
z1x+1=−log(x+1)−1(x+1)+logc
⇒z=(x+1)logc(x+1)−1
⇒y2=(x+1)logc(x+1)−1