Integration by parts · Exercise-INTEGRATION-BY-PARTS-002
Step-by-step solved exercise: Integrals
Compute \(\displaystyle\int x e^{x}\,dx\).
Integration by parts · Exercise-INTEGRATION-BY-PARTS-002
Compute \(\displaystyle\int x e^{x}\,dx\).
Choose \(\displaystyle u=x\), which becomes \(\displaystyle 1\) when differentiated, and \(\displaystyle dv=e^{x}\,dx\).
Compute \(\displaystyle du\) and \(\displaystyle v\): \(\displaystyle du=dx\) and \(\displaystyle v=e^{x}\).
Apply the formula \(\displaystyle \int u\,dv=uv-\int v\,du\).
Integrate the remaining exponential: \(\displaystyle \int e^{x}\,dx=e^{x}+C\).
Substitute and factor out \(\displaystyle e^{x}\) to get the final result.
Comment: Check by differentiating: the derivative of \(\displaystyle (x-1)e^{x}\) is \(\displaystyle x\,e^{x}\).
\(\displaystyle \left(x - 1\right) e^{x} + C\)