We've yeydx=(y3+2xey)dy,y(0)=1 ⇒dxdy=y3+2xeyyey ⇒dxdy+(−2y)x=y2ey.
As this diff. eq. is in the form dxdy+P(y)x=Q(y) so, P(y)=−2y,Q(y)=y2ey.
Now I.F. =e∫−2ydy=e−2 log y=1y2.
Hence solution is, x(1y2)=∫1y2×y2eydy+C⇒xy2=−1ey+C.
As y(0) = 1 so, 012=−1e1+C ⇒C=1e.
Hence the required particular solution is xy2=−1ey+1e or, x=y2(e−1−e−y)