Question
Mathematics Question on Differential equations
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
Answer
yex+x2=C
Explanation
Solution
The given differential equation is:
exdy+(yex+2x)dx=0
⇒exdxdy=yex+2x=0
⇒dxdy+y=−2xe−x
This is a linear differential equation of the form
dxdy+py=Q,wherep=1andQ=−2xe−x.
Now,I.F.=e∫pdx=e∫dx=ex.
The general solution of the given differential equation is given by,
y(I.F.)=∫(Q×I.F.)dx+C
⇒yex=∫(−2xe−x.ex)dx+C
⇒yex=−∫2xdx+C
⇒yex=−x2+C
⇒yex+x2=C
Hence,the correct answer is C.