The particular solution of the differential equation \(\displaystyle\frac{dy}{dx} = \frac{x\,e^{x}}{y}\), \(y \gt 0\), given that \(y = 1\) when \(x = 0\), is
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(y^2 = 2e^{x}(x - 1) + 3\)
The variables can be separated:
\(y\,dy = x\,e^{x}\,dx\)
The right side needs integration by parts:
\( \displaystyle \int x\,e^{x}\,dx = x\,e^{x} - \int e^{x}\,dx = e^{x}(x - 1) \)
So
\( \displaystyle \frac{y^2}{2} = e^{x}(x - 1) + C \)
At x = 0, y = 1:
\( \displaystyle \frac{1}{2} = e^{0}(0 - 1) + C \), so \( \displaystyle C = \frac{3}{2} \)
Multiplying by 2:
\(y^2 = 2e^{x}(x - 1) + 3\)
Why the other options are incorrect
All four options give y = 1 at x = 0, so the initial condition alone cannot decide; the differential equation must be checked.
Option (1) \(y^2 = 2e^{x}(x + 1) - 1\) — Incorrect. Differentiating gives \(2y\frac{dy}{dx} = 2e^{x}(x + 2)\), so \(\frac{dy}{dx} = \frac{e^{x}(x + 2)}{y}\), not \(\frac{x\,e^{x}}{y}\). The sign in \(\int x\,e^{x}\,dx = e^{x}(x - 1)\) has been taken as plus.
Option (3) \(y^2 = e^{x}(x - 1) + 2\) — Incorrect. Differentiating gives \(2y\frac{dy}{dx} = x\,e^{x}\), so \(\frac{dy}{dx} = \frac{x\,e^{x}}{2y}\), half of the required value. The factor 2 from \(\frac{y^2}{2}\) has been lost.
Option (4) \(y = e^{x}(x - 1) + 2\) — Incorrect. Here \(\frac{dy}{dx} = x\,e^{x}\), which equals \(\frac{x\,e^{x}}{y}\) only where y = 1; the y in the denominator has been ignored.