The general solution of the differential equation exdy+(yex+2x)dx=0 is
a) xey+x2=C
b) xey+y2=C
c) yex+x2=C
d) yey+x2=C
Given, differential equation is exdy+(yex+2x)dx=0
⇒exdydx+yex+2x=0⇒dydx+y=−2xe−x
This is a linear differential equation of the form
dydx+Py=Q
On comparing, P=1 and Q=−2xe−x∴IF=e∫1dx=ex
The generalsolution of the given differential equation is given by
y.IF=∫(−2xe−x×ex)dx+C⇒yex=−∫2xdx+C⇒yex=−x2+C⇒yex+x2+C, Hence, the correct option is (c).