The general solution of the differential equation \( \displaystyle\frac{dy}{dx}=e^{2x-y}+xe^{-y} \) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \( 2e^{y}=e^{2x}+x^2+C \): where C is an arbitrary constant
Taking \( e^{-y} \) common on the right, the variables separate:
\( \displaystyle \frac{dy}{dx}=e^{-y}\left(e^{2x}+x\right) \)
Multiplying both sides by \( e^{y} \):
\( \displaystyle e^{y}\,dy=\left(e^{2x}+x\right)dx \)
Integrating:
\( \displaystyle e^{y}=\frac{e^{2x}}{2}+\frac{x^2}{2}+C_1 \)
Multiplying by 2 and writing C for \( 2C_1 \):
\( \displaystyle 2e^{y}=e^{2x}+x^2+C \)