If \(y = x^2 e^x\), then \(\displaystyle\frac{d^2y}{dx^2}\) is equal to
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(e^x(x^2 + 4x + 2)\)
y is a product of \(x^2\) and \(e^x\), so we use the product rule twice.
\( \displaystyle \frac{dy}{dx} = 2x\,e^x + x^2 e^x \)
\( \displaystyle \frac{dy}{dx} = e^x(x^2 + 2x) \)
Differentiating again:
\( \displaystyle \frac{d^2y}{dx^2} = e^x(x^2 + 2x) + e^x(2x + 2) \)
\( \displaystyle \frac{d^2y}{dx^2} = e^x(x^2 + 4x + 2) \)
Why the other options are incorrect
Option (1) \(e^x(x^2 + 2x)\) — Incorrect. This is the first derivative \(\frac{dy}{dx}\), not the second.
Option (2) \(e^x(x^2 + 2x + 2)\) — Incorrect. The 2x from differentiating the bracket has been left out; the x-terms add to 4x.
Option (4) \(2e^x(x + 1)\) — Incorrect. Only the bracket \(x^2 + 2x\) has been differentiated; the derivative of \(e^x\) is missing.