The given differential equation is
(x+3y2)dxdy=y
⇒ydx=(x+3y2)dy
⇒ydydx=x+3y2
⇒ydydx−x=3y2
Dividing every term by y
(to make the coefficient of dydx unity),
dydx−y1x=3y
This is the standard form of a linear differential equation.
Linear Differential Equation
Comparing with
dydx+Px=Q,
we have
P=−y1,Q=3y
Integrating Factor
∫Pdy=−∫y1dy=−logy=logy−1
I.F.=e∫Pdy=elogy−1=y−1=y1
General Solution
x(I.F.)=∫Q(I.F.)dy+c
⇒x⋅y1=∫3y⋅y1dy+c
⇒yx=3∫1dy+c
⇒yx=3y+c
Final Solution
Cross-multiplying,
x=3y2+cy
x=3y2+cy
which is the required general solution.