Comparing above equation with first order linear differential equation ‌
dy
dx
+Py=Q We get P=‌
1
x
and Q=3x So integration factor I.F. =e∫Pdx=e∫(1∕x)‌dx=eln‌x=x Hence solution is given by, y(I.F)=. ∫‌ Q(I.F.)dx ‌ ⇒xy=∫3x2‌dx ⇒xy=x3+c ⇒y=x2+‌