For the given differential equation find the general solution.
(x+3y2)dydx=y(y>0).
Given, (x+3y2)dydx=y ⇒ydxdy=x+3y2
On dividing by y both sides, we get
dxdy=xy+3y⇒dxdy−xy=3y
On comparing with the form dxdy+Px=Q, we get
P=−1y, Q=3y∴IF=e−∫1ydy⇒IF=e−logy=elog(y)−1=y−1=1y ...(i)
The general solution of the given differential equations is given by
x.IF=∫Q×IFdy+C⇒x.1y=∫1y×3ydy+C⇒xy=3y+C⇒x=3y2+Cy