Given differential equation: ydx−(x+2y2)dy=0
ydx=(x+2y2)dy
dydx=yx+2y2
dydx=yx+2y
dydx−yx=2y
This is in the standard linear form dydx+P(y)⋅x=Q(y) where P(y)=−y1 and Q(y)=2y
The integrating factor is:
IF=e∫P(y)dy
IF=e∫−y1dy
IF=e−lny
IF=elny−1
IF=y1
y1⋅dydx−y1⋅yx=y1⋅2y
y1dydx−y2x=2
The left side is the derivative of yx:
dyd(yx)=2
∫dyd(yx)dy=∫2dy
yx=2y+C
x=2y2+Cy
Therefore, the general solution is x=2y2+Cy where C is the constant of integration.