The function \(y = x\,e^{x}\) is a solution of which of the following differential equations?
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(\displaystyle\frac{d^2y}{dx^2} - 2\frac{dy}{dx} + y = 0\)
To verify a solution, we find the derivatives and put them into each equation.
\( \displaystyle \frac{dy}{dx} = e^{x} + x\,e^{x} = e^{x}(x + 1) \)
\( \displaystyle \frac{d^2y}{dx^2} = e^{x}(x + 1) + e^{x} = e^{x}(x + 2) \)
Every term has the factor \(e^{x}\), so only the brackets need to be compared. For Option (4):
\((x + 2) - 2(x + 1) + x = 0\)
So \(y = x\,e^{x}\) satisfies \(\frac{d^2y}{dx^2} - 2\frac{dy}{dx} + y = 0\).
Why the other options are incorrect
Option (1) \(\displaystyle\frac{d^2y}{dx^2} + 2\frac{dy}{dx} + y = 0\) — Incorrect. The brackets give \((x + 2) + 2(x + 1) + x = 4x + 4\), which is not 0 for all x.
Option (2) \(\displaystyle\frac{d^2y}{dx^2} - \frac{dy}{dx} - y = 0\) — Incorrect. The brackets give \((x + 2) - (x + 1) - x = 1 - x\), which is not 0 for all x.
Option (3) \(\displaystyle\frac{d^2y}{dx^2} + \frac{dy}{dx} - 2y = 0\) — Incorrect. The brackets give \((x + 2) + (x + 1) - 2x = 3\), not 0.