The general solution of the differential equation \(x\,dy+(y-e^x)\,dx=0\) is :
where C is constant of integration
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(xy-e^x=C\)
Opening the bracket and moving \(e^x\,dx\) to the right:
\(x\,dy + y\,dx = e^x\,dx\)
By the product rule, \(x\,dy + y\,dx = d(xy)\):
\(d(xy) = e^x\,dx\)
Integrating both sides:
\(xy = e^x + C\)
\(xy - e^x = C\)
The same result comes from the linear form \(\frac{dy}{dx} + \frac{y}{x} = \frac{e^x}{x}\), whose integrating factor is \(e^{\int\frac{1}{x}dx} = x\).