Given differential equation :
(x+3y2)dydx=y
dxdy=x+3y2y
dxdy−xy=3y
Given differential equation is of the form
dxdy+Px=Q
By comparing both the equations, we get
P=−1y and Q=3y
The general solution of the given differential equation is
x(I.F)=∫(Q×I.F.)dy+c ....(i)
Firstly, we need to find I.F.
I.F.=e∫pdx
I.F.=e∫−1ydy
I.F.=e−logy
I.F.=elogy−1
I.F.=1y (∵elogy=y)
Substituting the value of I.F. and Q in (i),
x×1y=∫3y×1y. dy
xy=∫3dy+c
xy=3y+c
x=3y2+cy
Hence, the required general solution isx=3y2+cy