The solution of the differential equation x dydx+y=x2+3x+2 is
x dydx+y=x2+3x+2⇒dydx+yx=x+32x Here P=1x,Q=x+3+2x, therefore I.F.=e∫ 1xdx=x Now solve it.