General solution of xdydx+y=y2x3cosx , is
1xy+xsinx−cosx=c
1xy−xsinx+cosx=c
1xy+xcosx−sinx=c
1xy+xsinx+cosx=c
Given x⋅dydx+y=y2x3⋅cosx⇒(xdy+ydx)x2y2=x⋅cosxdx⇒d-1xy=x⋅cosxdx⇒−1xy=xsinx+cosx+c