\(\int (x-1)e^{-x}\,dx =\)
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(-xe^{-x}+C\)
The integral splits into \(\int x e^{-x}\,dx\) and \(\int e^{-x}\,dx\). For the first part, integration by parts with u = x and \(dv = e^{-x}dx\), so \(v = -e^{-x}\), gives
\( \displaystyle \int x e^{-x}\,dx = -xe^{-x} + \int e^{-x}\,dx \)
\( = -xe^{-x} - e^{-x} \)
Also
\( \displaystyle \int e^{-x}\,dx = -e^{-x} \)
Subtracting:
\( \displaystyle \int (x-1)e^{-x}\,dx = -xe^{-x} - e^{-x} + e^{-x} + C \)
\( = -xe^{-x} + C \)