The correct option is B xy−1=2y+c
(x+2y2)dydx=y
⇒ydxdy=x+2y2
⇒dxdy−xy=2y
which is a linear differential equation with x as dependent variable.
Here, P=−1y,Q=2y
Integrating factor I.F.=e∫Pdy
=e∫−1ydy=e−logy=1y
I.F=1y
Solution of given differential eqn is
x(1y)=∫2y(1y)dy+c
⇒xy=2y+c
⇒xy−1=2y+c